35#define INCLXX_IN_GEANT4_MODE 1
57#ifdef INCL_INVERSE_KINEMATICS
58 void EventInfo::fillInverseKinematics(
const Double_t gamma) {
59 const Double_t beta = std::sqrt(1.-1./(gamma*gamma));
75 const Double_t ETotPrime = gamma*(ETot - beta*
pz[i]);
82 invariantMass = std::sqrt(ETot*ETot -
px[i]*
px[i] -
py[i]*
py[i] -
pz[i]*
pz[i]);
86 EKinPrime[i] = ETotPrime - invariantMass;
87 pzPrime[i] = -gamma*(
pz[i] - beta*ETot);
88 const Double_t pPrime = std::sqrt(
px[i]*
px[i] +
py[i]*
py[i] + pzPrime[i]*pzPrime[i]);
89 const Double_t cosThetaPrime = pzPrime[i]/pPrime;
92 else if(cosThetaPrime<=-1.)
95 thetaPrime[i] = 180.*std::acos(cosThetaPrime)/
Math::pi;
Simple container for output of event results.
static NuclearMassFn getTableMass
Static pointer to the mass function for nuclei.
static ParticleMassFn getTableParticleMass
Static pointer to the mass function for particles.
Short_t origin[maxSizeParticles]
Origin of the particle.
static Int_t eventNumber
Number of the event.
Short_t A[maxSizeParticles]
Particle mass number.
Short_t Z[maxSizeParticles]
Particle charge number.
Float_t EKin[maxSizeParticles]
Particle kinetic energy [MeV].
Float_t px[maxSizeParticles]
Particle momentum, x component [MeV/c].
Int_t nParticles
Total number of emitted particles.
Float_t pz[maxSizeParticles]
Particle momentum, z component [MeV/c].
Float_t py[maxSizeParticles]
Particle momentum, y component [MeV/c].