12 #ifndef RestCore_TRestDetectorPositionMappingProcess
13 #define RestCore_TRestDetectorPositionMappingProcess
16 #include <TRestEventProcess.h>
18 #include "TRestDetectorGainMap.h"
19 #include "TRestDetectorGas.h"
20 #include "TRestDetectorHitsEvent.h"
21 #include "TRestDetectorReadout.h"
22 #include "TRestDetectorSignalEvent.h"
35 bool fApplyGainCorrection;
37 TVector2 fEnergyCutRange;
38 TVector2 fNHitsCutRange;
39 std::string fMappingSave;
46 TH2D* fAreaThrIntegralSum;
60 double GetCorrection2(
double x,
double y);
61 double GetCorrection3(
double x,
double y,
double z);
66 RESTMetadata <<
"the mode is:" <<
RESTendl;
67 RESTMetadata << (fApplyGainCorrection ?
"> " :
" ")
68 <<
"Apply position correction std::map for spectrum " <<
RESTendl;
69 RESTMetadata << (fCreateGainMap ?
"> " :
" ")
70 <<
"Create new correction std::map for each position" <<
RESTendl;
71 RESTMetadata <<
"output mapping file: " << fMappingSave <<
RESTendl;
72 RESTMetadata <<
"Energy cut for Threshold integral: " <<
RESTValue(fEnergyCutRange) <<
RESTendl;
73 RESTMetadata <<
"Energy cut for NGoodSignals: " <<
RESTValue(fNHitsCutRange) <<
RESTendl;
74 RESTMetadata <<
"Binning: " << fNBinsX <<
", " << fNBinsY <<
", " << fNBinsZ <<
RESTendl;
79 const char* GetProcessName()
const override {
return "readoutAnalysis"; }
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void Initialize() override
Making default settings.
void EndProcess() override
To be executed at the end of the run (outside event loop)
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
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.