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