40 theParticleDefinition(NULL),
42 hasInitialStateParton(false),
95 if(
this != &right ) {
159 SetMomentum( aMomentum * (std::sqrt(aKineticEnergy*aKineticEnergy +
160 2*aKineticEnergy*
GetMass())/pp) );
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::fabs(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 );
std::vector< ExP01TrackerHit * > a
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetDefinitionAndUpdateE(const G4ParticleDefinition *aParticleDefinition)
G4bool hasInitialStateParton
#define G4ThreadLocalStatic
G4double GetPDGMass() const
const G4ParticleDefinition * theParticleDefinition
G4DLLIMPORT G4Allocator< G4ReactionProduct > *& aRPAllocator()
void SetTotalEnergy(const G4double en)
void SetMass(const G4double mas)
void SetKineticEnergy(const G4double en)
G4double GetKineticEnergy() const
G4ParticleDefinition * GetDefinition() const
BasicVector3D< float > operator+(const BasicVector3D< float > &v)
G4ThreeVector GetMomentum() const
const G4LorentzVector & Get4Momentum() const
G4double G4ParticleHPJENDLHEData::G4double result
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
void HasInitialStateParton(G4bool aFlag)
const G4ParticleDefinition * GetDefinition() const
void SetPositionInNucleus(G4double x, G4double y, G4double z)
G4ThreeVector positionInNucleus
G4ReactionProduct & operator=(const G4ReactionProduct &right)
G4double Angle(const G4ReactionProduct &p) const
G4double GetKineticEnergy() const
G4int GetPDGEncoding() const
void SetFormationTime(G4double aTime)
G4double GetTotalEnergy() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
BasicVector3D< float > operator-(const BasicVector3D< float > &v)