1 #ifndef ALIRUNANALYSIS_H
2 #define ALIRUNANALYSIS_H
3 //________________________________
4 ///////////////////////////////////////////////////////////
6 // class AliRunAnalysis
11 // Piotr.Skowronski@cern.ch
13 ///////////////////////////////////////////////////////////
22 #include "AliAnalysis.h"
24 class AliRunAnalysis: public TTask
28 virtual ~AliRunAnalysis();
31 void Add(AliAnalysis* a);
32 void ReadKinematics(Bool_t flag){fReadKinematics = flag;}
34 Int_t GetDebug() {return AliAnalysis::GetDebug();}
35 void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names;
36 const char* GetName(){return fgkDefaultRunAnalysisName;}
38 TObjArray* fAnalysies;//arry with analysies
39 TObjArray* fDirs;//arry with directories to read data from
41 AliEventCut* fEventCut;//event cut
43 TString fFileName;//name of the file with ESDs
44 Bool_t fReadKinematics;
46 TString& GetDirName(Int_t entry);
47 TFile* OpenFile(Int_t n);
50 TNamed::SetName;//change SetName to be private
52 static const TString fgkDefaultRunAnalysisName;
53 ClassDef(AliRunAnalysis,1)