FairRoot/PandaRoot
|
Class for the master reconstruction chain. More...
#include <PndMasterRunAna.h>
Public Member Functions | |
PndMasterRunAna () | |
Default constructor. More... | |
virtual | ~PndMasterRunAna () |
Default destructor. More... | |
Bool_t | Setup (TString outprefix="") |
Initial setup. More... | |
void | Finish () |
Final diagnostics. More... | |
void | AddDigiTasks (Bool_t pers=kTRUE) |
Add digitization and local reconstruction tasks. More... | |
void | AddDigiOnlyTasks (Bool_t pers=kTRUE) |
Add digitization tasks without reconstruction. More... | |
void | AddRecoTasks (Bool_t pers=kTRUE) |
Add reconstruction tasks. More... | |
void | AddLocalRecoTasks (Bool_t pers=kTRUE) |
Add local reconstruction tasks. More... | |
void | AddRecoIdealTasks (Bool_t pers=kTRUE) |
Add ideal pattern reconstruction tasks. More... | |
void | AddPidTasks (Bool_t pers=kTRUE) |
Add pid tasks. More... | |
void | SetInput (TString par) |
Input of the macro. More... | |
void | SetOutput (TString par) |
Tag of the output file of the macro. More... | |
void | SetParamRootFile (TString par) |
Setter of the parameter root file. More... | |
void | SetParamAsciiFile (TString par) |
Setter of the parameter ascii file. More... | |
void | AddFriend (TString par) |
Setter of friend root files. More... | |
void | SetOptions (TString par) |
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for day1 experimentent, no GEM "day1+GEM" -> Setup for day1 experimentent, 3 GEM planes. More... | |
TString | GetOptions () |
void | PrintListOftTasks () |
void | SetEventCounterRate (Int_t par) |
Setter of the event counter rate. More... | |
void | GenerateRunInfo (Bool_t val) |
void | UseFairLinks (Bool_t val) |
Private Attributes | |
TString | fInput |
Name of the input for the simulation. More... | |
TString | fOutFile |
Name of the output file. More... | |
TString | fParamRootFile |
Name of the parameter root file. More... | |
TString | fParamAsciiFile |
Name of the parameter ascii file. More... | |
std::vector< TString > | fFriendFiles |
Name of friend files. More... | |
TString | fOptions |
Options parsed to the reconstruction. More... | |
Int_t | fEventCounterRate |
After how many events the counter will print. More... | |
Bool_t | fNoGeane |
Protect GEANE from being loaded twice. More... | |
Bool_t | fGenerateRunInfo |
Switches on/off the generation of Run info. More... | |
Bool_t | fUseFairLinks |
Switches on/off the usage of FairLinks. More... | |
TStopwatch | fTimer |
Timer. More... | |
Class for the master reconstruction chain.
This class is the basic for all the reconstruction steps, digi, reco, pid and so on.
Definition at line 21 of file PndMasterRunAna.h.
PndMasterRunAna::PndMasterRunAna | ( | ) |
Default constructor.
Definition at line 30 of file PndMasterRunAna.cxx.
References fTimer.
|
virtual |
void PndMasterRunAna::AddDigiOnlyTasks | ( | Bool_t | pers = kTRUE | ) |
Add digitization tasks without reconstruction.
pers | Persistency of the TCAs, used only to switch OFF It calls PndMasterDigiTask, adding all the standard digitization tasks |
Definition at line 119 of file PndMasterRunAna.cxx.
References AddTask(), digi, fOptions, and PndMasterTask::SetPersistency().
Referenced by digiOnly_complete().
void PndMasterRunAna::AddDigiTasks | ( | Bool_t | pers = kTRUE | ) |
Add digitization and local reconstruction tasks.
pers | Persistency of the TCAs, used only to switch OFF It calls PndMasterDigiTask, adding all the standard digitization tasks |
Definition at line 110 of file PndMasterRunAna.cxx.
References AddTask(), digi, fOptions, and PndMasterDigiTask::SetPersistency().
Referenced by digi_box(), digi_complete(), digi_day1(), full_box(), full_complete(), prod_aod(), prod_dig(), and tut_aod().
|
inline |
Setter of friend root files.
Definition at line 123 of file PndMasterRunAna.h.
References fFriendFiles.
Referenced by ana_complete(), ana_day1(), barrelTrackFinder(), catracking(), cellTrackFinder(), digi_box(), digi_complete(), digi_complete_newSTT(), digi_day1(), digiOnly_complete(), eventDisplay(), forwardTrackFinder(), ftscatracking(), full_box(), full_complete(), fwdhoughtracking(), idealbarreltracking(), idealforwardtracking(), pid_box(), pid_complete(), pid_complete_sec(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), printFairLinks(), prod_pid(), prod_rec(), reco_box(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), reco_completeCA(), reco_day1(), reco_multi(), recoideal_box(), recoideal_complete(), recoideal_day1(), recolocal_complete(), recoLocal_complete(), recoqa_complete(), standard_tracking(), trackingQA_complete(), and trackingQA_forward_complete().
void PndMasterRunAna::AddLocalRecoTasks | ( | Bool_t | pers = kTRUE | ) |
Add local reconstruction tasks.
pers | Persistency of the TCAs, used only to switch OFF It calls PndMasterLocalRecoTask, adding all the standard reconstruction tasks |
Definition at line 142 of file PndMasterRunAna.cxx.
References AddTask(), fNoGeane, fOptions, reco(), and PndMasterLocalRecoTask::SetPersistency().
Referenced by recolocal_complete().
void PndMasterRunAna::AddPidTasks | ( | Bool_t | pers = kTRUE | ) |
Add pid tasks.
pers | Persistency of the TCAs, used only to switch OFF It calls PndMasterPidTask, adding all the standard pid tasks |
Definition at line 170 of file PndMasterRunAna.cxx.
References AddTask(), fNoGeane, fOptions, pid(), PndMasterPidTask::SetPersistency(), and PndMasterMultiPidTask::SetPersistency().
Referenced by full_box(), full_complete(), pid_box(), pid_complete(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), prod_aod(), prod_pid(), and tut_aod().
void PndMasterRunAna::AddRecoIdealTasks | ( | Bool_t | pers = kTRUE | ) |
Add ideal pattern reconstruction tasks.
pers | Persistency of the TCAs, used only to switch OFF It calls PndMasterRecoTask, adding all the standard reconstruction tasks |
Definition at line 156 of file PndMasterRunAna.cxx.
References AddTask(), fNoGeane, fOptions, and PndMasterRecoIdealTask::SetPersistency().
Referenced by recoideal_box(), recoideal_complete(), and recoideal_day1().
void PndMasterRunAna::AddRecoTasks | ( | Bool_t | pers = kTRUE | ) |
Add reconstruction tasks.
pers | Persistency of the TCAs, used only to switch OFF It calls PndMasterRecoTask, adding all the standard reconstruction tasks |
Definition at line 128 of file PndMasterRunAna.cxx.
References AddTask(), fNoGeane, fOptions, reco(), and PndMasterTask::SetPersistency().
Referenced by full_box(), full_complete(), prod_aod(), prod_rec(), reco_box(), reco_complete(), reco_day1(), reco_multi(), and tut_aod().
void PndMasterRunAna::Finish | ( | ) |
Final diagnostics.
It prints CPU time, memory usage, used parameters, and eventually send the information to CDash
Definition at line 205 of file PndMasterRunAna.cxx.
References ctime, Double_t, fFriendFiles, files, fOptions, fOutFile, fParamAsciiFile, fParamRootFile, fTimer, gGeoManager, outfile, PrintListOftTasks(), and rtime.
Referenced by ana_complete(), ana_day1(), barrelTrackFinder(), catracking(), cellTrackFinder(), digi_box(), digi_complete(), digi_complete_newSTT(), digi_day1(), digiOnly_complete(), forwardTrackFinder(), ftscatracking(), full_box(), full_complete(), fwdhoughtracking(), idealbarreltracking(), idealforwardtracking(), pid_box(), pid_complete(), pid_complete_sec(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), prod_aod(), prod_dig(), prod_pid(), prod_rec(), reco_box(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), reco_completeCA(), reco_day1(), reco_multi(), recoideal_box(), recoideal_complete(), recoideal_day1(), recoLocal_complete(), recolocal_complete(), recoqa_complete(), standard_tracking(), trackingQA_complete(), trackingQA_forward_complete(), and tut_aod().
|
inline |
Definition at line 141 of file PndMasterRunAna.h.
References fGenerateRunInfo, and val.
|
inline |
Definition at line 133 of file PndMasterRunAna.h.
References fOptions.
Referenced by digi_complete(), pid_complete(), and reco_complete().
void PndMasterRunAna::PrintListOftTasks | ( | ) |
Definition at line 190 of file PndMasterRunAna.cxx.
References outfile.
Referenced by Finish(), and pid_multi().
|
inline |
Setter of the event counter rate.
Definition at line 139 of file PndMasterRunAna.h.
References fEventCounterRate, and par.
|
inline |
Input of the macro.
Definition at line 103 of file PndMasterRunAna.h.
Referenced by ana_complete(), ana_day1(), barrelTrackFinder(), catracking(), cellTrackFinder(), digi_box(), digi_complete(), digi_complete_newSTT(), digi_day1(), digiOnly_complete(), eventDisplay(), forwardTrackFinder(), ftscatracking(), full_box(), full_complete(), fwdhoughtracking(), idealbarreltracking(), idealforwardtracking(), pid_box(), pid_complete(), pid_complete_sec(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), printFairLinks(), prod_aod(), prod_dig(), prod_pid(), prod_rec(), reco_box(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), reco_completeCA(), reco_day1(), reco_multi(), recoideal_box(), recoideal_complete(), recoideal_day1(), recoLocal_complete(), recolocal_complete(), recoqa_complete(), standard_tracking(), trackingQA_complete(), trackingQA_forward_complete(), and tut_aod().
|
inline |
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for day1 experimentent, no GEM "day1+GEM" -> Setup for day1 experimentent, 3 GEM planes.
Definition at line 132 of file PndMasterRunAna.h.
Referenced by digi_complete(), digi_day1(), pid_complete(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), prod_aod(), prod_dig(), prod_pid(), prod_rec(), reco_complete(), reco_day1(), reco_multi(), recoideal_complete(), and recoideal_day1().
|
inline |
Tag of the output file of the macro.
Definition at line 108 of file PndMasterRunAna.h.
Referenced by ana_complete(), ana_day1(), barrelTrackFinder(), catracking(), cellTrackFinder(), digi_box(), digi_complete(), digi_complete_newSTT(), digi_day1(), digiOnly_complete(), eventDisplay(), forwardTrackFinder(), ftscatracking(), full_box(), full_complete(), fwdhoughtracking(), idealbarreltracking(), idealforwardtracking(), pid_box(), pid_complete(), pid_complete_sec(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), printFairLinks(), prod_aod(), prod_dig(), prod_pid(), prod_rec(), reco_box(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), reco_completeCA(), reco_day1(), reco_multi(), recoideal_box(), recoideal_complete(), recoideal_day1(), recoLocal_complete(), recolocal_complete(), recoqa_complete(), Setup(), standard_tracking(), trackingQA_complete(), trackingQA_forward_complete(), and tut_aod().
|
inline |
Setter of the parameter ascii file.
Definition at line 118 of file PndMasterRunAna.h.
References fParamAsciiFile, and par.
Referenced by ana_complete(), ana_day1(), barrelTrackFinder(), catracking(), cellTrackFinder(), digi_box(), digi_complete(), digi_complete_newSTT(), digi_day1(), digiOnly_complete(), eventDisplay(), forwardTrackFinder(), ftscatracking(), full_box(), full_complete(), fwdhoughtracking(), idealbarreltracking(), idealforwardtracking(), pid_box(), pid_complete(), pid_complete_sec(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), printFairLinks(), prod_aod(), prod_dig(), prod_pid(), prod_rec(), reco_box(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), reco_completeCA(), reco_day1(), reco_multi(), recoideal_box(), recoideal_complete(), recoideal_day1(), recoLocal_complete(), recolocal_complete(), recoqa_complete(), standard_tracking(), trackingQA_complete(), trackingQA_forward_complete(), and tut_aod().
|
inline |
Setter of the parameter root file.
Definition at line 113 of file PndMasterRunAna.h.
References fParamRootFile, and par.
Referenced by Setup().
Initial setup.
This command set the source files, load the proper parameters, and set the relevant flags. If something fails, it returns a kFALSE value.
Definition at line 48 of file PndMasterRunAna.cxx.
References AddTask(), allDigiFile, creator, fEventCounterRate, fFriendFiles, fGenerateRunInfo, files, fInput, fOutFile, fParamAsciiFile, fParamRootFile, fUseFairLinks, parInput1, parIo1, rtdb, SetOutput(), SetOutputFile(), SetParamRootFile(), SetUseFairLinks(), and TString.
Referenced by ana_complete(), ana_day1(), barrelTrackFinder(), catracking(), cellTrackFinder(), digi_box(), digi_complete(), digi_complete_newSTT(), digi_day1(), digiOnly_complete(), eventDisplay(), forwardTrackFinder(), ftscatracking(), full_box(), full_complete(), fwdhoughtracking(), idealbarreltracking(), idealforwardtracking(), pid_box(), pid_complete(), pid_complete_sec(), pid_day1(), pid_multi(), pidideal_complete(), pidideal_day1(), printFairLinks(), prod_aod(), prod_dig(), prod_pid(), prod_rec(), reco_box(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), reco_completeCA(), reco_day1(), reco_multi(), recoideal_box(), recoideal_complete(), recoideal_day1(), recoLocal_complete(), recolocal_complete(), recoqa_complete(), standard_tracking(), trackingQA_complete(), trackingQA_forward_complete(), and tut_aod().
|
inline |
Definition at line 143 of file PndMasterRunAna.h.
References fUseFairLinks, and val.
Referenced by eventDisplay(), and printFairLinks().
|
private |
After how many events the counter will print.
Definition at line 154 of file PndMasterRunAna.h.
Referenced by SetEventCounterRate(), and Setup().
|
private |
Name of friend files.
Definition at line 151 of file PndMasterRunAna.h.
Referenced by AddFriend(), Finish(), and Setup().
|
private |
Switches on/off the generation of Run info.
Definition at line 156 of file PndMasterRunAna.h.
Referenced by GenerateRunInfo(), and Setup().
|
private |
Name of the input for the simulation.
Definition at line 147 of file PndMasterRunAna.h.
Referenced by SetInput(), and Setup().
|
private |
Protect GEANE from being loaded twice.
Definition at line 155 of file PndMasterRunAna.h.
Referenced by AddLocalRecoTasks(), AddPidTasks(), AddRecoIdealTasks(), and AddRecoTasks().
|
private |
Options parsed to the reconstruction.
Definition at line 152 of file PndMasterRunAna.h.
Referenced by AddDigiOnlyTasks(), AddDigiTasks(), AddLocalRecoTasks(), AddPidTasks(), AddRecoIdealTasks(), AddRecoTasks(), Finish(), GetOptions(), and SetOptions().
|
private |
Name of the output file.
Definition at line 148 of file PndMasterRunAna.h.
Referenced by Finish(), SetOutput(), and Setup().
|
private |
Name of the parameter ascii file.
Definition at line 150 of file PndMasterRunAna.h.
Referenced by Finish(), SetParamAsciiFile(), and Setup().
|
private |
Name of the parameter root file.
Definition at line 149 of file PndMasterRunAna.h.
Referenced by Finish(), SetParamRootFile(), and Setup().
|
private |
Timer.
Definition at line 159 of file PndMasterRunAna.h.
Referenced by Finish(), and PndMasterRunAna().
|
private |
Switches on/off the usage of FairLinks.
Definition at line 157 of file PndMasterRunAna.h.
Referenced by Setup(), and UseFairLinks().