99#include "TRestRawSignalChannelActivityProcess.h"
138 string histogramName =
"daqChannelActivityRaw_" + fChannelType;
153 if (run !=
nullptr) {
157 if (fReadoutMetadata ==
nullptr) {
158 fReadoutMetadata =
fInputEvent->GetReadoutMetadata();
161 if (fReadoutMetadata ==
nullptr && !fChannelType.empty()) {
162 cerr <<
"TRestRawSignalChannelActivityProcess::ProcessEvent: readout metadata is null, cannot filter "
163 "the process by signal type"
168 for (
int s = 0; s <
fInputEvent->GetNumberOfSignals(); s++) {
170 if (!fChannelType.empty()) {
171 const auto channelType = fReadoutMetadata->GetTypeForChannelDaqId(signal->GetID());
172 if (fChannelType != channelType) {
178 Int_t daqChannel = signal->GetID();
TRestAnalysisTree * fAnalysisTree
TRestRun * GetRunInfo() const
Return the pointer of the hosting TRestRun object.
bool fReadOnly
not used, keep for compatibility
A base class for any REST event.
virtual void InitializeReferences(TRestRun *run)
Initialize dynamical references when loading the event from a root file.
Int_t fDaqChannels
The number of bins at the daq channels histogram.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
Int_t fDaqStartChannel
The first channel at the daq channels histogram.
void InitProcess() override
Process initialization. The ROOT TH1 histograms are created here using the limits defined in the proc...
Int_t fDaqEndChannel
The last channel at the daq channels histogram.
TRestRawSignalChannelActivityProcess()
Default constructor.
~TRestRawSignalChannelActivityProcess()
Default destructor.
void EndProcess() override
Function to include required actions after all events have been processed. In this process it will ta...
void Initialize() override
Function to initialize input/output event members and define the section name.
TH1D * fDaqChannelsHisto
The daq channels histogram.
TRestRawSignalEvent * fInputEvent
A pointer to the specific TRestRawSignalEvent input.
An event container for time rawdata signals with fixed length.
@ REST_Debug
+show the defined debug messages