]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/AliRunAnalysis.h
AliAOD and AODParticle (T.Kuhr) - Readers, AODStdParticle and Cuts (P.Skowronski...
[u/mrichter/AliRoot.git] / ANALYSIS / AliRunAnalysis.h
1 #ifndef ALIRUNANALYSIS_H
2 #define ALIRUNANALYSIS_H
3 //________________________________
4 ///////////////////////////////////////////////////////////
5 //
6 // class AliRunAnalysis
7 //
8 // Analysis manager
9 //
10 //
11 // Piotr.Skowronski@cern.ch
12 //
13 ///////////////////////////////////////////////////////////
14
15 #include <TTask.h>
16 #include <TObjArray.h>
17 #include "AliAnalysis.h"
18
19 class AliEventCut;
20 class TFile;
21 class AliReader;
22
23 class AliRunAnalysis: public TTask
24 {
25   public: 
26     AliRunAnalysis();
27     virtual ~AliRunAnalysis();
28     
29     Int_t         Run();
30     void          Add(AliAnalysis* a);
31     void          SetReader(AliReader* reader){fReader = reader;}
32     
33     const char*   GetName(){return "RunAnalysis";}
34     
35   protected:
36     TObjArray     fAnalysies;//arry with analysies
37     AliReader*    fReader;//arry with directories to read data from
38     
39     AliEventCut*  fEventCut;//event cut    
40     
41     Bool_t        fCutOnSim;//flag indicating that event cut is performed on simulated particles 
42     Bool_t        fCutOnRec;//flag indicating that event cut is performed on reconstructed tracks
43     
44     Bool_t        Pass(AliAOD* recevent, AliAOD* simevent);
45     
46   private:
47     void SetName(const char *){}//change SetName to be private
48     
49     ClassDef(AliRunAnalysis,1)
50 };
51
52 #endif