23#ifndef RestCore_TRestRawVetoAnalysisProcess
24#define RestCore_TRestRawVetoAnalysisProcess
26#include "TRestEventProcess.h"
27#include "TRestRawSignalEvent.h"
66 Double_t fSignalThreshold;
67 Int_t fPointsOverThreshold;
85 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
103 std::pair<std::vector<std::string>, std::vector<std::string>>
GetVetoGroups() {
104 std::pair<std::vector<std::string>, std::vector<std::string>> output;
111 std::string
GetGroupIds(
const std::string& groupName);
A base class for any REST event process.
A base class for any REST event.
An event container for time rawdata signals with fixed length.
Int_t GetGroupIndex(const std::string &groupName)
Function that returns the index of a specified veto group within the group name vector and ID vector.
~TRestRawVetoAnalysisProcess()
Default destructor.
std::vector< double > fVetoSignalId
Veto signal IDs.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
std::vector< std::string > fPeakTime
Peak Time observable names.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
const char * GetProcessName() const override
Returns the name of this process.
void Initialize() override
Function to initialize input/output event members and define the section name and library version.
Int_t fThreshold
Threshold of the vetoes.
TRestEventProcess * Maker()
Returns a new instance of this class.
std::pair< std::vector< std::string >, std::vector< std::string > > GetVetoGroups()
Returns the veto group names and IDs.
Double_t fPointThreshold
PointsOverThreshold() Parameters:
void InitProcess() override
Function to use in initialization of process members before starting to process the event.
TRestRawSignalEvent * fSignalEvent
A pointer to the specific TRestRawSignalEvent.
std::vector< std::string > fPeakAmp
Max peak amplitude observable names.
TVector2 fRange
The range used to calculate the veto signal parameters.
std::vector< std::string > fVetoGroupIds
Veto signal IDs per group.
void InitFromConfigFile() override
Function reading input parameters from the RML TRestRawVetoAnalysisProcess section.
TRestRawVetoAnalysisProcess()
Default constructor.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
TVector2 fBaseLineRange
The range used to calculate the baseline parameters from the veto signal.
std::vector< double > GetVetoSignalIDs()
Returns the veto IDs, if they where defined in a list.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
std::vector< std::string > fVetoGroupNames
Veto group Names.
std::vector< double > fTimeWindow
Peak time window for cut.
std::string GetGroupIds(const std::string &groupName)
Function that returns a string of the signal IDs for the specified veto group.