PandaRoot
PndMasterRunAna.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
25 #ifndef PNDMASTERRUNANA_H
26 #define PNDMASTERRUNANA_H
27 
28 #include "FairRunAna.h"
29 #include "FairTask.h"
30 #include "TStopwatch.h"
31 #include <vector>
32 
33 class PndMasterRunAna : public FairRunAna {
34  public:
39 
43  virtual ~PndMasterRunAna();
44 
52  Bool_t Setup(TString outprefix = "");
53 
60  void Finish();
61 
68  void AddDigiTasks(Bool_t pers = kTRUE);
69 
76  void AddDigiOnlyTasks(Bool_t pers = kTRUE);
77 
84  void AddRecoTasks(Bool_t pers = kTRUE);
85 
92  void AddLocalRecoTasks(Bool_t pers = kTRUE);
93 
100  void AddRecoIdealTasks(Bool_t pers = kTRUE);
101 
108  void AddPidTasks(Bool_t pers = kTRUE);
109 
113  void SetInput(TString par) { fInput = par; }
114 
118  void SetOutput(TString par) { fOutFile = par; }
119 
123  void SetParamRootFile(TString par) { fParamRootFile = par; }
124 
128  void SetParamAsciiFile(TString par) { fParamAsciiFile = par; }
129 
133  void AddFriend(TString par)
134  {
135  if (par != "")
136  fFriendFiles.push_back(par);
137  }
138 
146  void SetOptions(TString par)
147  {
148  fOptions = par;
149  fOptions.ToLower();
150  }
151  TString GetOptions() { return fOptions; }
152 
153  void PrintListOfTasks(TList *list, TString prefix = " - ");
154  void PrintListOfTasks() { PrintListOfTasks(GetMainTask()->GetListOfTasks()); }
155 
159  void SetEventCounterRate(Int_t par) { fEventCounterRate = par; }
160 
161  void GenerateRunInfo(Bool_t val) { fGenerateRunInfo = val; }
162 
163  void UseFairLinks(Bool_t val) { fUseFairLinks = val; }
164 
165  private:
166  TString fInput;
167  TString fOutFile;
168  TString fParamRootFile;
169  TString fParamAsciiFile;
170  std::vector<TString> fFriendFiles;
171  TString fOptions;
172 
173  Int_t fEventCounterRate;
174  Bool_t fNoGeane;
175  Bool_t fGenerateRunInfo;
176  Bool_t fUseFairLinks;
177 
178  TStopwatch fTimer;
179 
181  ClassDef(PndMasterRunAna, 2);
182 
183 };
184 
185 #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.