o First Version of TRDnSigma implementation (Xianguo) o still requires some catching...
[u/mrichter/AliRoot.git] / PWGLF / totEt / AliAnalysisTaskTransverseEnergy.h
CommitLineData
a7ae9b24 1//_________________________________________________________________________
2// Utility Class for transverse energy studies
3// Base class for Et tasks
4// - reconstruction and MonteCarlo output
5//
6//*-- Authors: Oystein Djuvsland (Bergen)
7//_________________________________________________________________________//
e97ddc0e 8#ifndef ALIANALYSISTASKTRANSVERSEENERGY_H
9#define ALIANALYSISTASKTRANSVERSEENERGY_H
10
11#include "AliAnalysisTaskSE.h"
e97ddc0e 12
b6dd6ad2 13class AliCentrality;
e97ddc0e 14class AliAnalysisEtSelectionHandler;
a7ae9b24 15class AliESDtrackCuts;
16class AliESDEvent;
17class TH2F;
e97ddc0e 18
19class AliAnalysisTaskTransverseEnergy : public AliAnalysisTaskSE
20{
21
22public:
23
24 /** Constructor */
25 AliAnalysisTaskTransverseEnergy(const char* name, Bool_t isMc);
26
311c6540 27 /** Destructor */
e97ddc0e 28 virtual ~AliAnalysisTaskTransverseEnergy();
29
30 AliESDtrackCuts* GetTPCITSTrackCuts(){return (AliESDtrackCuts*) fOutputList->FindObject("fEsdTrackCuts");}
31 AliESDtrackCuts* GetTPCOnlyTrackCuts(){return (AliESDtrackCuts*) fOutputList->FindObject("fEsdTrackCutsTPCOnly");}
32 AliESDtrackCuts* GetITSTrackCuts(){return (AliESDtrackCuts*) fOutputList->FindObject("fEsdTrackCutsITS");}
33
e97ddc0e 34
35 void SetMcData(Bool_t isMc = true) { fIsMc = isMc; }
36
37protected:
38
e97ddc0e 39
40 /** Get the centrality object */
b6dd6ad2 41 AliCentrality* GetCentralityObject();
e97ddc0e 42
43 /** The ESD event */
f17b7fa0 44 AliESDEvent *fESDEvent; //!The ESD event
e97ddc0e 45
46 TString fMCConfigFile; // the name of the ConfigFile
47 TString fRecoConfigFile; // the name of the ConfigFile
48
f17b7fa0 49 TH2F *fHistEtRecvsEtMC; //! Rec vs MC histo
50 TH2F *fHistEtRecOverEtMC; //! Rec over MC histo
51 TH2F *fHistDiffEtRecEtMCOverEtMC; //! Rec - MC over MC histo
e97ddc0e 52
f17b7fa0 53 AliESDtrackCuts* fEsdtrackCutsITSTPC; //! track cuts ITS&TPC
54 AliESDtrackCuts* fEsdtrackCutsTPC; //! track cuts TPC
55 AliESDtrackCuts* fEsdtrackCutsITS; //! track cuts ITS
e97ddc0e 56
f17b7fa0 57 TList *fOutputList; //->output list
e97ddc0e 58
59 TString fPhysSelTaskName; // If we need to access the physics selection task
60 TString fCentSelTaskName; // If we need to access the centrality selection task
61
62 Bool_t fIsMc; // Are we analysing MC data
63
32b0f53f 64 //Bool_t fUsingDefaultSelection; // Are we using the default physics selection
e97ddc0e 65
66private:
67
a7ae9b24 68 Int_t fCurrentRunNum; // The current run number
e97ddc0e 69
e97ddc0e 70 AliAnalysisTaskTransverseEnergy();
71 //Declare it private to avoid compilation warning
72 AliAnalysisTaskTransverseEnergy & operator = (const AliAnalysisTaskTransverseEnergy &);//assignment
73 AliAnalysisTaskTransverseEnergy(const AliAnalysisTaskTransverseEnergy &) ; //copy constructor
74
75 ClassDef(AliAnalysisTaskTransverseEnergy, 1)
76};
77
78#endif // ALIANALYSISTASKTRANSVERSEENERGY_H