]>
Commit | Line | Data |
---|---|---|
09b20ad1 | 1 | #ifndef ALICOMPARISONDEdx_H |
2 | #define ALICOMPARISONDEdx_H | |
3 | ||
4 | //------------------------------------------------------------------------------ | |
5 | // Class to keep information from comparison of | |
6 | // reconstructed and MC particle tracks (TPC dE/dx). | |
7 | // | |
8 | // Author: J.Otwinowski 04/02/2008 | |
9 | //------------------------------------------------------------------------------ | |
10 | ||
7b392278 | 11 | class TCanvas; |
12 | class TH1F; | |
13 | class TH2F; | |
14 | class TNamed; | |
15 | class TString; | |
16 | ||
09b20ad1 | 17 | class AliMCInfo; |
18 | class AliESDRecInfo; | |
19 | class AliESDEvent; | |
09b20ad1 | 20 | class AliRecInfoCuts; |
21 | class AliMCInfoCuts; | |
09b20ad1 | 22 | |
71a14197 | 23 | #include "THnSparse.h" |
3baa4bfd | 24 | #include "AliComparisonObject.h" |
09b20ad1 | 25 | |
3baa4bfd | 26 | class AliComparisonDEdx : public AliComparisonObject { |
09b20ad1 | 27 | public : |
28 | AliComparisonDEdx(); | |
71a14197 | 29 | AliComparisonDEdx(Char_t* name, Char_t* title, Int_t analysisMode, Bool_t hptGenerator); |
09b20ad1 | 30 | ~AliComparisonDEdx(); |
3baa4bfd | 31 | |
32 | // Init data members | |
33 | virtual void Init(); | |
34 | ||
35 | // Execute analysis | |
71a14197 | 36 | virtual void Exec(AliMCInfo* const infoMC, AliESDRecInfo *const infoRC); |
3baa4bfd | 37 | |
38 | // Merge output objects (needed by PROOF) | |
71a14197 | 39 | virtual Long64_t Merge(TCollection* const list); |
3baa4bfd | 40 | |
41 | // Analyse output histograms | |
42 | virtual void Analyse(); | |
43 | ||
44 | // Get analysis folder | |
71a14197 | 45 | virtual TFolder* GetAnalysisFolder() const {return fAnalysisFolder;} |
3baa4bfd | 46 | |
47 | // Create folder for analysed histograms | |
48 | TFolder *CreateFolder(TString folder = "folderDEdx",TString title = "Analysed DEdx histograms"); | |
49 | ||
b4126c69 | 50 | // Export objects to folder |
51 | TFolder *ExportToFolder(TObjArray * array=0); | |
52 | ||
3baa4bfd | 53 | // Process events |
71a14197 | 54 | void ProcessTPC(AliMCInfo* const infoMC, AliESDRecInfo *const infoRC); |
55 | void ProcessTPCITS(AliMCInfo* const infoMC, AliESDRecInfo *const infoRC); // not implemented | |
56 | void ProcessConstrained(AliMCInfo* const infoMC, AliESDRecInfo *const infoRC); // not implemented | |
09b20ad1 | 57 | |
58 | // Selection cuts | |
71a14197 | 59 | void SetAliRecInfoCuts(AliRecInfoCuts* const cuts=0) {fCutsRC = cuts;} |
60 | void SetAliMCInfoCuts(AliMCInfoCuts* const cuts=0) {fCutsMC = cuts;} | |
09b20ad1 | 61 | |
62 | AliRecInfoCuts* GetAliRecInfoCuts() const {return fCutsRC;} | |
63 | AliMCInfoCuts* GetAliMCInfoCuts() const {return fCutsMC;} | |
09b20ad1 | 64 | |
65 | static TH1F* MakeResol(TH2F * his, Int_t integ, Bool_t type); | |
66 | ||
35771050 | 67 | // |
68 | // TPC dE/dx | |
35771050 | 69 | // |
71a14197 | 70 | THnSparse* GetDeDxHisto() const {return fDeDxHisto;} |
35771050 | 71 | |
09b20ad1 | 72 | private: |
73 | ||
74 | // TPC dE/dx | |
71a14197 | 75 | THnSparseF *fDeDxHisto; //-> signal:alpha:y:z:snp:tgl:ncls:pid:p |
09b20ad1 | 76 | |
77 | // Selection cuts | |
78 | AliRecInfoCuts* fCutsRC; // selection cuts for reconstructed tracks | |
79 | AliMCInfoCuts* fCutsMC; // selection cuts for MC tracks | |
80 | ||
3baa4bfd | 81 | // analysis folder |
82 | TFolder *fAnalysisFolder; // folder for analysed histograms | |
83 | ||
09b20ad1 | 84 | AliComparisonDEdx(const AliComparisonDEdx&); // not implemented |
85 | AliComparisonDEdx& operator=(const AliComparisonDEdx&); // not implemented | |
86 | ||
87 | ClassDef(AliComparisonDEdx,1); | |
88 | }; | |
89 | ||
90 | #endif |