23#ifndef RestCore_TRestDetectorSignalRecoveryProcess
24#define RestCore_TRestDetectorSignalRecoveryProcess
26#include <TRestDetectorReadout.h>
27#include <TRestEventProcess.h>
29#include "TRestDetectorSignalEvent.h"
34 std::vector<Int_t> fChannelIds;
58 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
63 for (
const auto& channelId : fChannelIds) {
64 RESTMetadata <<
"Channel id to recover: " << channelId <<
RESTendl;
A metadata class to generate/store a readout description.
A process allowing to recover selected channels from a TRestRawSignalEvent.
~TRestDetectorSignalRecoveryProcess()
Default destructor.
void InitProcess() override
Function to initialize the process. TRestDetectorSignalRecoveryProcess requires to get a pointer to T...
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
TRestDetectorSignalRecoveryProcess()
Default constructor.
int GetAdjacentSignalIds(Int_t signalId, Int_t &idLeft, Int_t &idRight)
It returns the channel daq id of the adjacent readout channels. It will properly identify that we got...
TRestDetectorSignalEvent * fOutputSignalEvent
A pointer to the specific TRestDetectorSignalEvent input.
void Initialize() override
Function to initialize input/output event members and define the section name.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
TRestDetectorSignalEvent * fInputSignalEvent
A pointer to the specific TRestDetectorSignalEvent input.
TRestEvent * ProcessEvent(TRestEvent *eventInput) override
The main processing event function.
const char * GetProcessName() const override
Returns the name of this process.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
TRestDetectorReadout * fReadout
A pointer to the readout that will be extracted from TRestRun.
TRestEventProcess * Maker()
Returns a new instance of this class.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.