23#ifndef RestCore_TRestRawSignalIdTaggingProcess
24#define RestCore_TRestRawSignalIdTaggingProcess
26#include <TRestRawSignalEvent.h>
28#include "TRestEventProcess.h"
76 RESTMetadata <<
"Tag code: " <<
RESTendl;
77 for (
unsigned int n = 0; n <
fIdRanges.size(); n++) {
94 const char* GetProcessName()
const override {
return "RawSignalIdTagging"; }
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.
An analysis process helping to assign tags to user defined ranges of signal ids.
std::vector< TVector2 > fIdRanges
A list containing the id range for each tag.
Double_t fSignalThreshold
A parameter to define a minimum signal fluctuation. Measured in sigmas.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
TRestRawSignalEvent * fSignalEvent
A pointer to the specific TRestRawSignalEvent input.
~TRestRawSignalIdTaggingProcess()
Default destructor.
void InitFromConfigFile() override
Process initialization.
void InitProcess() override
Process initialization.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
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.
void Initialize() override
Function to initialize input/output event members and define the section name.
Double_t fPointThreshold
The number of sigmas over baseline fluctuations to identify a point overthreshold.
TVector2 fBaseLineRange
The range where the baseline range will be calculated.
Int_t fPointsOverThreshold
The minimum number of points over threshold to identify a signal as such.
TRestRawSignalIdTaggingProcess()
Default constructor.
std::vector< std::string > fTagNames
A list containing the tag names for each signal ids range.