33 #define INCLXX_IN_GEANT4_MODE 1
56 thePropagationEnergy(&theEnergy),
57 theFrozenEnergy(theEnergy),
59 thePropagationMomentum(&theMomentum),
60 theFrozenMomentum(theMomentum),
64 thePotentialEnergy(0.0),
66 uncorrelatedMomentum(0.),
79 thePropagationEnergy(&theEnergy),
80 theFrozenEnergy(theEnergy),
81 theMomentum(momentum),
82 thePropagationMomentum(&theMomentum),
83 theFrozenMomentum(theMomentum),
84 thePosition(position),
85 nCollisions(0), nDecays(0),
86 thePotentialEnergy(0.),
88 uncorrelatedMomentum(theMomentum.mag()),
90 emissionTime(0.0), outOfWell(false)
104 : thePropagationEnergy(&theEnergy),
105 theMomentum(momentum),
106 thePropagationMomentum(&theMomentum),
107 theFrozenMomentum(theMomentum),
108 thePosition(position),
109 nCollisions(0), nDecays(0),
110 thePotentialEnergy(0.),
112 uncorrelatedMomentum(theMomentum.mag()),
114 emissionTime(0.0), outOfWell(false)
121 INCL_ERROR(
"Cannot create resonance without specifying its momentum four-vector." << std::endl);
ParticipantType theParticipantType
void setMass(G4double mass)
G4bool isResonance() const
Is it a resonance?
G4double adjustEnergyFromMomentum()
Recompute the energy to match the momentum.
std::string print() const
G4double getInvariantMass() const
Get the the particle invariant mass.
void setType(ParticleType t)
G4INCL::ThreeVector theMomentum
const ThreeVector & adjustMomentumFromEnergy()
Rescale the momentum to match the total energy.