10 #include <framework/core/HistoModule.h>
58 virtual void event()
override;
61 unsigned int calbyte(
const int* buf);
62 unsigned int calword(
const int* buf);
65 TH2* h_rate2D[100] = {NULL};
73 unsigned int m_ibyte = 0;
79 inline unsigned int ARICHRateCalModule::calbyte(
const int* buf)
81 int shift = (3 - m_ibyte % 4) * 8;
82 unsigned int val = 0xff & (buf[m_ibyte / 4] >> shift);
87 inline unsigned int ARICHRateCalModule::calword(
const int* buf)
89 return (calbyte(buf) << 24) | (calbyte(buf) << 16)
90 | (calbyte(buf) << 8) | calbyte(buf);
Fill ARICHHit collection from ARICHDigits.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
ARICHRateCalModule()
Constructor.
virtual void beginRun() override
Called when entering a new run.
virtual ~ARICHRateCalModule()
Destructor.
virtual void defineHisto() override
Function to define histograms.
Abstract base class for different kinds of events.