PandaRoot
ProcessTaskTestClasses.h
Go to the documentation of this file.
1 #ifndef PROCESSTASKTESTCLASSES_HH
2 #define PROCESSTASKTESTCLASSES_HH
3 #include <string>
4 
5 #include "TBuffer.h"
6 #include "TString.h"
7 
8 #include "PndParameterRegister.h"
9 #include "PndProcess.h"
10 #include "PndProcessTask.h"
11 
13 
14  public:
15  TestPndProcessTask(const std::string &t_detectorName) : PndProcessTask(t_detectorName) {}
17 
18  private:
19  virtual void SetupDataArrays(){};
20  ClassDef(TestPndProcessTask, 1);
21 };
22 
23 class TestPndProcess : public PndProcess {
24  public:
27  virtual void SetupParameters(const PndParameterRegister * /*t_parameter*/) { fParametersSet = kTRUE; }
28  virtual void RequestDataContainer(PndContainerRegister * /*t_register*/){};
29  virtual void GetDataContainer(PndContainerRegister * /*t_register*/) { fDataSet = kTRUE; }
30  virtual void PreProcess() { fPreProcessSet = kTRUE; }
31  virtual void Process() { fProcessSet = kTRUE; }
32  virtual void PostProcess() { fPostProcessSet = kTRUE; }
33  virtual void TearDown() { fTearDownSet = kTRUE; }
34  TString GetDetectorName() const { return this->fDetectorName; }
35  Bool_t fDataSet{kFALSE};
36  Bool_t fParametersSet{kFALSE};
37  Bool_t fPreProcessSet{kFALSE};
38  Bool_t fProcessSet{kFALSE};
39  Bool_t fPostProcessSet{kFALSE};
40  Bool_t fTearDownSet{kFALSE};
41 
42  private:
43  ClassDef(TestPndProcess, 1);
44 };
45 
46 #endif /*PROCESSTASKTESTCLASSES_HH*/
Base Process class.
Definition: PndProcess.h:24
Task based version of a PndProcessHandler.
virtual void TearDown()
Last actions at the end of the run.
virtual void RequestDataContainer(PndContainerRegister *)
Pass the container register to the process, and get the processes container requirements.
virtual void GetDataContainer(PndContainerRegister *)
Pass the container register to the process, and set the processes container requirements.
virtual void SetupParameters(const PndParameterRegister *)
Fetch all parameters from the PndParameterRegister.
virtual void PreProcess()
PreProcess() is called before the actual Process() call in each event.
TestPndProcessTask(const std::string &t_detectorName)
TString GetDetectorName() const
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.
std::string fDetectorName
virtual void PostProcess()
Immediately after calling Process() PostProcess() is called for cleanup of internal process data...