PandaRoot
TestPndProcess Class Reference

#include <ProcessTaskTestClasses.h>

Inheritance diagram for TestPndProcess:
PndProcess< Data >

Public Member Functions

 TestPndProcess ()
 
 ~TestPndProcess ()
 
virtual void SetData (Data *)
 Pass the data container ptrs to the process, and store pointers in class members. More...
 
virtual void SetupParameters (const PndParameterRegister *)
 Fetch all parameters from the PndParameterRegister. More...
 
virtual void PreProcess ()
 PreProcess() is called before the actual Process() call in each event. More...
 
virtual void Process ()
 The actual data transformation (digitizing, clustering, etc.) should be defined here. More...
 
virtual void PostProcess ()
 Immediately after calling Process() PostProcess() is called for cleanup of internal process data, or if not needed, to end the time and memory increase measurement started by PreProcess() More...
 
virtual void TearDown ()
 Last actions at the end of the run. More...
 
TString GetDetectorName () const
 
- Public Member Functions inherited from PndProcess< Data >
 PndProcess ()
 
 PndProcess (const std::string &t_processname)
 
virtual ~PndProcess ()
 
virtual void SetDetectorName (const std::string &t_detectorname)
 Set the Detector name. Important, as most EmcParameter need to know for which detector they need to be fetched (each Emc Subdetector has its own set of parameters) More...
 
const std::vector< std::string > & GetListOfRequiredParameters () const
 Get the List Of Required Parameters. More...
 

Public Attributes

Bool_t fDataSet {kFALSE}
 
Bool_t fParametersSet {kFALSE}
 
Bool_t fPreProcessSet {kFALSE}
 
Bool_t fProcessSet {kFALSE}
 
Bool_t fPostProcessSet {kFALSE}
 
Bool_t fTearDownSet {kFALSE}
 

Additional Inherited Members

- Protected Attributes inherited from PndProcess< Data >
std::vector< std::string > fParameterList
 Parameter names required by this PndProcess. Needs to be populated in derived class. More...
 
std::string fDetectorName
 Set Detector name this PndProcess transforms data for. Required for example by EMC Processes to fetch right parameters. More...
 
std::string fProcessName
 Name of current PndProcess (for debugging) More...
 
TStopwatch fTimer
 Timer to monitor Process() time. More...
 
Double_t fTotalTime
 Time taken by this Process' Process() More...
 
ProcInfo_t fProcInfo
 Helper to access cpu process Memory Info. More...
 
Long_t fLastMemSize
 

Detailed Description

Definition at line 26 of file ProcessTaskTestClasses.h.

Constructor & Destructor Documentation

◆ TestPndProcess()

TestPndProcess::TestPndProcess ( )
inline

Definition at line 28 of file ProcessTaskTestClasses.h.

28 {};

◆ ~TestPndProcess()

TestPndProcess::~TestPndProcess ( )
inline

Definition at line 29 of file ProcessTaskTestClasses.h.

29 {};

Member Function Documentation

◆ GetDetectorName()

TString TestPndProcess::GetDetectorName ( ) const
inline

Definition at line 36 of file ProcessTaskTestClasses.h.

36 { return this->fDetectorName; }
std::string fDetectorName
Set Detector name this PndProcess transforms data for. Required for example by EMC Processes to fetch...
Definition: PndProcess.h:99

◆ PostProcess()

virtual void TestPndProcess::PostProcess ( )
inlinevirtual

Immediately after calling Process() PostProcess() is called for cleanup of internal process data, or if not needed, to end the time and memory increase measurement started by PreProcess()

Reimplemented from PndProcess< Data >.

Definition at line 34 of file ProcessTaskTestClasses.h.

34 { fPostProcessSet = kTRUE; }

◆ PreProcess()

virtual void TestPndProcess::PreProcess ( )
inlinevirtual

PreProcess() is called before the actual Process() call in each event.

Intended for preprocess setup calls, e.g. for reseting internal process data, or, if not needed, to monitor processing time and memory increase

Reimplemented from PndProcess< Data >.

Definition at line 32 of file ProcessTaskTestClasses.h.

32 { fPreProcessSet = kTRUE; }

◆ Process()

virtual void TestPndProcess::Process ( )
inlinevirtual

The actual data transformation (digitizing, clustering, etc.) should be defined here.

Implements PndProcess< Data >.

Definition at line 33 of file ProcessTaskTestClasses.h.

33 { fProcessSet = kTRUE; }

◆ SetData()

virtual void TestPndProcess::SetData ( Data t_data)
inlinevirtual

Pass the data container ptrs to the process, and store pointers in class members.

Parameters
t_data

Implements PndProcess< Data >.

Definition at line 30 of file ProcessTaskTestClasses.h.

30 { fDataSet = kTRUE; }

◆ SetupParameters()

virtual void TestPndProcess::SetupParameters ( const PndParameterRegister t_parameter)
inlinevirtual

Fetch all parameters from the PndParameterRegister.

Parameters
t_parameter

Implements PndProcess< Data >.

Definition at line 31 of file ProcessTaskTestClasses.h.

31 { fParametersSet = kTRUE; }

◆ TearDown()

virtual void TestPndProcess::TearDown ( )
inlinevirtual

Last actions at the end of the run.

Reimplemented from PndProcess< Data >.

Definition at line 35 of file ProcessTaskTestClasses.h.

35 { fTearDownSet = kTRUE; }

Member Data Documentation

◆ fDataSet

Bool_t TestPndProcess::fDataSet {kFALSE}

Definition at line 37 of file ProcessTaskTestClasses.h.

◆ fParametersSet

Bool_t TestPndProcess::fParametersSet {kFALSE}

Definition at line 38 of file ProcessTaskTestClasses.h.

◆ fPostProcessSet

Bool_t TestPndProcess::fPostProcessSet {kFALSE}

Definition at line 41 of file ProcessTaskTestClasses.h.

◆ fPreProcessSet

Bool_t TestPndProcess::fPreProcessSet {kFALSE}

Definition at line 39 of file ProcessTaskTestClasses.h.

◆ fProcessSet

Bool_t TestPndProcess::fProcessSet {kFALSE}

Definition at line 40 of file ProcessTaskTestClasses.h.

◆ fTearDownSet

Bool_t TestPndProcess::fTearDownSet {kFALSE}

Definition at line 42 of file ProcessTaskTestClasses.h.


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