88#include "TRestDetectorTriggerAnalysisProcess.h"
157 std::vector<string> fObservables;
158 fObservables = TRestEventProcess::ReadObservables();
160 for (
unsigned int i = 0; i < fObservables.size(); i++)
161 if (fObservables[i].find(
"Integral_Eth") != string::npos)
176 for (
int sgnl = 0; sgnl < fInputSignalEvent->GetNumberOfSignals(); sgnl++)
177 fSignalEvent->AddSignal(*fInputSignalEvent->GetSignal(sgnl));
179 vector<Double_t> integral;
185 Int_t triggerStarts = 0;
187 unsigned int counter = 0;
189 for (
int i = minT -
fADCLength / 2; i <= maxT && counter < nObs; i++) {
192 for (
unsigned int n = 0; n < nObs; n++)
195 if (n == 0) triggerStarts = i;
201 for (
unsigned int n = 0; n < nObs; n++)
202 if (integral[n] > 0) counter++;
205 for (
unsigned int i = 0; i < nObs; i++) {
A process to generate integral observables for signal ADC windows found above the defined energy thre...
Int_t fADCLength
It defines the number of bins used to define the sampling depth.
TRestDetectorSignalEvent * fSignalEvent
A pointer to the specific TRestSignalEvent input.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
TRestDetectorTriggerAnalysisProcess()
Default constructor.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
~TRestDetectorTriggerAnalysisProcess()
Default destructor.
std::vector< double > fThreshold
A std::vector to temporary the extracted threshold value from the corresponding observable.
void Initialize() override
Function to initialize input/output event members and define the section name.
Double_t fSampling
It defines the sampling time in us to treat the signal as if it would be a rawsignal.
void InitProcess() override
Process initialization. Observable names are interpreted here.
std::vector< std::string > fIntegralObservables
A std::vector to temporary store the name of threshold observables.
void SetObservableValue(const std::string &name, const T &value)
Set observable value for AnalysisTree.
A base class for any REST event.
void SetEventInfo(TRestEvent *eve)