52#include "TRestTrackViewerProcess.h"
54#include "TRestTrackLineAnalysisProcess.h"
76 fTrackEvent =
nullptr;
86 if (!hCanvas && fDrawHits)
108 if (!fDrawHits)
return fTrackEvent;
111 TPad* hPad = fTrackEvent->DrawHits();
112 if (fDrawOriginEnd) {
TVector2 fCanvasSize
Canvas size.
TCanvas * fCanvas
< Canvas for some viewer event
void CreateCanvas()
Create the canvas.
A base class for any REST event.
void GetOriginEnd(std::vector< TGraph * > &originGr, std::vector< TGraph * > &endGr, std::vector< TLegend * > &leg)
Retreive origin and end of the track and store in a TGraph and legend.
TPad * DrawEvent(const TString &option="")
Draw the event.
void DrawOriginEnd(TPad *pad, std::vector< TGraph * > &originGr, std::vector< TGraph * > &endGr, std::vector< TLegend * > &leg)
Draw origin and end of the track in a pad passed to the function Note that GetOriginEnd has to be iss...
A generic viewer REST process to visualize track events.
~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.