23#ifndef RestCore_TRestRawSignalRangeReductionProcess
24#define RestCore_TRestRawSignalRangeReductionProcess
26#include <TRestEventProcess.h>
28#include "TRestRawSignalEvent.h"
39 void LoadDefaultConfig();
41 UShort_t fResolutionInBits = 12;
42 TVector2 fDigitizationInputRange =
43 TVector2(std::numeric_limits<Short_t>::min(), std::numeric_limits<Short_t>::max());
45 TVector2 fDigitizationOutputRange;
50 inline Double_t GetResolutionInNumberOfBits()
const {
return fResolutionInBits; }
51 void SetResolutionInNumberOfBits(UShort_t nBits);
53 inline TVector2 GetDigitizationInputRange()
const {
return fDigitizationInputRange; }
54 void SetDigitizationInputRange(
const TVector2& range);
62 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
64 Double_t ConvertFromStartingRangeToTargetRange(Double_t value)
const;
65 Double_t ConvertFromTargetRangeToStartingRange(Double_t value)
const;
70 RESTMetadata <<
"Resolution in bits: " << fResolutionInBits <<
RESTendl;
71 RESTMetadata <<
"Digitization range: (" << fDigitizationInputRange.X() <<
", "
72 << fDigitizationInputRange.Y() <<
")" <<
RESTendl;
79 const char* GetProcessName()
const override {
return "rawSignalRangeReductionProcess"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
An event container for time rawdata signals with fixed length.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void Initialize() override
Making default settings.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)