1 #ifndef ALICOMPARISONEFF_H
2 #define ALICOMPARISONEFF_H
4 //------------------------------------------------------------------------------
5 // Class to keep information from comparison of
6 // reconstructed and MC particle tracks (TPC efficiency).
8 // Author: J.Otwinowski 04/02/2008
9 //------------------------------------------------------------------------------
33 #include "AliComparisonObject.h"
35 class AliComparisonEff : public AliComparisonObject {
44 virtual void Exec(AliMCInfo* infoMC, AliESDRecInfo *infoRC);
46 // Merge output objects (needed by PROOF)
47 virtual Long64_t Merge(TCollection* list);
49 // Analyse output histograms
50 virtual void Analyse();
52 // Get analysis folder
53 virtual TFolder* GetAnalysisFolder() {return fAnalysisFolder;}
55 // Create folder for analysed histograms
56 TFolder *CreateFolder(TString folder = "folderEff",TString title = "Analysed Efficiency histograms");
58 // Export objects to folder
59 TFolder *ExportToFolder(TObjArray * array=0);
62 void Process(AliMCInfo* infoMC, AliESDRecInfo *infoRC);
65 void SetAliRecInfoCuts(AliRecInfoCuts* cuts=0) {fCutsRC = cuts;}
66 void SetAliMCInfoCuts(AliMCInfoCuts* cuts=0) {fCutsMC = cuts;}
69 AliRecInfoCuts* GetAliRecInfoCuts() const {return fCutsRC;}
70 AliMCInfoCuts* GetAliMCInfoCuts() const {return fCutsMC;}
82 TProfile* fEffTPCPt; //->TPC efficiency as function of Pt (tan+-1)
83 TProfile* fEffTPCPtMC; //->MC -TPC efficiency as function of Pt (tan+-1)
84 TProfile* fEffTPCPtF; //->efficiency for findable tracks
86 TProfile* fEffTPCPt_P; //->TPC efficiency as function of Pt (tan+-1) - Protons
87 TProfile* fEffTPCPtMC_P; //->MC -TPC efficiency as function of Pt (tan+-1) - Protons
88 TProfile* fEffTPCPtF_P; //->efficiency for findable tracks - Protons
90 TProfile* fEffTPCPt_Pi; //->TPC efficiency as function of Pt (tan+-1) - Pions
91 TProfile* fEffTPCPtMC_Pi; //->MC -TPC efficiency as function of Pt (tan+-1) - Pions
92 TProfile* fEffTPCPtF_Pi; //->efficiency for findable tracks - Pions
94 TProfile* fEffTPCPt_K; //->TPC efficiency as function of Pt (tan+-1) - Kaons
95 TProfile* fEffTPCPtMC_K; //->MC -TPC efficiency as function of Pt (tan+-1) - Kaons
96 TProfile* fEffTPCPtF_K; //->efficiency for findable tracks - Kaons
99 TProfile* fEffTPCTan; //->TPC efficiency as function of Tan (pt>0.15
100 TProfile* fEffTPCTanMC; //->MC -TPC efficiency as function of Tan (pt>0.15)
101 TProfile* fEffTPCTanF; //->efficiency for findable tracks Tan (pt>0.15)
103 TProfile2D* fEffTPCPtTan; //->TPC efficiency as function of Pt and tan
104 TProfile2D* fEffTPCPtTanMC; //->MC -TPC efficiency as function of Pt and tan
105 TProfile2D* fEffTPCPtTanF; //->TPC efficiency as function of Pt and tan
107 // idx - 0 (isPrim), idx - 1 (isPrim && infoRC->GetStatus(1)==3)
108 // idx - 2 (infoRC->GetStatus(1)==3), idx - 3 (infoRC->GetStatus(1)==3 && !isPrim )
111 TH2F* fTPCPtDCASigmaIdeal[4]; //->TPC efficiency vs Pt vs DCA/Sigma (tan+-1)
112 TH2F* fTPCPtDCASigmaFull[4]; //->TPC efficiency vs Pt vs DCA/Sigma (tan+-1, full systematics)
113 TH2F* fTPCPtDCASigmaDay0[4]; //->TPC efficiency vs Pt vs DCA/Sigma (tan+-1, goofie systematics)
115 TH2F* fTPCPtDCAXY[4]; //->TPC efficiency as Pt vs DCA_XY (tan+-1)
116 TH2F* fTPCPtDCAZ[4]; //->TPC efficiency as Pt vs DCA_Z (tan+-1)
118 // Pid = 0 - electrons, 1 - muons, 2 - kaons, 3 - pions, 4 - protons
119 TH3F* fTPCPtDCASigmaIdealPid[4]; //->TPC efficiency vs Pt vs DCA/Sigma (tan+-1)
120 TH3F* fTPCPtDCASigmaFullPid[4]; //->TPC efficiency vs Pt vs DCA/Sigma (tan+-1, full systematics)
121 TH3F* fTPCPtDCASigmaDay0Pid[4]; //->TPC efficiency vs Pt vs DCA/Sigma (tan+-1, goofie systematics)
122 TH3F* fTPCPtDCAXYPid[4]; //->TPC efficiency vs Pt vs DCA_XY (tan+-1)
123 TH3F* fTPCPtDCAZPid[4]; //->TPC efficiency vs Pt vs DCA_Z (tan+-1)
125 // Global cuts objects
126 AliRecInfoCuts* fCutsRC; // selection cuts for reconstructed tracks
127 AliMCInfoCuts* fCutsMC; // selection cuts for MC tracks
129 // Magnet (needed for DCA calculations)
130 AliESDVertex* fVertex; //!
133 TFolder *fAnalysisFolder; // folder for analysed histograms
135 AliComparisonEff(const AliComparisonEff&); // not implemented
136 AliComparisonEff& operator=(const AliComparisonEff&); // not implemented
138 ClassDef(AliComparisonEff,1);