Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -14,7 +14,11 @@ code and to keep track of all tags.
|
||||
* Please list in reverse chronological order (last date on top)
|
||||
---------------------------------------------------------------
|
||||
|
||||
|
||||
24 Jan 2007 Gunter Folger (hadr-mod-util-v08-02-00)
|
||||
- G4Parton.{cc,hh}: add method setting momentum using both + and - momentum
|
||||
component
|
||||
- G4Fragment.cc: more info on warning output of negative excitation energy
|
||||
|
||||
5 Oct 2006 Gunter Folger (hadr-mod-util-V08-01-01)
|
||||
-------------------------------------------------
|
||||
- G4Fancy3DNucleus:ChoosePositions(): Correctly use std::vector.
|
||||
|
||||
@@ -74,6 +74,7 @@ class G4Parton
|
||||
G4ParticleDefinition * GetDefinition();
|
||||
|
||||
void DefineMomentumInZ(G4double aLightConeMomentum, G4bool aDirection);
|
||||
void DefineMomentumInZ(G4double aLightConeMomentum,G4double aLightConeE, G4bool aDirection);
|
||||
|
||||
const G4ThreeVector & GetPosition()const;
|
||||
void SetPosition(const G4ThreeVector &aPosition);
|
||||
|
||||
@@ -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