PandaRoot
PndMasterTask Class Reference

Abstract class for all the master task list classes. More...

#include <PndMasterTask.h>

Inheritance diagram for PndMasterTask:
PndPersistencyTask PndMasterDigiOnlyTask PndMasterDigiTask PndMasterLocalRecoTask PndMasterMultiPidTask PndMasterRecoIdealTask PndMasterRecoTask PndMasterSimTask

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...
 
- Public Member Functions inherited from PndPersistencyTask
 PndPersistencyTask ()
 
 PndPersistencyTask (const char *name, Int_t iVerbose=1)
 
virtual ~PndPersistencyTask ()
 
void SetPersistency (Bool_t val=kTRUE)
 
Bool_t GetPersistency ()
 

Protected Attributes

std::vector< PndPersistencyTask * > fBranchTasks
 
std::vector< FairTask * > fStandardTasks
 
std::map< PndPersistencyTask *, bool > fFixedPersistency
 

Detailed Description

Abstract class for all the master task list classes.

Master task Class

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.

Author
Stefano Spataro spata.nosp@m.ro@t.nosp@m.o.inf.nosp@m.n.it, Torino University
Version
1.0
Date
Feb 1, 2016

Definition at line 21 of file PndMasterTask.h.

Constructor & Destructor Documentation

◆ PndMasterTask() [1/2]

PndMasterTask::PndMasterTask ( )

Default constructor.

◆ PndMasterTask() [2/2]

PndMasterTask::PndMasterTask ( const char *  name)

Proper Constructor.

◆ ~PndMasterTask()

virtual PndMasterTask::~PndMasterTask ( )
virtual

Destructor.

Member Function Documentation

◆ GetTask()

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.

Parameters
nTaskIndex of the task you want to modify. Instead of the integer you can use the enum "k" + task name (i.e. kMvdDigiTask, kSttHitProducerRealFast, etc...)
Returns
A pointer to the corresponding task

◆ PrintTaskList()

void PndMasterTask::PrintTaskList ( )

It prints the list of tasks.

◆ SetPersistency()

virtual void PndMasterTask::SetPersistency ( Bool_t  pers = kTRUE)
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.

Parameters
fPersistencyPersistency level: 0 no TCA, 1 all TCA

Reimplemented in PndMasterLocalRecoTask, PndMasterMultiPidTask, PndMasterDigiTask, and PndMasterSimTask.

◆ SetVerbose() [1/2]

void PndMasterTask::SetVerbose ( Int_t  iVerbose = 1)

Set the Verbosity to all the tasks.

Parameters
iVerboseVerbosity level: 0 no messages, the higher more messages

◆ SetVerbose() [2/2]

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

Parameters
nTaskIndex of the task you want to modify. Instead of the integer you can use the enum k + task name (i.e. kMvdDigiTask, hSttHitProducerRealFast
iVerboseVerbosity. 0 -> no messages; the higher -> more messages

Member Data Documentation

◆ fBranchTasks

std::vector<PndPersistencyTask *> PndMasterTask::fBranchTasks
protected

Definition at line 77 of file PndMasterTask.h.

◆ fFixedPersistency

std::map<PndPersistencyTask *, bool> PndMasterTask::fFixedPersistency
protected

Definition at line 79 of file PndMasterTask.h.

◆ fStandardTasks

std::vector<FairTask *> PndMasterTask::fStandardTasks
protected

Definition at line 78 of file PndMasterTask.h.


The documentation for this class was generated from the following file: