34 #define INCLXX_IN_GEANT4_MODE 1 57 thePropagationEnergy(&theEnergy),
58 theFrozenEnergy(theEnergy),
60 thePropagationMomentum(&theMomentum),
61 theFrozenMomentum(theMomentum),
65 thePotentialEnergy(0.0),
67 uncorrelatedMomentum(0.),
122 INCL_ERROR(
"Cannot create resonance without specifying its momentum four-vector." <<
'\n');
148 for(const_iterator i=begin(),
e=end(); i!=
e; ++i) {
149 (*i)->rotatePositionAndMomentum(angle, axis);
154 for(const_iterator i=begin(),
e=end(); i!=
e; ++i) {
155 (*i)->rotatePosition(angle, axis);
160 for(const_iterator i=begin(),
e=end(); i!=
e; ++i) {
161 (*i)->rotateMomentum(angle, axis);
166 for(const_iterator i=begin(),
e=end(); i!=
e; ++i) {
ParticipantType theParticipantType
void setMass(G4double mass)
G4double * thePropagationEnergy
G4INCL::ThreeVector theFrozenMomentum
G4double adjustEnergyFromMomentum()
Recompute the energy to match the momentum.
static G4double angle[DIM]
void rotateMomentum(const G4double angle, const ThreeVector &axis) const
G4double uncorrelatedMomentum
std::string print() const
void boost(const ThreeVector &b) const
static G4ThreadLocal long nextID
G4INCL::ThreeVector thePosition
void rotatePosition(const G4double angle, const ThreeVector &axis) const
void rotatePositionAndMomentum(const G4double angle, const ThreeVector &axis) const
void setType(ParticleType t)
G4INCL::ThreeVector theMomentum
G4INCL::ThreeVector * thePropagationMomentum
G4double getInvariantMass() const
Get the the particle invariant mass.
const ThreeVector & adjustMomentumFromEnergy()
Rescale the momentum to match the total energy.
G4bool isResonance() const
Is it a resonance?
G4double thePotentialEnergy