1 #ifndef ALI_ANALYSIS_TASK_CENTRAL_H
2 #define ALI_ANALYSIS_TASK_CENTRAL_H
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
5 * See cxx source for full Copyright notice
9 // ******************************************
10 // * analysis task for azimuthal isotropic *
11 // * expansion in highly central collisions *
12 // * author: Cristian Andrei *
13 // * acristian@niham.nipne.ro *
14 // ******************************************
16 #include "AliAnalysisTask.h"
28 class AliAnalysisTaskCentral : public AliAnalysisTask {
30 AliAnalysisTaskCentral(const char *name="AliAnalysisTaskCentral");
31 virtual ~AliAnalysisTaskCentral();
33 void SetCuts(Int_t const no, TObjArray* const array) {fCutsList[no] = array;} //used to set the cuts to the Task
35 void SendEvent(TObject *obj) const; //used to send the MCEvent to the cuts that need it (i.e MC IsPrimary)
37 Bool_t CheckCuts(Int_t no, TObject *obj) const; //used to check if a track/particle is selected
39 void SetSimulation(Bool_t type) {fSim = type;} // set to kTRUE if running on simulated data
41 virtual void ConnectInputData(Option_t *);
42 virtual void CreateOutputObjects();
43 virtual void Exec(Option_t *option);
44 virtual void Terminate(Option_t *);
47 AliAnalysisTaskCentral(const AliAnalysisTaskCentral& ref);
48 AliAnalysisTaskCentral& operator=(const AliAnalysisTaskCentral& ref);
50 void InitCuts(); //initialize cuts
52 AliESDEvent *fESD; //ESD object
53 AliMCEvent *fMC; //MC Object
55 TH1F *fNoEvt; //Number of events processed
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
61 Bool_t fSim; // kTRUE = running on simulated data (look at MC Truth too)
63 TObjArray *fCutsList[10]; //list containing the cuts
65 TList *fOutList; //list containing the output objects
68 ClassDef(AliAnalysisTaskCentral, 1);