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::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 );