8 #include "TStopwatch.h" 11 #include "FairLogger.h" 23 template <
class DataStruct>
49 virtual void SetData(DataStruct *t_data) = 0;
virtual void TearDown()
Last actions at the end of the run.
std::string fProcessName
Name of current PndProcess (for debugging)
virtual void Process()=0
The actual data transformation (digitizing, clustering, etc.) should be defined here.
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 b...
ProcInfo_t fProcInfo
Helper to access cpu process Memory Info.
TStopwatch fTimer
Timer to monitor Process() time.
virtual void PostProcess()
Immediately after calling Process() PostProcess() is called for cleanup of internal process data...
PndProcess(const std::string &t_processname)
Double_t fTotalTime
Time taken by this Process' Process()
std::string fDetectorName
Set Detector name this PndProcess transforms data for. Required for example by EMC Processes to fetch...
const std::vector< std::string > & GetListOfRequiredParameters() const
Get the List Of Required Parameters.
std::vector< std::string > fParameterList
Parameter names required by this PndProcess. Needs to be populated in derived class.
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
virtual void SetupParameters(const PndParameterRegister *t_parameter)=0
Fetch all parameters from the PndParameterRegister.
virtual void SetData(DataStruct *t_data)=0
Pass the data container ptrs to the process, and store pointers in class members. ...
virtual void PreProcess()
PreProcess() is called before the actual Process() call in each event.