5 #ifndef REST_TRESTRAWPEAKSFINDERPROCESS_H
6 #define REST_TRESTRAWPEAKSFINDERPROCESS_H
8 #include <TRestEventProcess.h>
10 #include "TRestRawReadoutMetadata.h"
11 #include "TRestRawSignalEvent.h"
27 std::set<std::string> fChannelTypes = {};
39 const char* GetProcessName()
const override {
return "peaksFinder"; }
A base class for any REST event process.
A base class for any REST event.
UShort_t fDistance
distance between two peaks to consider them as different
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
Double_t fThresholdOverBaseline
threshold over baseline to consider a peak
UShort_t fWindow
window size to calculate the peak amplitude
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
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.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
TVector2 fBaselineRange
range of samples to calculate baseline for peak finding
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void EndProcess() override
To be executed at the end of the run (outside event loop)
An event container for time rawdata signals with fixed length.