72#include "TRestRawSignalAddNoiseProcess.h"
116 SetName(
"addSignalNoiseProcess-Default");
117 SetTitle(
"Default config");
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 LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
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.
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.
It defines a Short_t array with a physical parameter that evolves in time using a fixed time bin.
void SetSignalID(Int_t sID)
It sets the id number of the signal.
void GetWhiteNoiseSignal(TRestRawSignal *noiseSignal, Double_t noiseLevel=1.)
It calculates an arbitrary Gaussian noise placing it at the signal pointer given by argument....
Int_t GetSignalID() const
Returns the value of signal ID.