10 #include <framework/core/HistoModule.h>
49 virtual void event()
override;
52 unsigned int calbyte(
const int* buf);
53 unsigned int calword(
const int* buf);
57 unsigned int m_ibyte = 0;
58 TH1* h_rate_a_all = NULL;
59 TH1* h_rate_b_all = NULL;
60 TH1* h_rate_c_all = NULL;
61 TH1* h_rate_d_all = NULL;
65 inline unsigned int ARICHRawUnpackerModule::calbyte(
const int* buf)
67 int shift = (3 - m_ibyte % 4) * 8;
68 unsigned int val = 0xff & (buf[m_ibyte / 4] >> shift);
73 inline unsigned int ARICHRawUnpackerModule::calword(
const int* buf)
75 return (calbyte(buf) << 24) | (calbyte(buf) << 16)
76 | (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.
ARICHRawUnpackerModule()
Constructor.
virtual void event() override
Event processor.
virtual ~ARICHRawUnpackerModule()
Destructor.
virtual void defineHisto() override
Function to define histograms.
Abstract base class for different kinds of events.