9 #include <daq/rfarm/event/modules/EvReduction.h>
12 #include <rawdata/dataobjects/RawTLU.h>
13 #include <rawdata/dataobjects/RawTRG.h>
32 setDescription(
"Encode DataStore into RingBuffer");
35 addParam(
"EventReductionFactor", m_red_factor,
"Event reduction factor: ", 3);
41 B2INFO(
"Rx: Constructor done.");
45 EvReductionModule::~EvReductionModule()
49 void EvReductionModule::initialize()
51 gSystem->Load(
"libdataobjects");
56 m_rawDataBlock.registerInDataStore();
57 m_rawCOPPER.registerInDataStore();
58 m_rawSVD.registerInDataStore();
59 m_rawCDC.registerInDataStore();
60 m_rawTOP.registerInDataStore();
61 m_rawARICH.registerInDataStore();
62 m_rawECL.registerInDataStore();
63 m_rawKLM.registerInDataStore();
64 m_rawFTSW.registerInDataStore();
67 m_rawTLU.registerInDataStore();
69 B2INFO(
"Rx initialized.");
73 void EvReductionModule::beginRun()
75 B2INFO(
"beginRun called.");
79 void EvReductionModule::event()
95 if ((m_nevt % m_red_factor) != 0) {
112 void EvReductionModule::endRun()
116 B2INFO(
"EvReduction: endRun done.");
120 void EvReductionModule::terminate()
122 B2INFO(
"EvReduction: terminate called");
A class definition of an input module for Sequential ROOT I/O.
Accessor to arrays stored in the data store.
void clear() override
Delete all entries in this array.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.