33 #define INCLXX_IN_GEANT4_MODE 1
37 #ifndef KinematicsUtils_hh
38 #define KinematicsUtils_hh 1
47 namespace KinematicsUtils {
void transformToLocalEnergyFrame(Nucleus const *const n, Particle *const p)
G4double squareTotalEnergyInCM(Particle const *const p1, Particle const *const p2)
ThreeVector sumMomenta(const ParticleList &)
G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
ThreeVector makeBoostVector(Particle const *const p1, Particle const *const p2)
G4double gammaFromKineticEnergy(const ParticleSpecies &p, const G4double EKin)
G4double invariantMass(const G4double E, const ThreeVector &p)
G4double energy(const ThreeVector &p, const G4double m)
G4double squareInvariantMass(const G4double E, const ThreeVector &p)
G4double momentumInLab(Particle const *const p1, Particle const *const p2)
gives the momentum in the lab frame of two particles.
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4double sumTotalEnergies(const ParticleList &)
G4double getLocalEnergy(Nucleus const *const n, Particle *const p)