REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestDetectorHits3DReconstructionProcess.h
1
11
12#ifndef RestCore_TRestDetectorHits3DReconstructionProcess
13#define RestCore_TRestDetectorHits3DReconstructionProcess
14
15#include <TRestDetectorHitsEvent.h>
16
17#include "TRestEventProcess.h"
18
20 private:
21 // input/output event with concrete type
22 TRestDetectorHitsEvent* fInputHitsEvent;
23 TRestDetectorHitsEvent* fOutputHitsEvent;
24
25 // unsaved parameters, temporary data members
26 TH2D* htemp = nullptr;
27 TRestEventProcess* fCompareProc = nullptr;
28
29 // process parameters
30 Double_t fZRange;
31 bool fDraw;
32 double fDrawThres;
33 bool fDoEnergyScaling;
34
35 protected:
36 void InitFromConfigFile() override;
37 void Initialize() override;
38
39 public:
40 RESTValue GetInputEvent() const override { return fInputHitsEvent; }
41 RESTValue GetOutputEvent() const override { return fOutputHitsEvent; }
42
43 void InitProcess() override;
44 TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;
45 void EndProcess() override;
46
47 double LogAmbiguity(const int& n, const int& m) { return log(Ambiguity(n, m)); }
48 int Ambiguity(const int& n, const int& m);
49 int Factorial(const int& n);
50
51 // Process Information Printer
52 void PrintMetadata() override;
53 // Constructor
55 // Destructor
57
59};
60#endif
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void EndProcess() override
To be executed at the end of the run (outside event loop)
A base class for any REST event process.
A base class for any REST event.
Definition: TRestEvent.h:38