]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/AliRunAnalysis.h
Adding the new MUONcalib library (Ivana)
[u/mrichter/AliRoot.git] / ANALYSIS / AliRunAnalysis.h
CommitLineData
b26900d0 1#ifndef ALIRUNANALYSIS_H
2#define ALIRUNANALYSIS_H
0206ddfb 3
b26900d0 4///////////////////////////////////////////////////////////
5//
6// class AliRunAnalysis
b26900d0 7// Analysis manager
0206ddfb 8// Author: Piotr.Skowronski@cern.ch
b26900d0 9//
10///////////////////////////////////////////////////////////
11
b26900d0 12#include <TTask.h>
a5556ea5 13#include <TObjArray.h>
b26900d0 14
a5556ea5 15class AliEventCut;
a5556ea5 16class AliReader;
0206ddfb 17class AliAnalysis;
18class AliAOD;
a5556ea5 19
b26900d0 20class AliRunAnalysis: public TTask
21{
22 public:
23 AliRunAnalysis();
24 virtual ~AliRunAnalysis();
25
a5556ea5 26 Int_t Run();
201c7e13 27 void Add(TTask *t){TTask::Add(t);}
a5556ea5 28 void Add(AliAnalysis* a);
29 void SetReader(AliReader* reader){fReader = reader;}
30
201c7e13 31 const char* GetName() const {return "RunAnalysis";}
36715d31 32 void EventCutOnRec(Bool_t flag){fCutOnRec = flag;}
33 void EventCutOnSim(Bool_t flag){fCutOnSim = flag;}
34 void SetEventCut(AliEventCut* evcut);
53f4817d 35 void SetOwner(Bool_t owner=kTRUE){fAnalysies.SetOwner(owner);}
b26900d0 36
b26900d0 37 protected:
a5556ea5 38 TObjArray fAnalysies;//arry with analysies
39 AliReader* fReader;//arry with directories to read data from
b26900d0 40
41 AliEventCut* fEventCut;//event cut
42
a5556ea5 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
b26900d0 45
cea0a066 46 Bool_t Rejected(AliAOD* recevent, AliAOD* simevent);
b26900d0 47
48 private:
af250cbf 49 AliRunAnalysis(const AliRunAnalysis & src);
50 AliRunAnalysis & operator=(const AliRunAnalysis & src);
51
91757255 52 void SetName(const char *){}//change SetName to be private
b26900d0 53
b26900d0 54 ClassDef(AliRunAnalysis,1)
55};
56
57#endif