9 #include <arich/modules/arichChannelMask/ARICHChannelMaskModule.h>
29 setDescription(
"Collector for ARICH channel mask production in CAF");
35 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);
36 registerObject<TH2F>(
"ch_occupancy", hist);
37 m_ARICHDigits.isRequired();
43 auto hist = getObjectPtr<TH2F>(
"ch_occupancy");
44 hist->Fill(420 * 144, 0);
46 for (
const auto& digit : m_ARICHDigits) {
47 uint8_t bits = digit.getBitmap();
48 for (
int i = 0; i < 4; i++) {
49 if ((bits & (1 << i)) && !(bits & ~(1 << i))) {
50 hist->Fill((digit.getModuleID() - 1) * 144 + digit.getChannelID(), i);
Testing module for collection of calibration data.
virtual void collect() override
Replacement for event(). Fill you calibration data objects here.
virtual void prepare() override
Replacement for initialize(). Register calibration dataobjects here as well.
The Class for ARICH HAPD channel mask.
Calibration collector module base class.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.