1 #ifndef ALIANALYSISTASKCENTRAL_H
2 #define ALIANALYSISTASKCENTRAL_H
5 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
6 * See cxx source for full Copyright notice
10 //-----------------------------------------
11 // analysis task for azimuthal isotropic
12 // expansion in highly central collisions
13 // author: Cristian Andrei
14 // acristian@niham.nipne.ro
15 //-----------------------------------------
17 #include "AliAnalysisTask.h"
29 class AliAnalysisTaskCentral : public AliAnalysisTask {
31 AliAnalysisTaskCentral(const char *name="AliAnalysisTaskCentral");
32 virtual ~AliAnalysisTaskCentral();
34 void SetCuts(Int_t const no, TObjArray* const array) {fCutsList[no] = array;} //used to set the cuts to the Task
36 void SendEvent(TObject *obj) const; //used to send the MCEvent to the cuts that need it (i.e MC IsPrimary)
38 Bool_t CheckCuts(Int_t no, TObject *obj) const; //used to check if a track/particle is selected
40 // void SetSimulation(Bool_t type) {fSim = type;} // set to kTRUE if running on simulated data
42 virtual void ConnectInputData(Option_t *);
43 virtual void CreateOutputObjects();
44 virtual void Exec(Option_t *option);
45 virtual void Terminate(Option_t *);
48 AliAnalysisTaskCentral(const AliAnalysisTaskCentral& ref);
49 AliAnalysisTaskCentral& operator=(const AliAnalysisTaskCentral& ref);
51 void InitCuts(); //initialize cuts
53 AliESDEvent *fESD; //ESD object
54 AliMCEvent *fMC; //MC Object
56 TH1D *fNoEvt; //Number of events processed
58 AliCFContainer *fCFContainerPi; // CF Container used to calc/apply eff - Pions
59 AliCFContainer *fCFContainerK; // CF Container used to calc/apply eff - Kaons
60 AliCFContainer *fCFContainerP; // CF Container used to calc/apply eff - Protons
62 Bool_t fSim; // kTRUE = running on simulated data (look at MC Truth too)
64 TObjArray *fCutsList[10]; //list containing the cuts
66 TList *fOutList; //list containing the output objects
69 ClassDef(AliAnalysisTaskCentral, 1);