REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestDetectorHitsNormalizationProcess.h
1
15
16#ifndef RestCore_TRestDetectorHitsNormalizationProcess
17#define RestCore_TRestDetectorHitsNormalizationProcess
18
19#include <TRestDetectorHitsEvent.h>
20
21#include "TRestEventProcess.h"
22
24 private:
25 TRestDetectorHitsEvent* fHitsInputEvent;
26 TRestDetectorHitsEvent* fHitsOutputEvent;
27
28 void InitFromConfigFile() override;
29 void Initialize() override;
30 void LoadDefaultConfig();
31
32 protected:
33 // add here the members of your event process
34
35 Double_t fFactor;
36
37 public:
38 RESTValue GetInputEvent() const override { return fHitsInputEvent; }
39 RESTValue GetOutputEvent() const override { return fHitsOutputEvent; }
40
41 void InitProcess() override;
42 TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;
43 void EndProcess() override;
44
45 void LoadConfig(const std::string& configFilename, const std::string& name = "");
46
47 void PrintMetadata() override {
49
50 RESTMetadata << " Renormalization factor : " << fFactor << RESTendl;
51
52 EndPrintProcess();
53 }
54
55 inline TRestMetadata* GetProcessMetadata() const { return nullptr; }
56
57 const char* GetProcessName() const override { return "hitsNormalizationProcess"; }
58
60 TRestDetectorHitsNormalizationProcess(const char* configFilename);
61
63
64 ClassDefOverride(TRestDetectorHitsNormalizationProcess, 1);
65};
66#endif
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
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)
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
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 Initialize() override
Making default settings.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
Definition: TRestEvent.h:38
A base class for any REST metadata class.
Definition: TRestMetadata.h:74
endl_t RESTendl
Termination flag object for TRestStringOutput.