]>
Commit | Line | Data |
---|---|---|
734d2c12 | 1 | #ifndef ALIPROTONANALYSIS_H |
2 | #define ALIPROTONANALYSIS_H | |
3 | ||
4 | /* See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | //------------------------------------------------------------------------- | |
10 | // Class AliProtonAnalysis | |
11 | // This is the class for the baryon (proton) analysis | |
12 | // | |
dd3fa486 | 13 | // Origin: Panos Christakoglou | Panos.Christakoglou@cern.ch |
734d2c12 | 14 | //------------------------------------------------------------------------- |
15 | ||
251e4034 | 16 | #include "TObject.h" |
3f6d0c08 | 17 | #include "TH1I.h" |
734d2c12 | 18 | |
aafecd8b | 19 | class TF1; |
251e4034 | 20 | class TH2D; |
21 | class TH1F; | |
9cd594db | 22 | class TList; |
3f6d0c08 | 23 | |
73aba974 | 24 | //#include "AliPID.h" |
25 | class AliPID; | |
24421eb6 | 26 | #include "AliCFContainer.h" |
251e4034 | 27 | class AliCFDataGrid; |
ee4ca40d | 28 | class AliAODEvent; |
29 | class AliAODtrack; | |
734d2c12 | 30 | class AliESDEvent; |
31 | class AliESDtrack; | |
2b748670 | 32 | class AliExternalTrackParam; |
e4358d7f | 33 | class AliStack; |
6667f3a7 | 34 | class AliESDVertex; |
0ab648ea | 35 | class AliProtonAnalysisBase; |
734d2c12 | 36 | |
37 | class AliProtonAnalysis : public TObject { | |
38 | public: | |
39 | AliProtonAnalysis(); | |
40 | AliProtonAnalysis(Int_t nbinsY, Float_t fLowY, Float_t fHighY, | |
41 | Int_t nbinsPt, Float_t fLowPt, Float_t fHighPt); | |
42 | virtual ~AliProtonAnalysis(); | |
2b748670 | 43 | |
73aba974 | 44 | void SetBaseAnalysis(AliProtonAnalysisBase * const baseAnalysis) { |
0ab648ea | 45 | fProtonAnalysisBase = baseAnalysis;} |
73aba974 | 46 | AliProtonAnalysisBase *GetProtonAnalysisBaseObject() const { |
0ab648ea | 47 | return fProtonAnalysisBase;} |
dd3fa486 | 48 | |
ef1a8dbd | 49 | void InitAnalysisHistograms(Int_t nbinsY, Float_t fLowY, Float_t fHighY, |
50 | Int_t nbinsPt, Float_t fLowPt, Float_t fHighPt); | |
2b748670 | 51 | Bool_t ReadFromFile(const char* filename); |
6667f3a7 | 52 | void Analyze(AliESDEvent *fESD, |
53 | const AliESDVertex *vertex); | |
ef1a8dbd | 54 | void Analyze(AliAODEvent *fAOD); |
3e23254a | 55 | void Analyze(AliStack *stack, Bool_t iInclusive); |
734d2c12 | 56 | |
9cd594db | 57 | AliCFContainer *GetProtonContainer() const {return fProtonContainer;} |
58 | AliCFContainer *GetAntiProtonContainer() const {return fAntiProtonContainer;} | |
251e4034 | 59 | |
9cd594db | 60 | TH2D *GetProtonYPtHistogram() const {return fHistYPtProtons;} |
61 | TH2D *GetAntiProtonYPtHistogram() const {return fHistYPtAntiProtons;} | |
734d2c12 | 62 | TH1D *GetProtonYHistogram(); |
63 | TH1D *GetAntiProtonYHistogram(); | |
64 | TH1D *GetProtonPtHistogram(); | |
65 | TH1D *GetAntiProtonPtHistogram(); | |
251e4034 | 66 | TH1D *GetProtonCorrectedYHistogram(); |
67 | TH1D *GetAntiProtonCorrectedYHistogram(); | |
68 | TH1D *GetProtonCorrectedPtHistogram(); | |
69 | TH1D *GetAntiProtonCorrectedPtHistogram(); | |
24421eb6 | 70 | |
734d2c12 | 71 | TH1D *GetYRatioHistogram(); |
3e23254a | 72 | TH1D *GetYRatioCorrectedHistogram(TH2D *gCorrectionMapProtons, |
73 | TH2D *gCorrectionMapAntiProtons); | |
734d2c12 | 74 | TH1D *GetPtRatioHistogram(); |
3e23254a | 75 | TH1D *GetPtRatioCorrectedHistogram(TH2D *gCorrectionMapProtons, |
76 | TH2D *gCorrectionMapAntiProtons); | |
734d2c12 | 77 | TH1D *GetYAsymmetryHistogram(); |
78 | TH1D *GetPtAsymmetryHistogram(); | |
3f6d0c08 | 79 | |
9cd594db | 80 | TH1I *GetEventHistogram() const {return fHistEvents;} |
41beb956 | 81 | |
3f6d0c08 | 82 | Int_t GetNumberOfAnalyzedEvents() {return (Int_t)fHistEvents->GetEntries();} |
83 | Bool_t PrintMean(TH1 *hist, Double_t edge); | |
84 | Bool_t PrintYields(TH1 *hist, Double_t edge); | |
85 | ||
39f2a708 | 86 | //interface to the correction framework |
251e4034 | 87 | void Correct(Int_t step); |
39f2a708 | 88 | Bool_t ReadCorrectionContainer(const char* filename); |
9cd594db | 89 | TList *GetCorrectionListProtons2D() const {return fCorrectionListProtons2D;} |
90 | TList *GetEfficiencyListProtons1D() const {return fEfficiencyListProtons1D;} | |
91 | TList *GetCorrectionListProtons1D() const {return fCorrectionListProtons1D;} | |
92 | TList *GetCorrectionListAntiProtons2D() const {return fCorrectionListAntiProtons2D;} | |
93 | TList *GetEfficiencyListAntiProtons1D() const {return fEfficiencyListAntiProtons1D;} | |
94 | TList *GetCorrectionListAntiProtons1D() const {return fCorrectionListAntiProtons1D;} | |
24421eb6 | 95 | |
96 | //iStep=0->MC - iStep=1->Acceptance - iStep=2->Reconstruction - iStep=3->PID | |
97 | TH1D *GetUncorrectedProtonYHistogram(Int_t iStep) {return fProtonContainer->ShowProjection(0, iStep);} | |
98 | TH1D *GetUncorrectedProtonPtHistogram(Int_t iStep) {return fProtonContainer->ShowProjection(1, iStep);} | |
99 | TH1D *GetUncorrectedAntiProtonYHistogram(Int_t iStep) {return fAntiProtonContainer->ShowProjection(0, iStep);} | |
100 | TH1D *GetUncorrectedAntiProtonPtHistogram(Int_t iStep) {return fAntiProtonContainer->ShowProjection(1, iStep);} | |
39f2a708 | 101 | |
734d2c12 | 102 | private: |
8b8b0b7a | 103 | AliProtonAnalysis(const AliProtonAnalysis&); // Not implemented |
104 | AliProtonAnalysis& operator=(const AliProtonAnalysis&); // Not implemented | |
734d2c12 | 105 | |
0ab648ea | 106 | AliProtonAnalysisBase *fProtonAnalysisBase;//base analysis object |
dd3fa486 | 107 | |
0ab648ea | 108 | Int_t fNBinsY; //number of bins in y or eta |
109 | Double_t fMinY, fMaxY; //min & max value of y or eta | |
734d2c12 | 110 | Int_t fNBinsPt; //number of bins in pT |
0ab648ea | 111 | Double_t fMinPt, fMaxPt; //min & max value of pT |
734d2c12 | 112 | |
251e4034 | 113 | //Analysis containers |
114 | AliCFContainer *fProtonContainer; //container for protons | |
115 | AliCFContainer *fAntiProtonContainer; //container for antiprotons | |
3f6d0c08 | 116 | TH1I *fHistEvents; //event counter |
251e4034 | 117 | TH2D *fHistYPtProtons; //Y-Pt of Protons |
118 | TH2D *fHistYPtAntiProtons; // Y-Pt of Antiprotons | |
39f2a708 | 119 | |
120 | //Corrections | |
251e4034 | 121 | TList *fEffGridListProtons; //list for the efficiency grid - protons |
cdb3530f | 122 | TList *fCorrectionListProtons2D; //list for the 2d corrections |
123 | TList *fEfficiencyListProtons1D; //list for the 1d efficiencies | |
124 | TList *fCorrectionListProtons1D; //list for the 1d corrections | |
251e4034 | 125 | TList *fEffGridListAntiProtons; //list for the efficiency grid - antiprotons |
cdb3530f | 126 | TList *fCorrectionListAntiProtons2D; //list for the 2d corrections |
127 | TList *fEfficiencyListAntiProtons1D; //list for the 1d efficiencies | |
128 | TList *fCorrectionListAntiProtons1D; //list for the 1d corrections | |
251e4034 | 129 | AliCFDataGrid *fCorrectProtons; //corrected data grid for protons |
130 | AliCFDataGrid *fCorrectAntiProtons; //corrected data grid for antiprotons | |
131 | ||
e7df5638 | 132 | ClassDef(AliProtonAnalysis,1); |
734d2c12 | 133 | }; |
134 | ||
135 | #endif |