11 #include <arich/modules/arichChannelMask/ARICHChannelMaskModule.h>
31 setDescription(
"Collector for ARICH channel mask production in CAF");
37 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);
38 registerObject<TH2F>(
"ch_occupancy", hist);
39 m_ARICHDigits.isRequired();
45 auto hist = getObjectPtr<TH2F>(
"ch_occupancy");
46 hist->Fill(420 * 144, 0);
48 for (
const auto& digit : m_ARICHDigits) {
49 uint8_t bits = digit.getBitmap();
50 for (
int i = 0; i < 4; i++) {
51 if ((bits & (1 << i)) && !(bits & ~(1 << i))) {
52 hist->Fill((digit.getModuleID() - 1) * 144 + digit.getChannelID(), i);