23#ifndef RESTProc_TRestRawSignalRecoverSaturationProcess
24#define RESTProc_TRestRawSignalRecoverSaturationProcess
26#include "TRestEventProcess.h"
27#include "TRestRawSignalEvent.h"
67 const char* GetProcessName()
const override {
return "RawSignalRecoverSaturationProcess"; }
80 RESTMetadata <<
"ProcessAllSignals: " << strProcessAllSignals <<
RESTendl;
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.
This class recovers the saturated signals in a TRestRawSignalEvent using a fit to the AGET pulse.
TVector2 fBaseLineRange
Range of bins to calculate the baseline and fix that parameter in the fit.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
~TRestRawSignalRecoverSaturationProcess()
Default destructor.
TRestRawSignalRecoverSaturationProcess()
Default constructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
TRestRawSignalEvent * fAnaEvent
A pointer to the specific TRestRawSignalEvent input event.
void EndProcess() override
Function to include required actions after all events have been processed.
Size_t fMinSaturatedBins
Minimum number of saturated bins to consider a signal as saturated.
void InitProcess() override
Process initialization. Observable names can be re-interpreted here. Any action in the process requir...
TVector3 fInitPointsOverThreshold
Wrapper of (pointThreshold, signalThreshold, pointsOverThreshold) params.
TVector2 fFitRange
Range of bins to fit the signal.
Short_t fMinSaturationValue
Minimum value to consider a signal as saturated.
Bool_t fProcessAllSignals
Process all signals in the event.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
TCanvas * fC
Canvas to draw the signals.
TRestEvent * ProcessEvent(TRestEvent *eventInput) override
The main processing event function.
Size_t fNBinsIfNotSaturated
Number of bins to consider if the signal is not saturated.