FairRoot/PandaRoot
|
Abstract class for all the master task list classes. More...
#include <PndMasterTask.h>
Public Member Functions | |
PndMasterTask () | |
Default constructor. More... | |
PndMasterTask (const char *name) | |
Proper Constructor. More... | |
virtual | ~PndMasterTask () |
Destructor. More... | |
void | PrintTaskList () |
It prints the list of tasks. More... | |
virtual void | SetPersistency (Bool_t pers=kTRUE) |
Set the persistency of all the tasks This function has to be implemented for each master task, since different tasks use different functions to change the persistency of the output TClonesArrays. More... | |
void | SetVerbose (Int_t iVerbose=1) |
Set the Verbosity to all the tasks. More... | |
void | SetVerbose (Int_t nTask, Int_t iVerbose) |
Set the Verbosity to a single task. More... | |
FairTask * | GetTask (Int_t nTask) |
Return the pointer to a single task. More... | |
virtual void | SetParContainers () |
virtual InitStatus | Init () |
virtual InitStatus | ReInit () |
virtual void | Exec (Option_t *opt) |
Bool_t | GetPersistency () |
Protected Attributes | |
std::vector< PndPersistencyTask * > | fBranchTasks |
std::vector< FairTask * > | fStandardTasks |
std::map< PndPersistencyTask *, bool > | fFixedPersistency |
Abstract class for all the master task list classes.
This class is the basic for all the master task classes, digi, reco, pid and so on. It provides basic functionalities, such as the possibility to set the Verbosity for each task separately or for all the tasks together, the possibility to getretrieve a Task in order to use some setter, and a print of all the included tasks.
Definition at line 21 of file PndMasterTask.h.
PndMasterTask::PndMasterTask | ( | ) |
PndMasterTask::PndMasterTask | ( | const char * | name | ) |
|
virtual |
|
virtualinherited |
Reimplemented in PndBufferTestTask.
Definition at line 50 of file PndBlackBoxTask.cxx.
|
inlineinherited |
Definition at line 32 of file PndPersistencyTask.h.
References PndPersistencyTask::fPersistency.
Referenced by PndLmdPixelHitProducerFast::GetPersistance(), PndMdtDigitization::Init(), PndMdtHitProducerIdeal::Init(), PndMdtClusterTask::Init(), PndFtsHitProducerRealFast::Init(), PndRichHitProducer::Init(), PndSttHitProducerRealFast::Init(), PndDiscTaskReconstruction::Init(), PndSttHelixHitProducer::Init(), PndDiscTaskPID::Init(), PndIdealTrackFinder::Init(), PndSttMvdGemTracking::Init(), PndMdtTrkProducer::Init(), PndFtsHitProducerRealFull::Init(), PndLmdPixelClusterTask::Init(), PndSttHitProducerRealFull::Init(), PndLmdStripClusterTask::Init(), PndEmcApdHitProducer::Init(), PndMissingPzCleanerTask::Init(), PndEmcMakeRecoHit::Init(), PndEmcMakeClusterOnline::Init(), PndTrackSmearTask::Init(), PndEmcFWEndcapTimebasedWaveforms::Init(), PndSttHitProducerIdeal::Init(), PndEmcFWEndcapDigi::Init(), PndFtsHitProducerIdeal::Init(), PndEmcMakeCluster::Init(), PndMdtPointsToWaveform::Init(), PndDiscTaskDigitization::Init(), PndEmcMakeDigi::Init(), PndSdsTimeWalkCorrTask::Init(), PndLmdPixelHitProducerFast::Init(), PndDrcHitFinder::Init(), PndRichHitFinder::Init(), PndEmcMakeCorr::Init(), PndFtofHitProducerIdeal::Init(), PndEmcHitsToWaveform::Init(), PndSciTDigiTask::Init(), PndDrcHitProducerIdeal::Init(), PndSdsHitProducerIdeal::Init(), PndSciTHitProducerIdeal::Init(), PndRecoMultiKalmanTask2::Init(), PndEmcHitProducer::Init(), PndDrcHitProducerReal::Init(), PndDskFLGHitProducerIdeal::Init(), PndEmcTmpWaveformToDigi::Init(), PndDrcDigiTask::Init(), PndEmcWaveformToDigi::Init(), PndSttMatchTracks::Init(), PndEmcWaveformToCalibratedDigi::Init(), PndTrkTracking2::Init(), PndSttFindTracks::Init(), PndEmcMultiWaveformToCalibratedDigi::Init(), PndRecoKalmanTask2::Init(), PndDrcTimeDigiTask::Init(), PndEmcExpClusterSplitter::Init(), PndFtsHoughTrackerTask::Init(), PndSdsNoiseProducer::Init(), PndEmcPhiBumpSplitter::Init(), PndSdsIdealRecoTask::Init(), PndSdsHybridHitProducer::Init(), PndRecoMultiKalmanTask::Init(), PndSdsIdealClusterTask::Init(), PndRecoKalmanTask::Init(), PndSdsStripHitProducerDif::Init(), PndGemDigitize::Init(), PndSdsStripHitProducer::Init(), PndGemFindHits::Init(), PndSdsPixelClusterTask::Init(), PndSdsStripClusterTask::Init(), PndMvdGemTrackFinderOnHits::Init(), PndBarrelTrackFinder::Init(), PndEmcFullDigiTask::PndEmcFullDigiTask(), PndEmcMakeBump::PndEmcMakeBump(), PndUnassignedHitsTask::RegisterBranches(), PndMvdClusterTask::SetPersistance(), PndMvdDigiTask::SetPersistance(), PndEmcMakeBump::SetStorageOfData(), and PndEmcFullDigiTask::StoreDigi().
FairTask * PndMasterTask::GetTask | ( | Int_t | nTask | ) |
Return the pointer to a single task.
This function allows to retrieve the pointer of a task inside the task list, when you want to use some particular setter or change someting in the task.
nTask | Index of the task you want to modify. Instead of the integer you can use the enum "k" + task name (i.e. kMvdDigiTask, kSttHitProducerRealFast, etc...) |
Retrieve the pointer to a Task in the list
Definition at line 75 of file PndMasterTask.cxx.
|
virtualinherited |
Reimplemented in PndBufferTestTask.
Definition at line 43 of file PndBlackBoxTask.cxx.
void PndMasterTask::PrintTaskList | ( | ) |
It prints the list of tasks.
Print the list of the task which are included in the list
This function print the task number, its title and its name. This can be important when it is needed to modify a particular task and the task number is needed. In any case, the use of enum should be preferred.
Definition at line 24 of file PndMasterTask.cxx.
|
virtualinherited |
Definition at line 25 of file PndBlackBoxTask.cxx.
|
virtualinherited |
Definition at line 21 of file PndBlackBoxTask.cxx.
|
virtual |
Set the persistency of all the tasks This function has to be implemented for each master task, since different tasks use different functions to change the persistency of the output TClonesArrays.
fPersistency | Persistency level: 0 no TCA, 1 all TCA |
Set the Persistency of all the tasks in the same way
Reimplemented in PndMasterLocalRecoTask, PndMasterMultiPidTask, PndMasterPidTask, PndMasterDigiTask, PndMasterRecoIdealTask, and PndMasterSimTask.
Definition at line 66 of file PndMasterTask.cxx.
References fBranchTasks, and fFixedPersistency.
Referenced by PndMasterRunAna::AddDigiOnlyTasks(), and PndMasterRunAna::AddRecoTasks().
void PndMasterTask::SetVerbose | ( | Int_t | iVerbose = 1 | ) |
Set the Verbosity to all the tasks.
iVerbose | Verbosity level: 0 no messages, the higher more messages |
Set the Verbosity of all the tasks at the same number
Definition at line 43 of file PndMasterTask.cxx.
References next.
Referenced by PndMasterDigiOnlyTask::PndMasterDigiOnlyTask(), PndMasterDigiTask::PndMasterDigiTask(), PndMasterLocalRecoTask::PndMasterLocalRecoTask(), PndMasterMultiPidTask::PndMasterMultiPidTask(), PndMasterPidTask::PndMasterPidTask(), PndMasterRecoIdealTask::PndMasterRecoIdealTask(), PndMasterRecoTask::PndMasterRecoTask(), PndMasterSimTask::PndMasterSimTask(), and SetVerbose().
void PndMasterTask::SetVerbose | ( | Int_t | nTask, |
Int_t | iVerbose | ||
) |
Set the Verbosity to a single task.
This function has to be used when you want to change the verbosity to a single task
nTask | Index of the task you want to modify. Instead of the integer you can use the enum k + task name (i.e. kMvdDigiTask, hSttHitProducerRealFast |
iVerbose | Verbosity. 0 -> no messages; the higher -> more messages |
Set the Verbosity of a single task
Definition at line 57 of file PndMasterTask.cxx.
References SetVerbose().
|
protected |
Definition at line 80 of file PndMasterTask.h.
Referenced by PndMasterDigiOnlyTask::PndMasterDigiOnlyTask(), PndMasterRecoTask::PndMasterRecoTask(), and SetPersistency().
|
protected |
Definition at line 82 of file PndMasterTask.h.
Referenced by PndMasterDigiOnlyTask::PndMasterDigiOnlyTask(), PndMasterRecoTask::PndMasterRecoTask(), and SetPersistency().
|
protected |
Definition at line 81 of file PndMasterTask.h.