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);
36 m_ARICHDigits.isRequired();
42 auto hist = getObjectPtr<TH2F>(
"ch_occupancy");
43 hist->Fill(420 * 144, 0);
45 for (
const auto& digit : m_ARICHDigits) {
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
Replacement for event(). Fill you calibration data objects here.
virtual void prepare() override
Replacement for initialize(). Register calibration dataobjects here as well.
ARICHChannelMaskModule()
Constructor: Sets the description, the properties and the parameters of the module.
The Class for ARICH HAPD channel mask.
Calibration collector module base class.
void setDescription(const std::string &description)
Sets the description of the module.
REG_MODULE(arichBtest)
Register the Module.
Abstract base class for different kinds of events.