40 theParticleDefinition(NULL),
42 hasInitialStateParton(false),
95 if(
this != &right ) {
159 SetMomentum( aMomentum * (std::sqrt(aKineticEnergy*aKineticEnergy +
221 G4double p = std::sqrt(x*x+y*y+z*z);
235 G4double a = std::sqrt( ( px*px + py*py + pz*pz ) * ( tx*tx + ty*ty + tz*tz ) );
239 a = ( tx*px + ty*py + tz*pz ) / a;
240 if( std::abs(a) > 1.0 ) { a<0.0 ? a=-1.0 : a=1.0; }
241 return std::acos( a );
252 G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*z );
254 newMass = -1. * std::sqrt( -newMass );
256 newMass = std::sqrt( newMass );
274 G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*z );
276 newMass = -1. * std::sqrt( -newMass );
278 newMass = std::sqrt( newMass );
G4Allocator< G4ReactionProduct > *& aRPAllocator()
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4ThreeVector GetMomentum() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetPDGMass() const
G4int GetPDGEncoding() const
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetTotalEnergy(const G4double en)
G4double GetKineticEnergy() const
const G4ParticleDefinition * theParticleDefinition
void HasInitialStateParton(G4bool aFlag)
G4ThreeVector positionInNucleus
G4ThreeVector GetMomentum() const
G4ReactionProduct & operator=(const G4ReactionProduct &right)
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void SetDefinitionAndUpdateE(const G4ParticleDefinition *aParticleDefinition)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetKineticEnergy(const G4double en)
G4double Angle(const G4ReactionProduct &p) const
void SetFormationTime(G4double aTime)
G4bool hasInitialStateParton
void SetMass(const G4double mas)
BasicVector3D< float > operator-(const BasicVector3D< float > &v)
BasicVector3D< float > operator+(const BasicVector3D< float > &v)
#define G4ThreadLocalStatic