23#ifndef RestCore_TRestRawCommonNoiseReductionProcess
24#define RestCore_TRestRawCommonNoiseReductionProcess
26#include <TRestEventProcess.h>
27#include <TRestRawSignalEvent.h>
29#include "TRestRawSignal.h"
53 std::string fChannelType;
70 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
75 if (!fChannelType.empty()) {
76 RESTMetadata <<
"channelType : " << fChannelType <<
RESTendl;
79 RESTMetadata <<
" mode : [" <<
fMode <<
"]";
81 RESTMetadata <<
" --> Mode 0 activated." <<
RESTendl;
84 RESTMetadata <<
" --> Mode 1 activated." <<
RESTendl;
97 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.
TRestEventProcess * Maker()
Returns a new instance of this class.
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.
const char * GetProcessName() const override
Returns the reduced process 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.
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.