12#ifndef RestCore_TRestTrackPathMinimizationProcess
13#define RestCore_TRestTrackPathMinimizationProcess
15#include <TRestEventProcess.h>
17#include "TRestTrackEvent.h"
18#include "trackMinimization.h"
30 Bool_t fWeightHits =
false;
32 TString fMinMethod =
"default";
33 Bool_t fCyclic =
false;
54 RESTMetadata <<
"Weight hits : enabled" <<
RESTendl;
56 RESTMetadata <<
"Weight hits : disabled" <<
RESTendl;
58 RESTMetadata <<
"Minimization method " << fMinMethod <<
RESTendl;
62 const char* GetProcessName()
const override {
return "trackPathMinimization"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void NearestNeighbour(TRestVolumeHits *hits, std::vector< int > &bestPath)
Return the index with the shortest path solving Travelling Salesman Problem (TSP) using nearest neigh...
void HeldKarp(TRestVolumeHits *hits, std::vector< int > &bestPath)
This function eturn the index with the shortest path Note that this method calls external tsp library...
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)
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
void Initialize() override
Making default settings.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void BruteForce(TRestVolumeHits *hits, std::vector< int > &bestPath)
This function return the index with the shortest path solving Travelling Salesman Problem (TSP) using...