23#ifndef RestCore_TRestDetectorHitsSmearingProcess
24#define RestCore_TRestDetectorHitsSmearingProcess
27#include <TRestEventProcess.h>
29#include "TRestDetectorHitsEvent.h"
30#include "TRestDetectorReadout.h"
47 std::string fChannelType =
"tpc";
67 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
72 RESTMetadata <<
"Channel type: " << fChannelType <<
RESTendl;
80 inline TRestMetadata* GetProcessMetadata()
const {
return nullptr; }
82 const char* GetProcessName()
const override {
return "smearingProcess"; }
A process to include detector energy resolution in a TRestDetectorHitsEvent.
void Initialize() override
Function to initialize input/output event members and define the section name.
Double_t fEnergyRef
Reference energy for the FWHM.
Double_t fResolutionAtERef
FWHM at Energy of reference.
Double_t GetEnergyReference() const
Returns the reference energy where the FWHM is defined.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
TRestDetectorHitsEvent * fOutputEvent
A pointer to the process output event.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
TRestDetectorHitsEvent * fInputEvent
A pointer to the process input event.
~TRestDetectorHitsSmearingProcess()
Default destructor.
Double_t GetResolutionReference() const
Returns the energy resolution in FWHM for the reference energy.
TRestDetectorHitsSmearingProcess()
Default constructor.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
TRandom3 * fRandom
A pointer to the random generator initializes with fSeed.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
ULong_t fSeed
The seed to be used for the random generator.
A metadata class to generate/store a readout description.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.