12 #ifndef RestCore_TRestTrackReductionProcess
13 #define RestCore_TRestTrackReductionProcess
15 #include <TRestTrackEvent.h>
17 #include "TRestEventProcess.h"
29 Double_t fStartingDistance = 0.5;
30 Double_t fMinimumDistance = 3;
31 Double_t fDistanceStepFactor = 1.5;
32 Double_t fMaxNodes = 30;
34 Bool_t fKmeans =
false;
48 RESTMetadata <<
" Starting distance : " << fStartingDistance <<
RESTendl;
49 RESTMetadata <<
" Minimum distance : " << fMinimumDistance <<
RESTendl;
50 RESTMetadata <<
" Distance step factor : " << fDistanceStepFactor <<
RESTendl;
51 RESTMetadata <<
" Maximum number of nodes : " << fMaxNodes <<
RESTendl;
52 RESTMetadata <<
" Perform kMeans clustering : " << fKmeans <<
RESTendl;
53 if (fKmeans) RESTMetadata <<
" Maximum iterations : " << fMaxIt <<
RESTendl;
58 const char* GetProcessName()
const override {
return "trackReduction"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
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 EndProcess() override
To be executed at the end of the run (outside event loop)
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)