REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestTrackDetachIsolatedNodesProcess.h
1
11
12#ifndef RestCore_TRestTrackDetachIsolatedNodesProcess
13#define RestCore_TRestTrackDetachIsolatedNodesProcess
14
15#include <TRestEventProcess.h>
16
17#include "TRestTrackEvent.h"
18
20 private:
21#ifndef __CINT__
22 TRestTrackEvent* fInputTrackEvent;
23 TRestTrackEvent* fOutputTrackEvent;
24#endif
25
26 void InitFromConfigFile() override;
27
28 void Initialize() override;
29
30 Double_t fThresholdDistance;
31 Double_t fConnectivityThreshold;
32
33 Double_t fTubeLengthReduction;
34 Double_t fTubeRadius;
35
36 protected:
37 public:
38 RESTValue GetInputEvent() const override { return fInputTrackEvent; }
39 RESTValue GetOutputEvent() const override { return fOutputTrackEvent; }
40
41 void InitProcess() override;
42 TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;
43 void EndProcess() override;
44 void LoadDefaultConfig();
45
46 void LoadConfig(const std::string& configFilename, const std::string& name = "");
47
48 void PrintMetadata() override {
50
51 EndPrintProcess();
52 }
53
54 const char* GetProcessName() const override { return "trackDetachIsolatedNode"; }
55
56 // Constructor
58 TRestTrackDetachIsolatedNodesProcess(const char* configFilename);
59 // Destructor
61
62 ClassDefOverride(TRestTrackDetachIsolatedNodesProcess, 1);
63};
64#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 PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
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)
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
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.
void EndProcess() override
To be executed at the end of the run (outside event loop)