1 #ifndef ALIRUNANALYSIS_H
2 #define ALIRUNANALYSIS_H
3 //________________________________
4 ///////////////////////////////////////////////////////////
6 // class AliRunAnalysis
11 // Piotr.Skowronski@cern.ch
13 ///////////////////////////////////////////////////////////
16 #include <TObjArray.h>
17 #include "AliAnalysis.h"
23 class AliRunAnalysis: public TTask
27 virtual ~AliRunAnalysis();
30 void Add(TTask *t){TTask::Add(t);}
31 void Add(AliAnalysis* a);
32 void SetReader(AliReader* reader){fReader = reader;}
34 const char* GetName() const {return "RunAnalysis";}
35 void EventCutOnRec(Bool_t flag){fCutOnRec = flag;}
36 void EventCutOnSim(Bool_t flag){fCutOnSim = flag;}
37 void SetEventCut(AliEventCut* evcut);
38 void SetOwner(Bool_t owner=kTRUE){fAnalysies.SetOwner(owner);}
41 TObjArray fAnalysies;//arry with analysies
42 AliReader* fReader;//arry with directories to read data from
44 AliEventCut* fEventCut;//event cut
46 Bool_t fCutOnSim;//flag indicating that event cut is performed on simulated particles
47 Bool_t fCutOnRec;//flag indicating that event cut is performed on reconstructed tracks
49 Bool_t Rejected(AliAOD* recevent, AliAOD* simevent);
52 void SetName(const char *){}//change SetName to be private
54 ClassDef(AliRunAnalysis,1)