5#ifndef REST_TRESTRAWPEAKSFINDERPROCESS_H
6#define REST_TRESTRAWPEAKSFINDERPROCESS_H
8#include <TRestEventProcess.h>
10#include "TRestRawReadoutMetadata.h"
11#include "TRestRawSignalEvent.h"
33 Double_t fTimeBinToTimeFactorMultiplier = 0.0;
34 Double_t fTimeBinToTimeFactorOffset = 0.0;
35 Double_t fTimeBinToTimeFactorOffsetTCM = 0.0;
37 Bool_t fTimeConversionElectronics =
false;
39 Double_t fADCtoEnergyFactor = 0.0;
40 std::map<UShort_t, Double_t> fChannelIDToADCtoEnergyFactor = {};
42 std::set<std::string> fChannelTypes = {};
54 const char* GetProcessName()
const override {
return "peaksFinder"; }
A base class for any REST event process.
A base class for any REST event.
Double_t fSigmaOverBaseline
choose times the sigma of the baseline must be overcome to consider a peak
UShort_t fDistance
distance between two peaks to consider them as different (ADC units)
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
Bool_t fRemovePeaklessVetoes
option to remove peak-less veto signals after finding the peaks
Double_t fThresholdOverBaseline
threshold over baseline to consider a peak
UShort_t fWindow
window size to calculate the peak amplitude (time bins)
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.
Bool_t fRemoveAllVetoes
option to remove all veto signals after finding the peaks
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.