}
//====================================================================================================================================================
+
+Bool_t AliMFTAnalysisTools::IsPDGCharm(Int_t pdgCode) {
+
+ pdgCode = TMath::Abs(pdgCode/100);
+ if (pdgCode>9) pdgCode /= 10;
+ if (pdgCode == 4 ) return kTRUE;
+ else return kFALSE;
+
+}
+
+//====================================================================================================================================================
+
+Bool_t AliMFTAnalysisTools::IsPDGBeauty(Int_t pdgCode) {
+
+ pdgCode = TMath::Abs(pdgCode/100);
+ if (pdgCode>9) pdgCode /= 10;
+ if (pdgCode == 5) return kTRUE;
+ else return kFALSE;
+
+}
+
+//====================================================================================================================================================
+
+Bool_t AliMFTAnalysisTools::IsPDGResonance(Int_t pdgCode) {
+
+ Int_t id = pdgCode%100000;
+ return (!((id-id%10)%110));
+
+}
+
+//====================================================================================================================================================
static Bool_t TranslateMuon(AliAODTrack *muon, Double_t vtxInitial[3], Double_t vtxFinal[3]);
static Bool_t TranslateMuonToOrigin(AliAODTrack *muon, Double_t vtx[3]);
+
+ static Bool_t IsPDGCharm(Int_t pdgCode);
+ static Bool_t IsPDGBeauty(Int_t pdgCode);
+ static Bool_t IsPDGResonance(Int_t pdgCode);
ClassDef(AliMFTAnalysisTools,1)
Double_t GetRAtAbsorberEnd() { return fRAtAbsorberEnd; }
void SetRAtAbsorberEnd(Double_t rAtAbsorberEnd) { fRAtAbsorberEnd = rAtAbsorberEnd; }
- Double_t GetChi2OverNdf() { return GetGlobalChi2()/Double_t(GetNMUONClusters()+GetNMFTClusters()-5); }; // chi2/ndf
+ Double_t GetChi2OverNdf() { return GetGlobalChi2()/Double_t(2*(GetNMUONClusters()+GetNMFTClusters())-5); }; // chi2/ndf
void SetParentMCLabel(Int_t iParent, Int_t MClabel) { if (0<=iParent && iParent<fgkNParentsMax) fParentMCLabel[iParent] = MClabel; }
void SetParentPDGCode(Int_t iParent, Int_t PDGCode) { if (0<=iParent && iParent<fgkNParentsMax) fParentPDGCode[iParent] = PDGCode; }