8#include <daq/dqm/modules/MonitorData.h>
10#include <framework/datastore/StoreArray.h>
11#include <rawdata/dataobjects/RawCOPPER.h>
40MonitorDataModule::~MonitorDataModule()
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);
61 B2INFO(
"beginRun called.");
71 B2INFO(
"endRun done.");
77 B2INFO(
"terminate called");
89 h_nevt->Fill((
float)
m_nevt);
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...
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_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
int m_nevt
No. of sent events.
void initialize() override
Module functions to be called from main process.
void event() override
Function to process event record.
void endRun() override
Function to process end_run record.
void terminate() override
Function to terminate module.
void beginRun() override
Module functions to be called from event process.
MonitorDataModule()
Constructor / Destructor.
void defineHisto() override
Histogram definition.
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.