33 #define INCLXX_IN_GEANT4_MODE 1
55 #ifdef INCL_INVERSE_KINEMATICS
56 void EventInfo::fillInverseKinematics(
const Double_t gamma) {
57 const Double_t beta = std::sqrt(1.-1./(gamma*gamma));
73 const Double_t ETotPrime = gamma*(ETot - beta*
pz[i]);
80 invariantMass = std::sqrt(ETot*ETot -
px[i]*
px[i] -
py[i]*
py[i] -
pz[i]*
pz[i]);
84 EKinPrime[i] = ETotPrime - invariantMass;
85 pzPrime[i] = -gamma*(
pz[i] - beta*ETot);
86 const Double_t pPrime = std::sqrt(
px[i]*
px[i] +
py[i]*
py[i] + pzPrime[i]*pzPrime[i]);
87 const Double_t cosThetaPrime = pzPrime[i]/pPrime;
90 else if(cosThetaPrime<=-1.)
93 thetaPrime[i] = 180.*std::acos(cosThetaPrime)/
Math::pi;
96 #endif // INCL_INVERSE_KINEMATICS