![]() |
PandaRoot
|
Task based version of a PndProcessHandler. More...
#include <PndProcessTask.h>
Public Member Functions | |
PndProcessTask (const std::string &t_detectorName) | |
virtual | ~PndProcessTask () |
virtual InitStatus | Init () final |
Initialise this task. This must be called AFTER SetParContainers(), otherwise we will try to pass the parameters to the PndProcesses, while the parameter were not fetched yet. More... | |
virtual void | Exec (Option_t *t_opt=nullptr) |
Prepare Task for processing of PndProcess (e.g. reset data arrays), process the PndProcesses and do cleanup during the PostProcessing. More... | |
virtual void | Finish () |
End the task, call TearDown for all PndProcesses. More... | |
![]() | |
PndPersistencyTask () | |
PndPersistencyTask (const char *name, Int_t iVerbose=1) | |
virtual | ~PndPersistencyTask () |
void | SetPersistency (Bool_t val=kTRUE) |
Bool_t | GetPersistency () |
![]() | |
PndProcessHandler (const std::string &t_detectorname="") | |
virtual | ~PndProcessHandler () |
void | AddProcess (PndProcess< DataStruct > *) |
Add a PndProcess of appropriate type to the list of PndProcesses to be managed. More... | |
void | CallProcesses () |
Call for all PndProcesses the PreProcess/Process/PosProcess functions. More... | |
void | SetupProcesses () |
Call for each PndProcess the SetData and SetupParameter. More... | |
const std::vector< PndProcess< DataStruct > * > & | GetProcesses () |
const DataStruct * | GetCopyOfData () const |
DataStruct * | GetPtrToData () |
PndParameterRegister * | GetParameterRegister () |
const PndParameterRegister * | GetParameterRegister () const |
const std::string & | GetDetectorName () const |
Protected Member Functions | |
void | SetParContainers () final |
Fetch the FairRuntimeDb and populate the PndParameterRegister with all requested parameter. Has to be called before Init() More... | |
virtual void | PreProcessing (Option_t *) |
Do some task preparation before PndProcesses are run once per event. More... | |
virtual void | PostProcessing (Option_t *) |
Do some task post clean up after PndProcesses are run once per event. More... | |
virtual void | SetupDataArrays ()=0 |
Define which data containers need to be fetched from the FairRootManager, pass the data container addresses into a simple struct to distribute the addresses to the PndProcesses so they can read and write the data to them. Needs to be implemented in the derived PndProcessTask, such as the BSEmcClusteringTask. More... | |
![]() | |
virtual void | SetupProcess (PndProcess< DataStruct > *t_process) |
Additional Inherited Members | |
![]() | |
std::vector< PndProcess< DataStruct > * > | fProcesses {} |
std::unique_ptr< DataStruct > | fData {new DataStruct} |
std::unique_ptr< PndParameterRegister > | fParameterRegister {new PndParameterRegister} |
std::string | fDetectorName {""} |
Task based version of a PndProcessHandler.
DataStruct |
Definition at line 28 of file PndProcessTask.h.
PndProcessTask< DataStruct >::PndProcessTask | ( | const std::string & | t_detectorName | ) |
Definition at line 83 of file PndProcessTask.h.
|
virtual |
Definition at line 88 of file PndProcessTask.h.
|
virtual |
Prepare Task for processing of PndProcess (e.g. reset data arrays), process the PndProcesses and do cleanup during the PostProcessing.
Definition at line 106 of file PndProcessTask.h.
|
virtual |
End the task, call TearDown for all PndProcesses.
Definition at line 114 of file PndProcessTask.h.
|
finalvirtual |
Initialise this task. This must be called AFTER SetParContainers(), otherwise we will try to pass the parameters to the PndProcesses, while the parameter were not fetched yet.
Definition at line 93 of file PndProcessTask.h.
|
protectedvirtual |
Do some task post clean up after PndProcesses are run once per event.
Reimplemented in BSEmcClusteringTask, BSEmcPlotTask, BSEmcDigitizerTask, and BSEmcMCHitProducerTask.
Definition at line 129 of file PndProcessTask.h.
Referenced by PndProcessTask< BSEmcPlotData >::Exec().
|
protectedvirtual |
Do some task preparation before PndProcesses are run once per event.
Reimplemented in BSEmcClusteringTask, BSEmcPlotTask, BSEmcDigitizerTask, and BSEmcMCHitProducerTask.
Definition at line 123 of file PndProcessTask.h.
Referenced by PndProcessTask< BSEmcPlotData >::Exec().
|
finalprotected |
Fetch the FairRuntimeDb and populate the PndParameterRegister with all requested parameter. Has to be called before Init()
Definition at line 135 of file PndProcessTask.h.
|
protectedpure virtual |
Define which data containers need to be fetched from the FairRootManager, pass the data container addresses into a simple struct to distribute the addresses to the PndProcesses so they can read and write the data to them. Needs to be implemented in the derived PndProcessTask, such as the BSEmcClusteringTask.
Implemented in BSEmcClusteringTask, BSEmcPlotTask, BSEmcDigitizerTask, and BSEmcMCHitProducerTask.
Referenced by PndProcessTask< BSEmcPlotData >::Init().