23 #ifndef RestCore_TRestRawCommonNoiseReductionProcess
24 #define RestCore_TRestRawCommonNoiseReductionProcess
26 #include <TRestRawSignalEvent.h>
28 #include "TRestEventProcess.h"
29 #include "TRestRawSignal.h"
70 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
75 RESTMetadata <<
" mode : [" <<
fMode <<
"]";
76 if (
fMode == 0) RESTMetadata <<
" --> Mode 0 activated." <<
RESTendl;
77 if (
fMode == 1) RESTMetadata <<
" --> Mode 1 activated." <<
RESTendl;
89 const char*
GetProcessName()
const override {
return "commonNoiseReduction"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
A process to subtract the common channels noise from RawSignal type.
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.
~TRestRawCommonNoiseReductionProcess()
Default destructor.
Int_t fBlocks
Common noise to all signals or by groups (It can be 0 or 1).
TRestRawSignalEvent * fInputEvent
A pointer to the specific TRestRawSignalEvent input.
Int_t fMinSignalsRequired
Minimum number of signals required to apply the process.
TRestRawSignalEvent * fOutputEvent
A pointer to the specific TRestRawSignalEvent output.
TRestEventProcess * Maker()
Returns a new instance of this class.
const char * GetProcessName() const override
Returns the reduced process name.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void EndProcess() override
Function to include required actions after all events have been processed. This method will write the...
TRestRawCommonNoiseReductionProcess()
Default constructor.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
void InitProcess() override
Process initialization.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
Int_t fMode
The mode defines the method to be used (It can be 0 or 1).
An event container for time rawdata signals with fixed length.