9#include <arich/modules/arichChannelMask/ARICHChannelMaskModule.h>
28 setDescription(
"Collector for ARICH channel mask production in CAF");
34 auto hist =
new TH2F(
"ch_occupancy",
"HAPD channel occupancy in bits", 420 * 144 + 1, -0.5, 420 * 144 + 0.5, 4, -0.5, 3.5);
35 registerObject<TH2F>(
"ch_occupancy", hist);
42 auto hist = getObjectPtr<TH2F>(
"ch_occupancy");
43 hist->Fill(420 * 144, 0);
46 uint8_t bits = digit.getBitmap();
47 for (
int i = 0; i < 4; i++) {
48 if ((bits & (1 << i)) && !(bits & ~(1 << i))) {
49 hist->Fill((digit.getModuleID() - 1) * 144 + digit.getChannelID(), i);
virtual void collect() override
Collection (called for each event).
virtual void prepare() override
Preparation of data collection.
StoreArray< ARICHDigit > m_ARICHDigits
Digits.
ARICHChannelMaskModule()
Constructor.
The Class for ARICH HAPD channel mask.
Calibration collector module base class.
void setDescription(const std::string &description)
Sets the description of the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.