3 #ifndef AlidNdEtaTask_H
4 #define AlidNdEtaTask_H
6 #include "AliAnalysisTask.h"
7 #include "AliPWG0Helper.h"
10 class AliESDtrackCuts;
16 class AlidNdEtaTask : public AliAnalysisTask {
18 AlidNdEtaTask(const char* opt = "");
19 virtual ~AlidNdEtaTask();
21 virtual void ConnectInputData(Option_t *);
22 virtual void CreateOutputObjects();
23 virtual void Exec(Option_t*);
24 virtual void Terminate(Option_t*);
26 void SetTrackCuts(AliESDtrackCuts* cuts) { fEsdTrackCuts = cuts; }
27 void SetAnalysisMode(AliPWG0Helper::AnalysisMode mode) { fAnalysisMode = mode; }
28 void SetReadMC(Bool_t flag = kTRUE) { fReadMC = flag; }
31 AliESDEvent *fESD; //! ESD object
32 TList* fOutput; //! list send on output slot 0
34 TString fOption; // option string
35 AliPWG0Helper::AnalysisMode fAnalysisMode; // detector that is used for analysis
37 Bool_t fReadMC; // if true reads MC data (to build correlation maps)
39 AliESDtrackCuts* fEsdTrackCuts; // Object containing the parameters of the esd track cuts
42 dNdEtaAnalysis* fdNdEtaAnalysisESD; //! contains the dndeta from the ESD
44 TH1F* fMult; //! raw multiplicity histogram (control histogram)
45 TH1F* fMultVtx; //! raw multiplicity histogram of evts with vtx (control histogram)
46 TH1F* fPartEta[3]; //! counted particles as function of eta (full vertex range, below 0 range, above 0 range)
47 TH1F* fEvents; //! events counted as function of vtx
49 // Gathered from MC (when fReadMC is set)
50 dNdEtaAnalysis* fdNdEtaAnalysis; //! contains the dndeta from the full sample
51 dNdEtaAnalysis* fdNdEtaAnalysisTr; //! contains the dndeta from the triggered events
52 dNdEtaAnalysis* fdNdEtaAnalysisTrVtx; //! contains the dndeta from the triggered events with vertex
53 dNdEtaAnalysis* fdNdEtaAnalysisTracks; //! contains the dndeta from the triggered events with vertex counted from the mc particles associated to the tracks (comparing this to the raw values from the esd shows the effect of the detector resolution)
54 // the following are control histograms to check the dNdEtaAnalysis class
55 TH3F* fVertex; //! vertex of counted particles
56 TH1F* fPartPt; //! counted particles as function of pt
59 AlidNdEtaTask(const AlidNdEtaTask&);
60 AlidNdEtaTask& operator=(const AlidNdEtaTask&);
62 ClassDef(AlidNdEtaTask, 1);