]>
Commit | Line | Data |
---|---|---|
0f67a57c | 1 | /* $Id$ */ |
2 | ||
3 | #ifndef AlidNdEtaCorrectionTask_H | |
4 | #define AlidNdEtaCorrectionTask_H | |
5 | ||
6 | #include "AliAnalysisTask.h" | |
7 | #include <TString.h> | |
770a1f1d | 8 | #include "AliPWG0Helper.h" |
0f67a57c | 9 | |
10 | class AliESDtrackCuts; | |
11 | class dNdEtaAnalysis; | |
12 | class AlidNdEtaCorrection; | |
13 | class TH1F; | |
14 | class AliESDEvent; | |
15 | class TParticlePDG; | |
54b096ef | 16 | class TH2F; |
17 | class TProfile; | |
0f67a57c | 18 | |
19 | class AlidNdEtaCorrectionTask : public AliAnalysisTask { | |
20 | public: | |
0f67a57c | 21 | AlidNdEtaCorrectionTask(const char* opt = ""); |
22 | virtual ~AlidNdEtaCorrectionTask(); | |
23 | ||
24 | virtual void ConnectInputData(Option_t *); | |
25 | virtual void CreateOutputObjects(); | |
26 | virtual void Exec(Option_t*); | |
27 | virtual void Terminate(Option_t *); | |
28 | ||
29 | void SetTrackCuts(AliESDtrackCuts* cuts) { fEsdTrackCuts = cuts; } | |
770a1f1d | 30 | void SetAnalysisMode(AliPWG0Helper::AnalysisMode mode) { fAnalysisMode = mode; } |
3d7758c1 | 31 | void SetOnlyPrimaries(Bool_t flag = kTRUE) { fOnlyPrimaries = flag; } |
0f67a57c | 32 | |
33 | protected: | |
34 | Bool_t SignOK(TParticlePDG* particle); | |
35 | ||
36 | AliESDEvent *fESD; //! ESD object | |
37 | TList* fOutput; //! list send on output slot 0 | |
38 | ||
39 | TString fOption; // option string | |
770a1f1d | 40 | AliPWG0Helper::AnalysisMode fAnalysisMode; // detector that is used for analysis |
0f67a57c | 41 | Int_t fSignMode; // if 0 process all particles, if +-1 process only particles with that sign |
3d7758c1 | 42 | Bool_t fOnlyPrimaries; // only process primaries (syst. studies) |
0f67a57c | 43 | |
44 | AliESDtrackCuts* fEsdTrackCuts; // Object containing the parameters of the esd track cuts | |
45 | ||
46 | AlidNdEtaCorrection* fdNdEtaCorrection; //! contains the intermediate histograms (on each slave) | |
47 | ||
48 | dNdEtaAnalysis* fdNdEtaAnalysisMC; //! analysis from MC (only triggered, vertex events) | |
49 | dNdEtaAnalysis* fdNdEtaAnalysisESD; //! analysis from ESD (not yet corrected!) | |
50 | ||
51 | // control histograms | |
52 | TH1F* fPIDParticles; //! pid of primary particles | |
53 | TH1F* fPIDTracks; //! pid of reconstructed tracks | |
54b096ef | 54 | |
55 | TH2F* fVertexCorrelation; //! ESD z-vtx vs MC z-vtx | |
56 | TProfile* fVertexProfile; //! Profile of MC z-vtx - ESD z-vtx vs. MC z-vtx | |
57 | TH1F* fVertexShiftNorm; //! (MC z-vtx - ESD z-vtx) / (sigma_ESD-z-vtx) histogrammed | |
0f67a57c | 58 | |
3d7758c1 | 59 | TH2F* fEtaCorrelation; //! ESD eta vs MC eta |
60 | TProfile* fEtaProfile; //! Profile of MC eta - ESD eta vs. MC eta | |
61 | ||
96fcc8a7 | 62 | // histograms for systematic studies (must be enabled with option) |
63 | ||
64 | TH1F* fSigmaVertexTracks; //! (accepted tracks) vs (n of sigma to vertex cut) | |
65 | TH1F* fSigmaVertexPrim; //! (accepted primaries) vs (n of sigma to vertex cut) | |
66 | // enable with option: sigma-vertex | |
67 | ||
4ef701a0 | 68 | TH1F* fMultAll; //! primary particles in |eta| < 1 and pT > 0.2 in all events |
69 | TH1F* fMultTr; //! primary particles in |eta| < 1 and pT > 0.2 in triggered events | |
70 | TH1F* fMultVtx; //! primary particles in |eta| < 1 and pT > 0.2 in triggered events with vertex | |
71 | ||
3d7758c1 | 72 | TH1F* fDeltaPhi[8]; //! delta phi of primaries, secondaries, other (= unclear cases) |
4ef701a0 | 73 | |
50ec344d | 74 | TH2F* fEventStats; //! some stats on number of events |
75 | ||
96fcc8a7 | 76 | AlidNdEtaCorrection* fdNdEtaCorrectionProcessType[3]; //! correction for specific process type (ND, SD, DD) |
77 | // enable with option: process-types | |
78 | ||
0f67a57c | 79 | private: |
80 | AlidNdEtaCorrectionTask(const AlidNdEtaCorrectionTask&); | |
81 | AlidNdEtaCorrectionTask& operator=(const AlidNdEtaCorrectionTask&); | |
82 | ||
83 | ClassDef(AlidNdEtaCorrectionTask, 1); | |
84 | }; | |
85 | ||
86 | #endif |