31 if (mctrackP ==
nullptr || mctrackM ==
nullptr)
return params;
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();
47 Double_t yPair = 0.5 * TMath::Log((energyPair + pzPair) / (energyPair - pzPair));
48 Double_t anglePair = lorVecM.Angle(lorVecP.Vect());
49 Double_t theta = 180. * anglePair / TMath::Pi();
50 Double_t minv = 2. * TMath::Sin(anglePair / 2.) * TMath::Sqrt(momM.Mag() * momP.Mag());
66 if (candP ==
nullptr || candM ==
nullptr)
return params;
73 Double_t ptPair = momPair.Perp();
74 Double_t pzPair = momPair.Pz();
75 Double_t yPair = 0.5 * TMath::Log((energyPair + pzPair) / (energyPair - pzPair));
76 Double_t anglePair = lorVecM.Angle(lorVecP.Vect());
77 Double_t theta = 180. * anglePair / TMath::Pi();
78 Double_t minv = 2. * TMath::Sin(anglePair / 2.) * TMath::Sqrt(candM->
fMomentum.Mag() * candP->
fMomentum.Mag());