23#ifndef RestCore_TRestRawSignalAnalysisProcess
24#define RestCore_TRestRawSignalAnalysisProcess
26#include <TRestRawSignalEvent.h>
28#include "TRestEventProcess.h"
67 std::set<std::string> fChannelTypes = {};
93 RESTMetadata <<
"Baseline calculation method: " << (
fBaseLineOption.empty() ?
"Standard" :
"Robust")
99 const char* GetProcessName()
const override {
return "rawSignalAnalysis"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
An analysis process to extract valuable information from a TRestRawSignalEvent.
void InitProcess() override
Process initialization.
TVector2 fSignalsRange
It defines the signals id range where analysis is applied.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
Double_t fPointThreshold
The number of sigmas over baseline fluctuations to identify a point over threshold.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
std::string fBaseLineOption
Option for calculation of baseline parameters, can be set to "ROBUST".
TRestRawSignalAnalysisProcess()
Default constructor.
TRestRawSignalEvent * fInputEvent
A pointer to the specific TRestRawSignalEvent input.
void Initialize() override
Function to initialize input/output event members and define the section name.
Double_t fSignalThreshold
A parameter to define a minimum signal fluctuation. Measured in sigmas.
~TRestRawSignalAnalysisProcess()
Default destructor.
Bool_t fRangeEnabled
Just a flag to quickly determine if we have to apply the range filter.
Int_t fPointsOverThreshold
The minimum number of points over threshold to identify a signal as such.
TVector2 fIntegralRange
The range where the observables will be calculated.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
TVector2 fBaseLineRange
The range where the baseline range will be calculated.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
std::string fChannelType
avoid error when loading parameters (not used)
An event container for time rawdata signals with fixed length.