Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -213,7 +213,8 @@ G4double G4Fragment::CalculateExcitationEnergy(const G4LorentzVector value) cons
|
||||
if ( errCount < 10 )
|
||||
{
|
||||
G4cerr << "G4Fragment::CalculateExcitationEnergy(): Excitation Energy ="
|
||||
<<U << " for A = "<<theA<<" and Z= "<<theZ<<G4endl;
|
||||
<<U << " for A = "<<theA<<" and Z= "<<theZ<<G4endl
|
||||
<< ", mass= " << GetGroundStateMass() << " maxMass= "<<theMaxGroundStateMass<<G4endl; ;
|
||||
errCount++;
|
||||
if (errCount == 10 ) G4cerr << "G4Fragment::CalculateExcitationEnergy():"
|
||||
<< " further warnings on negative excitation will be supressed" << G4endl;
|
||||
|
||||
@@ -146,3 +146,15 @@ void G4Parton::DefineMomentumInZ(G4double aLightConeMomentum, G4bool aDirection)
|
||||
a4Momentum.setE( 0.5*(aLightConeMomentum + TransverseMass2/aLightConeMomentum));
|
||||
Set4Momentum(a4Momentum);
|
||||
}
|
||||
|
||||
void G4Parton::DefineMomentumInZ(G4double aLightConeMomentum,G4double aLightConeE, G4bool aDirection)
|
||||
{
|
||||
G4double Mass = GetMass();
|
||||
G4LorentzVector a4Momentum = Get4Momentum();
|
||||
aLightConeMomentum*=theX;
|
||||
aLightConeE*=theX;
|
||||
G4double TransverseMass2 = sqr(a4Momentum.px()) + sqr(a4Momentum.py()) + sqr(Mass);
|
||||
a4Momentum.setPz(0.5*(aLightConeMomentum - aLightConeE - TransverseMass2/aLightConeMomentum)*(aDirection? 1: -1));
|
||||
a4Momentum.setE( 0.5*(aLightConeMomentum + aLightConeE + TransverseMass2/aLightConeMomentum));
|
||||
Set4Momentum(a4Momentum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user