PandaRoot
BSEmcMCHitProducerTask Class Reference

Task to manage all Processes required to transfrom BSEmcMCPoints into BSEmcMCHits. More...

#include <BSEmcMCHitProducerTask.h>

Inheritance diagram for BSEmcMCHitProducerTask:
PndProcessTask< BSEmcMCHitProductionData > PndPersistencyTask PndProcessHandler< BSEmcMCHitProductionData >

Public Member Functions

 BSEmcMCHitProducerTask (const std::string &t_detectorName="Barrel", Bool_t t_storeHits=kTRUE)
 
virtual ~BSEmcMCHitProducerTask ()
 
void SetPointBranchName (const std::string &t_hitbranchname)
 
void SetHitBranchName (const std::string &t_hitbranchname)
 
- Public Member Functions inherited from PndProcessTask< BSEmcMCHitProductionData >
 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...
 
- 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< BSEmcMCHitProductionData >
 PndProcessHandler (const std::string &t_detectorname="")
 
virtual ~PndProcessHandler ()
 
void AddProcess (PndProcess< BSEmcMCHitProductionData > *)
 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< BSEmcMCHitProductionData > *> & GetProcesses ()
 
const BSEmcMCHitProductionDataGetCopyOfData () const
 
BSEmcMCHitProductionDataGetPtrToData ()
 
PndParameterRegisterGetParameterRegister ()
 
const PndParameterRegisterGetParameterRegister () const
 
const std::string & GetDetectorName () const
 

Protected Member Functions

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 ()
 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...
 
- Protected Member Functions inherited from PndProcessTask< BSEmcMCHitProductionData >
void SetParContainers () final
 Fetch the FairRuntimeDb and populate the PndParameterRegister with all requested parameter. Has to be called before Init() More...
 
- Protected Member Functions inherited from PndProcessHandler< BSEmcMCHitProductionData >
virtual void SetupProcess (PndProcess< BSEmcMCHitProductionData > *t_process)
 

Additional Inherited Members

- Protected Attributes inherited from PndProcessHandler< BSEmcMCHitProductionData >
std::vector< PndProcess< BSEmcMCHitProductionData > *> fProcesses
 
std::unique_ptr< BSEmcMCHitProductionDatafData
 
std::unique_ptr< PndParameterRegisterfParameterRegister
 
std::string fDetectorName
 

Detailed Description

Task to manage all Processes required to transfrom BSEmcMCPoints into BSEmcMCHits.

Author
Ben Salisbury salis.nosp@m.bury.nosp@m.@hisk.nosp@m.p.un.nosp@m.i-bon.nosp@m.n.de, HISKP Bonn
Date
2021-01

Definition at line 21 of file BSEmcMCHitProducerTask.h.

Constructor & Destructor Documentation

◆ BSEmcMCHitProducerTask()

BSEmcMCHitProducerTask::BSEmcMCHitProducerTask ( const std::string &  t_detectorName = "Barrel",
Bool_t  t_storeHits = kTRUE 
)

◆ ~BSEmcMCHitProducerTask()

virtual BSEmcMCHitProducerTask::~BSEmcMCHitProducerTask ( )
virtual

Member Function Documentation

◆ PostProcessing()

virtual void BSEmcMCHitProducerTask::PostProcessing ( Option_t *  )
protectedvirtual

Do some task post clean up after PndProcesses are run once per event.

Reimplemented from PndProcessTask< BSEmcMCHitProductionData >.

Referenced by SetHitBranchName().

◆ PreProcessing()

virtual void BSEmcMCHitProducerTask::PreProcessing ( Option_t *  )
protectedvirtual

Do some task preparation before PndProcesses are run once per event.

Reimplemented from PndProcessTask< BSEmcMCHitProductionData >.

Referenced by SetHitBranchName().

◆ SetHitBranchName()

void BSEmcMCHitProducerTask::SetHitBranchName ( const std::string &  t_hitbranchname)
inline

Definition at line 27 of file BSEmcMCHitProducerTask.h.

References PostProcessing(), PreProcessing(), and SetupDataArrays().

27 { fHitBranchname = t_hitbranchname; }

◆ SetPointBranchName()

void BSEmcMCHitProducerTask::SetPointBranchName ( const std::string &  t_hitbranchname)
inline

Definition at line 26 of file BSEmcMCHitProducerTask.h.

26 { fPointBranchname = t_hitbranchname; }

◆ SetupDataArrays()

virtual void BSEmcMCHitProducerTask::SetupDataArrays ( )
protectedvirtual

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.

Implements PndProcessTask< BSEmcMCHitProductionData >.

Referenced by SetHitBranchName().


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