PandaRoot
BSEmcPlotTask Class Reference

Task to handle PlotProcesses. More...

#include <BSEmcPlotTask.h>

Inheritance diagram for BSEmcPlotTask:
PndProcessTask< BSEmcPlotData > PndPersistencyTask PndProcessHandler< BSEmcPlotData >

Public Member Functions

 BSEmcPlotTask (const std::string &t_detectorname, BSEmcHistogrammer *t_histogrammer)
 
virtual ~BSEmcPlotTask ()
 
void SetMCPointBranchName (const std::string &t_branchname)
 
void SetMCHitBranchName (const std::string &t_branchname)
 
void SetWaveformBranchName (const std::string &t_branchname)
 
void SetDigiBranchName (const std::string &t_branchname)
 
void SetPreclusterBranchName (const std::string &t_branchname)
 
void SetClusterBranchName (const std::string &t_branchname)
 
void SetSubClusterBranchName (const std::string &t_branchname)
 
void SetRecoHitBranchName (const std::string &t_branchname)
 
- Public Member Functions inherited from PndProcessTask< BSEmcPlotData >
 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< BSEmcPlotData >
 PndProcessHandler (const std::string &t_detectorname="")
 
virtual ~PndProcessHandler ()
 
void AddProcess (PndProcess< BSEmcPlotData > *)
 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< BSEmcPlotData > *> & GetProcesses ()
 
const BSEmcPlotDataGetCopyOfData () const
 
BSEmcPlotDataGetPtrToData ()
 
PndParameterRegisterGetParameterRegister ()
 
const PndParameterRegisterGetParameterRegister () const
 
const std::string & GetDetectorName () const
 

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Task to handle PlotProcesses.

Fetches a set of EmcDetector Data Containers and passes their addresses on to the handled BSEmcPlotProcesses

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-02

Definition at line 34 of file BSEmcPlotTask.h.

Constructor & Destructor Documentation

◆ BSEmcPlotTask()

BSEmcPlotTask::BSEmcPlotTask ( const std::string &  t_detectorname,
BSEmcHistogrammer t_histogrammer 
)

◆ ~BSEmcPlotTask()

virtual BSEmcPlotTask::~BSEmcPlotTask ( )
virtual

Member Function Documentation

◆ ExecuteTasks()

virtual void BSEmcPlotTask::ExecuteTasks ( Option_t *  t_option)
protectedvirtual

Referenced by SetRecoHitBranchName().

◆ PostProcessing()

virtual void BSEmcPlotTask::PostProcessing ( Option_t *  )
protectedvirtual

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

Reimplemented from PndProcessTask< BSEmcPlotData >.

Referenced by SetRecoHitBranchName().

◆ PreProcessing()

virtual void BSEmcPlotTask::PreProcessing ( Option_t *  )
protectedvirtual

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

Reimplemented from PndProcessTask< BSEmcPlotData >.

Referenced by SetRecoHitBranchName().

◆ SetClusterBranchName()

void BSEmcPlotTask::SetClusterBranchName ( const std::string &  t_branchname)
inline

Definition at line 46 of file BSEmcPlotTask.h.

46 { fClusterBranchname = t_branchname; }

◆ SetDigiBranchName()

void BSEmcPlotTask::SetDigiBranchName ( const std::string &  t_branchname)
inline

Definition at line 44 of file BSEmcPlotTask.h.

44 { fDigiBranchname = t_branchname; }

◆ SetMCHitBranchName()

void BSEmcPlotTask::SetMCHitBranchName ( const std::string &  t_branchname)
inline

Definition at line 42 of file BSEmcPlotTask.h.

42 { fMCHitBranchname = t_branchname; }

◆ SetMCPointBranchName()

void BSEmcPlotTask::SetMCPointBranchName ( const std::string &  t_branchname)
inline

Definition at line 41 of file BSEmcPlotTask.h.

41 { fMCPointBranchname = t_branchname; }

◆ SetPreclusterBranchName()

void BSEmcPlotTask::SetPreclusterBranchName ( const std::string &  t_branchname)
inline

Definition at line 45 of file BSEmcPlotTask.h.

45 { fPreclusterBranchname = t_branchname; }

◆ SetRecoHitBranchName()

void BSEmcPlotTask::SetRecoHitBranchName ( const std::string &  t_branchname)
inline

Definition at line 48 of file BSEmcPlotTask.h.

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

48 { fRecoHitBranchname = t_branchname; }

◆ SetSubClusterBranchName()

void BSEmcPlotTask::SetSubClusterBranchName ( const std::string &  t_branchname)
inline

Definition at line 47 of file BSEmcPlotTask.h.

47 { fSubClusterBranchname = t_branchname; }

◆ SetupDataArrays()

virtual void BSEmcPlotTask::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< BSEmcPlotData >.

Referenced by SetRecoHitBranchName().

◆ SetupProcess()

virtual void BSEmcPlotTask::SetupProcess ( PndProcess< BSEmcPlotData > *  t_process)
protectedvirtual

Reimplemented from PndProcessHandler< BSEmcPlotData >.

Referenced by SetRecoHitBranchName().

◆ SetWaveformBranchName()

void BSEmcPlotTask::SetWaveformBranchName ( const std::string &  t_branchname)
inline

Definition at line 43 of file BSEmcPlotTask.h.

43 { fWaveformBranchname = t_branchname; }

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