]>
Commit | Line | Data |
---|---|---|
777a0ba6 | 1 | #ifndef ALIPERFORMANCETPC_H |
2 | #define ALIPERFORMANCETPC_H | |
3 | ||
4 | //------------------------------------------------------------------------------ | |
5 | // Class to keep information from comparison of | |
6 | // reconstructed and MC particle tracks (TPC resolution). | |
7 | // | |
8 | // Author: J.Otwinowski 04/02/2008 | |
9 | //------------------------------------------------------------------------------ | |
10 | ||
11 | class TString; | |
12 | class TNamed; | |
13 | class TCanvas; | |
14 | class TH1F; | |
15 | class TH2F; | |
16 | ||
17 | class AliESDVertex; | |
18 | class AliESDtrack; | |
19 | class AliMCEvent; | |
20 | class AliStack; | |
21 | class AliESDEvent; | |
22 | class AliMCInfoCuts; | |
23 | class AliRecInfoCuts; | |
24 | ||
25 | #include "THnSparse.h" | |
26 | #include "AliPerformanceObject.h" | |
27 | ||
28 | class AliPerformanceTPC : public AliPerformanceObject { | |
29 | public : | |
30 | AliPerformanceTPC(); | |
31 | AliPerformanceTPC(Char_t* name, Char_t* title, Int_t analysisMode, Bool_t hptGenerator); | |
32 | virtual ~AliPerformanceTPC(); | |
33 | ||
34 | // Init data members | |
35 | virtual void Init(); | |
36 | ||
37 | // Execute analysis | |
38 | virtual void Exec(AliMCEvent* const mcEvent, AliESDEvent *const esdEvent, const Bool_t bUseMC); | |
39 | ||
40 | // Merge output objects (needed by PROOF) | |
41 | virtual Long64_t Merge(TCollection* const list); | |
42 | ||
43 | // Analyse output histograms | |
44 | virtual void Analyse(); | |
45 | ||
46 | // Get analysis folder | |
47 | virtual TFolder* GetAnalysisFolder() const {return fAnalysisFolder;} | |
48 | ||
49 | // Process events | |
50 | void ProcessConstrained(AliStack* const stack, AliESDtrack *const esdTrack); | |
51 | void ProcessTPC(AliStack* const stack, AliESDtrack *const esdTrack); | |
52 | void ProcessTPCITS(AliStack* const stack, AliESDtrack *const esdTrack); | |
53 | ||
54 | // Create folder for analysed histograms | |
55 | TFolder *CreateFolder(TString folder = "folderTPC",TString title = "Analysed TPC performance histograms"); | |
56 | ||
57 | // Export objects to folder | |
58 | TFolder *ExportToFolder(TObjArray * array=0); | |
59 | ||
60 | // Selection cuts | |
61 | void SetAliRecInfoCuts(AliRecInfoCuts* const cuts=0) {fCutsRC = cuts;} | |
62 | void SetAliMCInfoCuts(AliMCInfoCuts* const cuts=0) {fCutsMC = cuts;} | |
63 | ||
64 | AliRecInfoCuts* GetAliRecInfoCuts() const {return fCutsRC;} | |
65 | AliMCInfoCuts* GetAliMCInfoCuts() const {return fCutsMC;} | |
66 | ||
67 | // getters | |
68 | // | |
69 | THnSparse *GetTPCHisto() const { return fTPCHisto; } | |
70 | private: | |
71 | ||
72 | // TPC histogram | |
73 | THnSparseF *fTPCHisto; //-> nClust:chi2PerClust:nClust/nFindableClust:eta:phi:pt | |
74 | ||
75 | // Global cuts objects | |
76 | AliRecInfoCuts* fCutsRC; // selection cuts for reconstructed tracks | |
77 | AliMCInfoCuts* fCutsMC; // selection cuts for MC tracks | |
78 | ||
79 | // analysis folder | |
80 | TFolder *fAnalysisFolder; // folder for analysed histograms | |
81 | ||
82 | AliPerformanceTPC(const AliPerformanceTPC&); // not implemented | |
83 | AliPerformanceTPC& operator=(const AliPerformanceTPC&); // not implemented | |
84 | ||
85 | ClassDef(AliPerformanceTPC,1); | |
86 | }; | |
87 | ||
88 | #endif |