REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestTrackPointLikeAnalysisProcess.h
1
11
12#ifndef RestCore_TRestTrackPointLikeAnalysisProcess
13#define RestCore_TRestTrackPointLikeAnalysisProcess
14
15#include <TRestTrackEvent.h>
16
17#include "TRestEventProcess.h"
18
20 private:
21#ifndef __CINT__
22 TRestTrackEvent* fTrackEvent;
23 // TODO We must get here a pointer to TRestDaqMetadata
24 // In order to convert the parameters to time using the sampling time
25#endif
26
27 void InitFromConfigFile() override;
28
29 void Initialize() override;
30
31 void LoadDefaultConfig();
32
33 protected:
34 // add here the members of your event process
35
36 public:
37 RESTValue GetInputEvent() const override { return fTrackEvent; }
38 RESTValue GetOutputEvent() const override { return fTrackEvent; }
39
40 void InitProcess() override;
41 TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;
42 void EndProcess() override;
43
44 void LoadConfig(std::string configFilename);
45
46 void PrintMetadata() override {
48
49 EndPrintProcess();
50 }
51
52 const char* GetProcessName() const override { return "pointLikeTrackAna"; }
53 // Double_t GetCalibFactor(); ///< Calibration factor is
54 // found.
55
56 // Constructor
58 TRestTrackPointLikeAnalysisProcess(const char* configFilename);
59 // Destructor
61
63 1); // Template for a REST "event process" class inherited from
64 // TRestEventProcess
65};
66#endif
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
Definition: TRestEvent.h:38
void EndProcess() override
To be executed at the end of the run (outside event loop)
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
RESTValue GetOutputEvent() const override
Get pointer to output 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.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void Initialize() override
Making default settings.
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.