]>
Commit | Line | Data |
---|---|---|
e97ddc0e | 1 | #ifndef ALIANALYSISTASKTRANSVERSEENERGY_H |
2 | #define ALIANALYSISTASKTRANSVERSEENERGY_H | |
3 | ||
4 | #include "AliAnalysisTaskSE.h" | |
5 | #include "AliESDtrackCuts.h" | |
6 | ||
7 | class AliESDCentrality; | |
8 | class AliAnalysisEtSelectionHandler; | |
9 | ||
10 | class AliAnalysisTaskTransverseEnergy : public AliAnalysisTaskSE | |
11 | { | |
12 | ||
13 | public: | |
14 | ||
15 | /** Constructor */ | |
16 | AliAnalysisTaskTransverseEnergy(const char* name, Bool_t isMc); | |
17 | ||
18 | /** Destructro */ | |
19 | virtual ~AliAnalysisTaskTransverseEnergy(); | |
20 | ||
21 | AliESDtrackCuts* GetTPCITSTrackCuts(){return (AliESDtrackCuts*) fOutputList->FindObject("fEsdTrackCuts");} | |
22 | AliESDtrackCuts* GetTPCOnlyTrackCuts(){return (AliESDtrackCuts*) fOutputList->FindObject("fEsdTrackCutsTPCOnly");} | |
23 | AliESDtrackCuts* GetITSTrackCuts(){return (AliESDtrackCuts*) fOutputList->FindObject("fEsdTrackCutsITS");} | |
24 | ||
25 | Int_t LoadPhysicsSelection(TString name); | |
26 | ||
27 | void SetMcData(Bool_t isMc = true) { fIsMc = isMc; } | |
28 | ||
29 | protected: | |
30 | ||
31 | /** Check if the physics selection is still valid, if not load new */ | |
32 | Int_t CheckPhysicsSelection(Int_t runNumber); // check if the current physics selection is valid, if not load new | |
33 | ||
34 | /** Check if the event is a physics event */ | |
35 | Bool_t IsPhysicsSelected() const; | |
36 | ||
37 | /** Get the centrality object */ | |
38 | AliESDCentrality* GetCentralityObject(); | |
39 | ||
40 | /** The ESD event */ | |
41 | AliESDEvent *fESDEvent; //The ESD event | |
42 | ||
43 | TString fMCConfigFile; // the name of the ConfigFile | |
44 | TString fRecoConfigFile; // the name of the ConfigFile | |
45 | ||
46 | TH2F *fHistEtRecvsEtMC; // Rec vs MC histo | |
47 | ||
48 | AliESDtrackCuts* fEsdtrackCutsITSTPC; // track cuts ITS&TPC | |
49 | AliESDtrackCuts* fEsdtrackCutsTPC; // track cuts TPC | |
50 | AliESDtrackCuts* fEsdtrackCutsITS; // track cuts ITS | |
51 | ||
52 | TList *fOutputList; //output list | |
53 | ||
54 | TString fPhysSelTaskName; // If we need to access the physics selection task | |
55 | TString fCentSelTaskName; // If we need to access the centrality selection task | |
56 | ||
57 | Bool_t fIsMc; // Are we analysing MC data | |
58 | ||
59 | Bool_t fUsingDefaultSelection; // Are we using the default physics selection | |
60 | ||
61 | private: | |
62 | ||
63 | Int_t fCurrentRunNumber; // The current run number | |
64 | ||
65 | AliAnalysisEtSelectionHandler* fSelectionHandler; //! Taking care of loading the correct selections | |
66 | AliAnalysisTaskTransverseEnergy(); | |
67 | //Declare it private to avoid compilation warning | |
68 | AliAnalysisTaskTransverseEnergy & operator = (const AliAnalysisTaskTransverseEnergy &);//assignment | |
69 | AliAnalysisTaskTransverseEnergy(const AliAnalysisTaskTransverseEnergy &) ; //copy constructor | |
70 | ||
71 | ClassDef(AliAnalysisTaskTransverseEnergy, 1) | |
72 | }; | |
73 | ||
74 | #endif // ALIANALYSISTASKTRANSVERSEENERGY_H |