PandaRoot
TestPndProcessTask Class Reference

#include <ProcessTaskTestClasses.h>

Inheritance diagram for TestPndProcessTask:
PndProcessTask PndPersistencyTask PndProcessHandler

Public Member Functions

 TestPndProcessTask (const std::string &t_detectorName)
 
 ~TestPndProcessTask ()
 
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...
 
- Public Member Functions inherited from PndProcessTask
 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 Finish ()
 End the task, call TearDown for all PndProcesses. 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 ()
 
- Public Member Functions inherited from PndProcessHandler
 PndProcessHandler (const std::string &t_detectorname="")
 
virtual ~PndProcessHandler ()
 
void AddProcess (PndProcess *)
 Add a PndProcess of appropriate type to the list of PndProcesses to be managed. More...
 
void SetupProcesses ()
 Call for each PndProcess the SetupParameter. More...
 
const std::vector< PndProcess * > & GetProcesses ()
 
PndParameterRegisterGetParameterRegister ()
 
const PndParameterRegisterGetParameterRegister () const
 
const std::string & GetDetectorName () const
 
virtual void GetRequiredDataContainerInfo ()
 
virtual void PassDataContainersToProcesses ()
 

Additional Inherited Members

- Protected Member Functions inherited from PndProcessTask
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...
 
template<class T >
Bool_t DispatchRequest (const PndContainerRegister::PndContainerType_t &t_container, PndContainerRegister *t_register, const TString &t_defaultName)
 
TClonesArray * GetInputArray (const TString &t_branchname, const TString &t_classtype)
 
TClonesArray * GetOutputArray (const TString &t_branchname, const TString &t_classtype, const TString &t_foldername, Bool_t t_persistenxy)
 
template<class T >
Bool_t HandledRequest (const PndContainerRegister::PndContainerType_t &t_container, PndContainerRegister *t_register, const TString &t_defaultName)
 
- Protected Member Functions inherited from PndProcessHandler
virtual void SetupProcess (PndProcess *t_process)
 
- Protected Attributes inherited from PndProcessHandler
std::vector< PndProcess * > fProcesses {}
 
std::unique_ptr< PndParameterRegisterfParameterRegister {new PndParameterRegister}
 
std::unique_ptr< PndContainerRegisterfContainerRegister {new PndContainerRegister}
 
std::string fDetectorName {""}
 

Detailed Description

Definition at line 24 of file ProcessTaskTestClasses.h.

Constructor & Destructor Documentation

◆ TestPndProcessTask()

TestPndProcessTask::TestPndProcessTask ( const std::string &  t_detectorName)
inline

Definition at line 27 of file ProcessTaskTestClasses.h.

27 : PndProcessTask(t_detectorName) {}
PndProcessTask(const std::string &t_detectorName)

◆ ~TestPndProcessTask()

TestPndProcessTask::~TestPndProcessTask ( )
inline

Definition at line 28 of file ProcessTaskTestClasses.h.

28 {};

Member Function Documentation

◆ Exec()

virtual void TestPndProcessTask::Exec ( Option_t *  t_opt = nullptr)
inlinevirtual

Prepare Task for processing of PndProcess (e.g. reset data arrays), process the PndProcesses and do cleanup during the PostProcessing.

Reimplemented from PndProcessTask.

Definition at line 29 of file ProcessTaskTestClasses.h.

References PndProcessHandler::fProcesses, PndProcessTask::PostProcessing(), and PndProcessTask::PreProcessing().

30  {
31  PreProcessing(t_opt);
32  for (PndProcess *process : this->fProcesses) {
33  process->PreProcess();
34  process->Process();
35  process->PostProcess();
36  }
37  PostProcessing(t_opt);
38  }
Base Process class.
Definition: PndProcess.h:36
virtual void PreProcessing(Option_t *)
Do some task preparation before PndProcesses are run once per event.
virtual void PostProcessing(Option_t *)
Do some task post clean up after PndProcesses are run once per event.
std::vector< PndProcess * > fProcesses

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