]>
Commit | Line | Data |
---|---|---|
777a0ba6 | 1 | #ifndef ALIPERFORMANCEEFF_H |
2 | #define ALIPERFORMANCEEFF_H | |
3 | ||
4 | //------------------------------------------------------------------------------ | |
5 | // Class to keep information from comparison of | |
6 | // reconstructed and MC particle tracks (TPC efficiency). | |
7 | // | |
8 | // Author: J.Otwinowski 04/02/2008 | |
9 | //------------------------------------------------------------------------------ | |
10 | ||
11 | class TFile; | |
12 | class TParticle; | |
13 | class TString; | |
14 | class TNamed; | |
15 | class AliMCInfo; | |
16 | class AliESDRecInfo; | |
17 | class AliESDEvent; | |
18 | class AliMCEvent; | |
19 | class AliESDEvent; | |
20 | class AliMCParticle; | |
21 | class AliESDtrack; | |
22 | class AliESD; | |
23 | class AliRecInfoCuts; | |
24 | class AliMCInfoCuts; | |
25 | class AliESDVertex; | |
26 | ||
27 | #include "THnSparse.h" | |
28 | #include "AliPerformanceObject.h" | |
29 | ||
30 | class AliPerformanceEff : public AliPerformanceObject { | |
31 | public : | |
32 | AliPerformanceEff(); | |
33 | AliPerformanceEff(Char_t* name, Char_t* title, Int_t analysisMode, Bool_t hptGenerator); | |
34 | ~AliPerformanceEff(); | |
35 | ||
36 | // Init data members | |
37 | virtual void Init(); | |
38 | ||
39 | // Execute analysis | |
40 | virtual void Exec(AliMCEvent* const mcEvent, AliESDEvent *const esdEvent, const Bool_t bUseMC); | |
41 | ||
42 | // Merge output objects (needed by PROOF) | |
43 | virtual Long64_t Merge(TCollection* const list); | |
44 | ||
45 | // Analyse output histograms | |
46 | virtual void Analyse(); | |
47 | ||
48 | // Get analysis folder | |
49 | virtual TFolder* GetAnalysisFolder() const {return fAnalysisFolder;} | |
50 | ||
51 | // Create folder for analysed histograms | |
52 | TFolder *CreateFolder(TString folder = "folderEff",TString title = "Analysed Efficiency histograms"); | |
53 | ||
54 | // Export objects to folder | |
55 | TFolder *ExportToFolder(TObjArray *array=0); | |
56 | ||
57 | // Process events | |
58 | void ProcessTPC(AliMCEvent* const mcEvent, AliESDEvent *const esdEvent); | |
59 | void ProcessTPCITS(AliMCEvent* const mcEvent, AliESDEvent *const esdEvent); | |
60 | void ProcessConstrained(AliMCEvent* const mcEvent, AliESDEvent *const esdEvent); | |
61 | ||
62 | Bool_t IsRecTPC(AliESDtrack *track); | |
63 | Bool_t IsRecTPCITS(AliESDtrack *track); | |
64 | Bool_t IsRecConstrained(AliESDtrack *track); | |
65 | ||
66 | Bool_t IsFindable(AliMCEvent *mcEvent, Int_t label); | |
67 | Int_t TransformToPID(TParticle *particle); | |
68 | ||
69 | // Selection cuts | |
70 | void SetAliRecInfoCuts(AliRecInfoCuts* const cuts=0) {fCutsRC = cuts;} | |
71 | void SetAliMCInfoCuts(AliMCInfoCuts* const cuts=0) {fCutsMC = cuts;} | |
72 | ||
73 | // Getters | |
74 | AliRecInfoCuts* GetAliRecInfoCuts() const {return fCutsRC;} | |
75 | AliMCInfoCuts* GetAliMCInfoCuts() const {return fCutsMC;} | |
76 | ||
77 | THnSparseF* GetEffHisto() const {return fEffHisto;} | |
78 | ||
79 | private: | |
80 | ||
81 | // Control histograms | |
82 | THnSparseF *fEffHisto; //-> mceta:mcphi:mcpt:pid:isPrim:recStatus:findable | |
83 | ||
84 | // Global cuts objects | |
85 | AliRecInfoCuts* fCutsRC; // selection cuts for reconstructed tracks | |
86 | AliMCInfoCuts* fCutsMC; // selection cuts for MC tracks | |
87 | ||
88 | // analysis folder | |
89 | TFolder *fAnalysisFolder; // folder for analysed histograms | |
90 | ||
91 | AliPerformanceEff(const AliPerformanceEff&); // not implemented | |
92 | AliPerformanceEff& operator=(const AliPerformanceEff&); // not implemented | |
93 | ||
94 | ClassDef(AliPerformanceEff,1); | |
95 | }; | |
96 | ||
97 | #endif |