37 theParticleDefinition(NULL),
39 hasInitialStateParton(false),
92 if(
this != &right ) {
156 SetMomentum( aMomentum * (std::sqrt(aKineticEnergy*aKineticEnergy +
157 2*aKineticEnergy*
GetMass())/pp) );
232 G4double a = std::sqrt( ( px*px + py*py + pz*pz ) * ( tx*tx + ty*ty + tz*tz ) );
236 a = ( tx*px + ty*py + tz*pz ) / a;
237 if( std::fabs(a) > 1.0 ) { a<0.0 ? a=-1.0 : a=1.0; }
238 return std::acos( a );
249 G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*
z );
251 newMass = -1. * std::sqrt( -newMass );
253 newMass = std::sqrt( newMass );
271 G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*
z );
273 newMass = -1. * std::sqrt( -newMass );
275 newMass = std::sqrt( newMass );
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void HasInitialStateParton(G4bool aFlag)
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
G4double GetTotalEnergy() const
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4ThreadLocal G4Allocator< G4ReactionProduct > * aRPAllocator
G4int GetPDGEncoding() const
G4ParticleDefinition * GetDefinition() const
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4double Angle(const G4ReactionProduct &p) const
G4ReactionProduct & operator=(const G4ReactionProduct &right)
void SetMass(const G4double mas)
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void SetTotalEnergy(const G4double en)
void SetDefinitionAndUpdateE(const G4ParticleDefinition *aParticleDefinition)
const G4LorentzVector & Get4Momentum() const
G4double GetKineticEnergy() const
const G4ParticleDefinition * theParticleDefinition
G4double GetPDGMass() const
G4ReactionProduct operator-(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
const G4double x[NPOINTSGL]
G4ThreeVector GetMomentum() const
void SetFormationTime(G4double aTime)
G4bool hasInitialStateParton
G4ThreeVector positionInNucleus
G4ThreeVector GetMomentum() const
G4ReactionProduct operator+(const G4ReactionProduct &p1, const G4ReactionProduct &p2)