91#include "TRestEventRateAnalysisProcess.h"
93#include "TRestDataBase.h"
150 Double_t evTimeDelay = 0;
154 Double_t meanRate = 0;
169 if (ApplyCut())
return NULL;
TRestAnalysisTree * fAnalysisTree
TRestRun * fRunInfo
< Pointer to TRestRun object where to find metadata.
std::map< std::string, int > fObservablesDefined
Stores the list of all the appeared process observables in the code.
void SetObservableValue(const std::string &name, const T &value)
Set observable value for AnalysisTree.
A pure analysis process used to calculate event rates and other time observables.
TRestEvent * fEvent
A pointer to the input event.
void InitProcess() override
Process initialization.
void Initialize() override
Function to initialize input/output event members and define the section name.
~TRestEventRateAnalysisProcess()
Default destructor.
std::vector< Double_t > fPreviousEventTime
It keeps a historic list of timestamps of the previous N events. Now fixed to N=10 events.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
Double_t fFirstEventTime
It registers the timestamp from the first event to calculate time from start observables.
bool fRateAnalysis
It indicates whether to add rate observables which is correct only under single thread run.
TRestEventRateAnalysisProcess()
Default constructor.
A base class for any REST event.
@ REST_Debug
+show the defined debug messages