7 #ifndef CBM_LMVM_KINEMATIC_PARAMS_H
8 #define CBM_LMVM_KINEMATIC_PARAMS_H
12 #include "TLorentzVector.h"
15 #define M2E 2.6112004954086e-7
35 Double_t energyP = TMath::Sqrt(momP.Mag2() +
M2E);
36 TLorentzVector lorVecP(momP, energyP);
40 Double_t energyM = TMath::Sqrt(momM.Mag2() +
M2E);
41 TLorentzVector lorVecM(momM, energyM);
43 TVector3 momPair = momP + momM;
44 Double_t energyPair = energyP + energyM;
45 Double_t ptPair = momPair.Perp();
46 Double_t pzPair = momPair.Pz();
48 0.5 * TMath::Log((energyPair + pzPair) / (energyPair - pzPair));
49 Double_t anglePair = lorVecM.Angle(lorVecP.Vect());
50 Double_t theta = 180. * anglePair /
TMath::Pi();
52 2. * TMath::Sin(anglePair / 2.) * TMath::Sqrt(momM.Mag() * momP.Mag());
75 Double_t ptPair = momPair.Perp();
76 Double_t pzPair = momPair.Pz();
78 0.5 * TMath::Log((energyPair + pzPair) / (energyPair - pzPair));
79 Double_t anglePair = lorVecM.Angle(lorVecP.Vect());
80 Double_t theta = 180. * anglePair /
TMath::Pi();
82 2. * TMath::Sin(anglePair / 2.)