23 #ifndef RestCore_TRestTrackViewerProcess
24 #define RestCore_TRestTrackViewerProcess
29 #include "TRestEventProcess.h"
30 #include "TRestTrackEvent.h"
38 bool fDrawOriginEnd =
false;
39 bool fDrawHits =
true;
42 std::vector<TGraph*> originGr{
nullptr,
nullptr};
44 std::vector<TGraph*> endGr{
nullptr,
nullptr};
46 std::vector<TLegend*> legOrEnd{
nullptr,
nullptr};
48 TCanvas* hCanvas =
nullptr;
66 RESTMetadata <<
"Draw Origin End : " << fDrawOriginEnd <<
RESTendl;
71 const char* GetProcessName()
const override {
return "trackViewer"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
A generic viewer REST process to visualize track events.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
~TRestTrackViewerProcess()
Default destructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
void InitProcess() override
Process initialization. It creates the canvas available in TRestEventProcess.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void EndProcess() override
Function to include required actions after all events have been processed.
TRestTrackViewerProcess()
Default constructor.
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.