8 #include <daq/dqm/modules/MonitorData.h>
10 #include <framework/datastore/StoreArray.h>
11 #include <rawdata/dataobjects/RawCOPPER.h>
32 setDescription(
"Monitor Raw Data");
33 setPropertyFlags(c_ParallelProcessingCertified);
40 MonitorDataModule::~MonitorDataModule()
44 void MonitorDataModule::defineHisto()
46 h_ncpr =
new TH1F(
"NumCOPPER",
"Number of COPPERs", 10, 0.0, 10.0);
47 h_nevt =
new TH1F(
"Nevent COPPER",
"Number of Events", 10, 0.0, 10.0);
48 h_size =
new TH1F(
"Data Size COPPER",
"Data Size", 100, 0.0, 2000.0);
49 h_size2d =
new TH2F(
"Data Size vs. Cpr",
"Data Size vs. Copper", 100, 0.0, 2000.0, 5, 0.0, 5.0);
53 void MonitorDataModule::initialize()
59 void MonitorDataModule::beginRun()
61 B2INFO(
"beginRun called.");
67 void MonitorDataModule::endRun()
71 B2INFO(
"endRun done.");
75 void MonitorDataModule::terminate()
77 B2INFO(
"terminate called");
87 void MonitorDataModule::event()
89 h_nevt->Fill((
float)m_nevt);
93 h_ncpr->Fill((
float)ncpr);
95 for (
int j = 0; j < ncpr; j++) {
96 for (
int i = 0; i < rawcprarray[ j ]->GetNumEntries(); i++) {
101 int size_byte = rawcprarray[ j ]->GetBlockNwords(i) *
sizeof(int);
102 h_size->Fill((
float)size_byte);
103 h_size2d->Fill((
float)size_byte, (float)j);
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
A class definition of an input module for Sequential ROOT I/O.
Accessor to arrays stored in the data store.
int getEntries() const
Get the number of objects in the array.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.