]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/AliRunAnalysis.h
readers updated (mini header -> data header)
[u/mrichter/AliRoot.git] / ANALYSIS / AliRunAnalysis.h
CommitLineData
b26900d0 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
b26900d0 15#include <TTask.h>
a5556ea5 16#include <TObjArray.h>
b26900d0 17#include "AliAnalysis.h"
18
a5556ea5 19class AliEventCut;
20class TFile;
21class AliReader;
22
b26900d0 23class AliRunAnalysis: public TTask
24{
25 public:
26 AliRunAnalysis();
27 virtual ~AliRunAnalysis();
28
a5556ea5 29 Int_t Run();
30 void Add(AliAnalysis* a);
31 void SetReader(AliReader* reader){fReader = reader;}
32
33 const char* GetName(){return "RunAnalysis";}
b26900d0 34
b26900d0 35 protected:
a5556ea5 36 TObjArray fAnalysies;//arry with analysies
37 AliReader* fReader;//arry with directories to read data from
b26900d0 38
39 AliEventCut* fEventCut;//event cut
40
a5556ea5 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
b26900d0 43
a5556ea5 44 Bool_t Pass(AliAOD* recevent, AliAOD* simevent);
b26900d0 45
46 private:
91757255 47 void SetName(const char *){}//change SetName to be private
b26900d0 48
b26900d0 49 ClassDef(AliRunAnalysis,1)
50};
51
52#endif