]>
Commit | Line | Data |
---|---|---|
8a993eac | 1 | #ifndef ALI_ANALYSIS_TASK_CENTRAL_H |
2 | #define ALI_ANALYSIS_TASK_CENTRAL_H | |
bde49c8a | 3 | /* |
4 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. | |
5 | * See cxx source for full Copyright notice | |
6 | * $Id$ | |
7 | */ | |
8 | ||
8a993eac | 9 | // ****************************************** |
10 | // * analysis task for azimuthal isotropic * | |
11 | // * expansion in highly central collisions * | |
12 | // * author: Cristian Andrei * | |
13 | // * acristian@niham.nipne.ro * | |
14 | // ****************************************** | |
bde49c8a | 15 | |
16 | #include "AliAnalysisTask.h" | |
17 | ||
18 | class TH1F; | |
19 | class TObject; | |
20 | class TObjArray; | |
21 | class TList; | |
22 | ||
23 | class AliESDEvent; | |
24 | class AliMCEvent; | |
25 | class AliCFContainer; | |
26 | ||
27 | ||
28 | class AliAnalysisTaskCentral : public AliAnalysisTask { | |
29 | public: | |
30 | AliAnalysisTaskCentral(const char *name="AliAnalysisTaskCentral"); | |
31 | virtual ~AliAnalysisTaskCentral(); | |
32 | ||
33 | void SetCuts(Int_t const no, TObjArray* const array) {fCutsList[no] = array;} //used to set the cuts to the Task | |
34 | ||
35 | void SendEvent(TObject *obj) const; //used to send the MCEvent to the cuts that need it (i.e MC IsPrimary) | |
36 | ||
37 | Bool_t CheckCuts(Int_t no, TObject *obj) const; //used to check if a track/particle is selected | |
38 | ||
39 | void SetSimulation(Bool_t type) {fSim = type;} // set to kTRUE if running on simulated data | |
40 | ||
41 | virtual void ConnectInputData(Option_t *); | |
42 | virtual void CreateOutputObjects(); | |
43 | virtual void Exec(Option_t *option); | |
44 | virtual void Terminate(Option_t *); | |
45 | ||
46 | private: | |
47 | AliAnalysisTaskCentral(const AliAnalysisTaskCentral& ref); | |
48 | AliAnalysisTaskCentral& operator=(const AliAnalysisTaskCentral& ref); | |
49 | ||
50 | void InitCuts(); //initialize cuts | |
51 | ||
52 | AliESDEvent *fESD; //ESD object | |
53 | AliMCEvent *fMC; //MC Object | |
54 | ||
55 | TH1F *fNoEvt; //Number of events processed | |
56 | ||
57 | AliCFContainer *fCFContainerPi; // CF Container used to calc/apply eff - Pions | |
58 | AliCFContainer *fCFContainerK; // CF Container used to calc/apply eff - Kaons | |
59 | AliCFContainer *fCFContainerP; // CF Container used to calc/apply eff - Protons | |
60 | ||
61 | Bool_t fSim; // kTRUE = running on simulated data (look at MC Truth too) | |
62 | ||
63 | TObjArray *fCutsList[10]; //list containing the cuts | |
64 | ||
65 | TList *fOutList; //list containing the output objects | |
66 | ||
67 | ||
68 | ClassDef(AliAnalysisTaskCentral, 1); | |
69 | }; | |
70 | ||
71 | #endif |