9 #ifndef ARICHRATECALMODULE_H
10 #define ARICHRATECALMODULE_H
12 #include <framework/core/HistoModule.h>
60 virtual void event()
override;
66 virtual void endRun()
override;
75 unsigned int calbyte(
const int* buf);
76 unsigned int calword(
const int* buf);
79 TH2* h_rate2D[100] = {NULL};
87 unsigned int m_ibyte = 0;
93 inline unsigned int ARICHRateCalModule::calbyte(
const int* buf)
95 int shift = (3 - m_ibyte % 4) * 8;
96 unsigned int val = 0xff & (buf[m_ibyte / 4] >> shift);
101 inline unsigned int ARICHRateCalModule::calword(
const int* buf)
103 return (calbyte(buf) << 24) | (calbyte(buf) << 16)
104 | (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 endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
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.