REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestDetectorFiducializationProcess.h
1 
12 #ifndef RestCore_TRestDetectorFiducializationProcess
13 #define RestCore_TRestDetectorFiducializationProcess
14 
15 #include <TRestDetectorHitsEvent.h>
16 #include <TRestDetectorReadout.h>
17 
18 #include "TRestEventProcess.h"
19 
21  private:
22  TRestDetectorHitsEvent* fInputHitsEvent;
23  TRestDetectorHitsEvent* fOutputHitsEvent;
24 
25  TRestDetectorReadout* fReadout;
26 
27  void InitFromConfigFile() override;
28 
29  void Initialize() override;
30 
31  void LoadDefaultConfig();
32 
33  protected:
34  public:
35  RESTValue GetInputEvent() const override { return fInputHitsEvent; }
36  RESTValue GetOutputEvent() const override { return fOutputHitsEvent; }
37 
38  void InitProcess() override;
39  TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;
40  void EndProcess() override;
41 
42  void LoadConfig(const std::string& configFilename, const std::string& name = "");
43 
44  void PrintMetadata() override {
46 
47  EndPrintProcess();
48  }
49 
50  const char* GetProcessName() const override { return "fiducialization"; }
51 
53  TRestDetectorFiducializationProcess(const char* configFilename);
54 
56 
57  ClassDefOverride(TRestDetectorFiducializationProcess, 1);
58 };
59 #endif
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
void Initialize() override
Making default settings.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void EndProcess() override
To be executed at the end of the run (outside event loop)
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
A metadata class to generate/store a readout description.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
Definition: TRestEvent.h:38