25 #include <TDatabasePDG.h>
76 if(&source ==
this)
return *
this;
104 Double_t mD0PDG = TDatabasePDG::Instance()->GetParticle(421)->Mass();
106 if(PtProng(1) < cuts[3] || PtProng(0) < cuts[4]) okD0 = 0;
107 if(PtProng(0) < cuts[3] || PtProng(1) < cuts[4]) okD0bar = 0;
108 if(!okD0 && !okD0bar)
return kFALSE;
110 if(TMath::Abs(Getd0Prong(1)) > cuts[5] ||
111 TMath::Abs(Getd0Prong(0)) > cuts[6]) okD0 = 0;
112 if(TMath::Abs(Getd0Prong(0)) > cuts[6] ||
113 TMath::Abs(Getd0Prong(1)) > cuts[5]) okD0bar = 0;
114 if(!okD0 && !okD0bar)
return kFALSE;
116 if(GetDCA() > cuts[1]) { okD0 = okD0bar = 0;
return kFALSE; }
119 if(TMath::Abs(mD0-mD0PDG) > cuts[0]) okD0 = 0;
120 if(TMath::Abs(mD0bar-mD0PDG) > cuts[0]) okD0bar = 0;
121 if(!okD0 && !okD0bar)
return kFALSE;
124 if(TMath::Abs(ctsD0) > cuts[2]) okD0 = 0;
125 if(TMath::Abs(ctsD0bar) > cuts[2]) okD0bar = 0;
126 if(!okD0 && !okD0bar)
return kFALSE;
128 if(
Prodd0d0() > cuts[7]) { okD0 = okD0bar = 0;
return kFALSE; }
156 Double_t mJPSIPDG = TDatabasePDG::Instance()->GetParticle(443)->Mass();
158 if(PtProng(1) < cuts[3] || PtProng(0) < cuts[4]) okB = 0;
159 if(!okB)
return kFALSE;
161 if(TMath::Abs(Getd0Prong(1)) > cuts[5] ||
162 TMath::Abs(Getd0Prong(0)) > cuts[6]) okB = 0;
163 if(!okB)
return kFALSE;
165 if(GetDCA() > cuts[1]) { okB = 0;
return kFALSE; }
168 if(TMath::Abs(mJPsi-mJPSIPDG) > cuts[0]) okB = 0;
169 if(!okB)
return kFALSE;
172 if(TMath::Abs(ctsJPsi) > cuts[2]) okB = 0;
173 if(!okB)
return kFALSE;
175 if(
Prodd0d0() > cuts[7]) { okB = 0;
return kFALSE; }
AliAODRecoDecayHF2Prong()
AliAODRecoDecayHF & operator=(const AliAODRecoDecayHF &source)
Double_t InvMassD0() const
Double_t Prodd0d0() const
Double_t CosThetaStarJPSI() const
Bool_t SelectD0(const Double_t *cuts, Int_t &okD0, Int_t &okD0bar) const
AliAODRecoDecayHF2Prong & operator=(const AliAODRecoDecayHF2Prong &source)
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
Double_t InvMassJPSIee() const
angle of e-
Double_t CosPointingAngle() const
Double_t CosThetaStarD0() const
Bool_t SelectBtoJPSI(const Double_t *cuts, Int_t &okB) const