23 #ifndef RestCore_TRestRawVetoAnalysisProcess
24 #define RestCore_TRestRawVetoAnalysisProcess
26 #include "TRestEventProcess.h"
27 #include "TRestRawSignalEvent.h"
66 Double_t fSignalThreshold;
67 Int_t fPointsOverThreshold;
83 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
101 std::pair<std::vector<std::string>, std::vector<std::string>>
GetVetoGroups() {
102 std::pair<std::vector<std::string>, std::vector<std::string>> output;
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.
const char * GetProcessName() const override
Returns the name of this process.
TRestEventProcess * Maker()
Returns a new instance of this class.
~TRestRawVetoAnalysisProcess()
Default destructor.
std::vector< double > fVetoSignalId
Veto signal IDs.
std::pair< std::vector< std::string >, std::vector< std::string > > GetVetoGroups()
Returns the veto group names and 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.
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.
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.
std::string GetGroupIds(std::string groupName)
Function that returns a string of the signal IDs for the specified veto group.
TRestRawVetoAnalysisProcess()
Default constructor.
Int_t GetGroupIndex(std::string groupName)
Function that returns the index of a specified veto group within the group name vector and ID vector.
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.