23 #ifndef RestCore_TRestDetectorSignalToHitsProcess
24 #define RestCore_TRestDetectorSignalToHitsProcess
26 #include <TRestEventProcess.h>
28 #include "TRestDetectorGas.h"
29 #include "TRestDetectorHitsEvent.h"
30 #include "TRestDetectorReadout.h"
31 #include "TRestDetectorSignalEvent.h"
66 Double_t fIntWindow = 5;
69 Double_t fThreshold = 100.;
78 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
89 RESTMetadata <<
"Threshold : " << fThreshold <<
" ADC" <<
RESTendl;
90 RESTMetadata <<
"Integral window : " << fIntWindow <<
" us" <<
RESTendl;
A metadata class to generate/store a readout description.
A process to transform a daq channel and physical time to spatial coordinates.
Double_t fDriftVelocity
The drift velocity in standard REST units (mm/us).
void InitProcess() override
Process initialization. Observable names are interpreted and auxiliar observable members,...
TRestDetectorHitsEvent * fHitsEvent
A pointer to the specific TRestDetectorHitsEvent output.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
Double_t fGasPressure
The gas pressure in atm. Only relevant if TRestDetectorGas is used.
TRestDetectorGas * fGas
A pointer to the detector gas definition accessible to TRestRun.
~TRestDetectorSignalToHitsProcess()
Default destructor.
TRestDetectorSignalToHitsProcess()
Default constructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
Double_t fElectricField
The electric field in standard REST units (V/mm). Only relevant if TRestDetectorGas is used.
TString fMethod
The method used to transform the signal points to hits.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
TRestDetectorSignalEvent * fSignalEvent
A pointer to the specific TRestDetectorHitsEvent input.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
const char * GetProcessName() const override
Returns the name of this process.
TRestDetectorReadout * fReadout
A pointer to the detector readout definition accesible to TRestRun.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.