PandaRoot
PndMasterRunAna.h
Go to the documentation of this file.
1 
13 #ifndef PNDMASTERRUNANA_H
14 #define PNDMASTERRUNANA_H
15 
16 #include "FairRunAna.h"
17 #include "FairTask.h"
18 #include "TStopwatch.h"
19 #include <vector>
20 
21 class PndMasterRunAna : public FairRunAna {
22  public:
27 
31  virtual ~PndMasterRunAna();
32 
40  Bool_t Setup(TString outprefix = "");
41 
48  void Finish();
49 
56  void AddDigiTasks(Bool_t pers = kTRUE);
57 
64  void AddDigiOnlyTasks(Bool_t pers = kTRUE);
65 
72  void AddRecoTasks(Bool_t pers = kTRUE);
73 
80  void AddLocalRecoTasks(Bool_t pers = kTRUE);
81 
88  void AddRecoIdealTasks(Bool_t pers = kTRUE);
89 
96  void AddPidTasks(Bool_t pers = kTRUE);
97 
101  void SetInput(TString par) { fInput = par; }
102 
106  void SetOutput(TString par) { fOutFile = par; }
107 
111  void SetParamRootFile(TString par) { fParamRootFile = par; }
112 
116  void SetParamAsciiFile(TString par) { fParamAsciiFile = par; }
117 
121  void AddFriend(TString par)
122  {
123  if (par != "")
124  fFriendFiles.push_back(par);
125  }
126 
134  void SetOptions(TString par)
135  {
136  fOptions = par;
137  fOptions.ToLower();
138  }
139  TString GetOptions() { return fOptions; }
140 
141  void PrintListOfTasks(TList *list, TString prefix = " - ");
142  void PrintListOfTasks() { PrintListOfTasks(GetMainTask()->GetListOfTasks()); }
143 
147  void SetEventCounterRate(Int_t par) { fEventCounterRate = par; }
148 
149  void GenerateRunInfo(Bool_t val) { fGenerateRunInfo = val; }
150 
151  void UseFairLinks(Bool_t val) { fUseFairLinks = val; }
152 
153  private:
154  TString fInput;
155  TString fOutFile;
156  TString fParamRootFile;
157  TString fParamAsciiFile;
158  std::vector<TString> fFriendFiles;
159  TString fOptions;
160 
161  Int_t fEventCounterRate;
162  Bool_t fNoGeane;
163  Bool_t fGenerateRunInfo;
164  Bool_t fUseFairLinks;
165 
166  TStopwatch fTimer;
167 
169  ClassDef(PndMasterRunAna, 2);
170 
171 };
172 
173 #endif /* PNDMASTERRUNANA_H */
void AddLocalRecoTasks(Bool_t pers=kTRUE)
Add local reconstruction tasks.
void AddDigiOnlyTasks(Bool_t pers=kTRUE)
Add digitization tasks without reconstruction.
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
void AddFriend(TString par)
Setter of friend root files.
virtual ~PndMasterRunAna()
Default destructor.
void SetInput(TString par)
Input of the macro.
void AddRecoTasks(Bool_t pers=kTRUE)
Add reconstruction tasks.
void GenerateRunInfo(Bool_t val)
TString GetOptions()
void AddPidTasks(Bool_t pers=kTRUE)
Add pid tasks.
void AddRecoIdealTasks(Bool_t pers=kTRUE)
Add ideal pattern reconstruction tasks.
void SetParamRootFile(TString par)
Setter of the parameter root file.
PndMasterRunAna()
Default constructor.
void SetOptions(TString par)
Setter of the reconstruction options.
void AddDigiTasks(Bool_t pers=kTRUE)
Add digitization and local reconstruction tasks.
void Finish()
Final diagnostics.
void UseFairLinks(Bool_t val)
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.
void SetEventCounterRate(Int_t par)
Setter of the event counter rate.