23#ifndef RestCore_TRestRawSignalAddNoiseProcess
24#define RestCore_TRestRawSignalAddNoiseProcess
26#include <TRestEventProcess.h>
28#include "TRestRawSignalEvent.h"
61 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
A process to add/emulate electronic noise into a TRestRawSignalEvent.
TRestRawSignalAddNoiseProcess()
Default constructor.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
void PrintMetadata() override
Prints out the metadata members of this class.
Double_t GetNoiseLevel() const
It returns the noise level defined in the process (ADC units)
RESTValue GetOutputEvent() const override
Returns a pointer to the output signal event.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
RESTValue GetInputEvent() const override
Returns a pointer to the input signal event.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
TRestRawSignalEvent * fOutputSignalEvent
A pointer to the output signal event.
~TRestRawSignalAddNoiseProcess()
Default destructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
TRestRawSignalEvent * fInputSignalEvent
A pointer to the input signal event.
const char * GetProcessName() const override
Returns a given process name.
void SetNoiseLevel(Double_t noiseLevel)
It sets the noise level of the process (ADC units)
Double_t fNoiseLevel
The noise level to be added to the signal. It is 1-gaussian sigma.
An event container for time rawdata signals with fixed length.