23#ifndef RestCore_TRestSummaryProcess
24#define RestCore_TRestSummaryProcess
26#include "TRestEventProcess.h"
45 std::map<TString, Double_t>
fRMS;
81 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
A base class for any REST event process.
A base class for any REST event.
A process to define basic data members to serve as a metadata summary in a data processing chain.
void EndProcess() override
Function to use when all events have been processed.
std::map< TString, TVector2 > fMinimumRange
If defined it will set the range where minimum is calculated.
std::map< TString, TVector2 > fMaximumRange
If defined it will set the range where maximum is calculated.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
Double_t fMeanRate
The mean rate during the run, calculated as the final number of entries in the run.
void InitFromConfigFile() override
Function reading input parameters from the RML TRestSummaryProcess section.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void Initialize() override
Function to initialize input/output event members and define the section name and library version.
TRestEvent * fEvent
The event pointer is not used in this process.
Double_t fMeanRateSigma
The mean rate sigma calculated as the square root of the corresponding mean rate counts.
std::map< TString, TVector2 > fRMSRange
If defined it will set the range where RMS is calculated.
std::map< TString, TVector2 > fAverageRange
If defined it will set the range where average is calculated.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
TRestSummaryProcess()
Default constructor.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
TRestEventProcess * Maker()
Returns a new instance of this class.
std::map< TString, Double_t > fMaximum
It will register the maximum value of an existing analyisTree observable.
void InitProcess() override
Function to use in initialization of process members before starting to process the event.
std::map< TString, Double_t > fAverage
It will register the average of an existing analyisTree observable.
const char * GetProcessName() const override
Returns the name of this process.
~TRestSummaryProcess()
Default destructor.
std::map< TString, Double_t > fRMS
It will register the RMS of an existing analysisTree observable.
std::map< TString, Double_t > fMinimum
It will register the minimum value of an existing analyisTree observable.