8 #ifndef CBM_LMVM_UTILS_H
9 #define CBM_LMVM_UTILS_H
16 #include "TMCProcess.h"
28 vector<CbmStsTrack> stsTracks;
30 stsTracks[0] = *stsTrack;
31 vector<L1FieldRegion> vField;
32 vector<float> chiPrim;
33 fPFFitter.
GetChiToVertex(stsTracks, vField, chiPrim, kfVertex, 3e6);
34 cand->
fChi2sts = stsTracks[0].GetChiSq() / stsTracks[0].GetNDF();
36 const FairTrackParam* vtxTrack = stsTracks[0].GetParamFirst();
41 cand->
fMass = TDatabasePDG::Instance()->GetParticle(11)->Mass();
42 cand->
fCharge = (vtxTrack->GetQp() > 0) ? 1 : -1;
60 Double_t sp =
sqrt(spx * spx + spy * spy + spz * spz);
62 if (sp == 0.0)
return;
63 Double_t pn, pln, plp;
83 if (pn == 0.0)
return;
84 Double_t ptm = (1. - ((pln / pn) * (pln / pn)));
85 ptt = (ptm >= 0.) ? pn *
sqrt(ptm) : 0;
86 alpha = (plp - pln) / (plp + pln);
93 if (mctrack == NULL)
return false;
103 if (mctrack == NULL)
return false;
104 Int_t pdg = TMath::Abs(mctrack->
GetPdgCode());
105 if (pdg != 11)
return false;
112 if (mct1 != NULL && motherPdg == 22 && pdg == 11) {
return true; }
121 if (mctrack == NULL)
return false;
122 Int_t pdg = TMath::Abs(mctrack->
GetPdgCode());
123 if (pdg != 11)
return false;
130 if (mct1 != NULL && motherPdg == 111 && pdg == 11
142 if (mctrack == NULL)
return false;
143 Int_t pdg = TMath::Abs(mctrack->
GetPdgCode());
144 if (pdg != 11)
return false;
151 if (mct1 != NULL && motherPdg == 221 && pdg == 11) {
return true; }