9#include <daq/rfarm/event/modules/EvReduction.h>
12#include <rawdata/dataobjects/RawTLU.h>
13#include <rawdata/dataobjects/RawTRG.h>
35 addParam(
"EventReductionFactor", m_red_factor,
"Event reduction factor: ", 3);
41 B2INFO(
"Rx: Constructor done.");
45EvReductionModule::~EvReductionModule()
51 gSystem->Load(
"libdataobjects");
67 m_rawTLU.registerInDataStore();
69 B2INFO(
"Rx initialized.");
75 B2INFO(
"beginRun called.");
95 if ((
m_nevt % m_red_factor) != 0) {
116 B2INFO(
"EvReduction: endRun done.");
122 B2INFO(
"EvReduction: terminate called");
int m_nevt
No. of sent events.
EvReductionModule()
Constructor / Destructor.
StoreArray< RawSVD > m_rawSVD
RawSVD.
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
StoreArray< RawFTSW > m_rawFTSW
RawFTSW.
void terminate() override
This method is called at the end of the event processing.
StoreArray< RawCOPPER > m_rawCOPPER
RawCOPPER.
StoreArray< RawARICH > m_rawARICH
RawARICH.
void beginRun() override
Module functions to be called from event process.
StoreArray< RawKLM > m_rawKLM
RawKLM.
StoreArray< RawTOP > m_rawTOP
RawTOP.
StoreArray< RawDataBlock > m_rawDataBlock
RawDataBlock.
StoreArray< RawECL > m_rawECL
RawECL.
StoreArray< RawCDC > m_rawCDC
RawCDC.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_Input
This module is an input module (reads data).
Accessor to arrays stored in the data store.
void clear() override
Delete all entries in this array.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.