 |
Belle II Software
release-05-02-19
|
11 #ifndef ARICHUNPACKERMODULE_H
12 #define ARICHUNPACKERMODULE_H
15 #include <arich/dbobjects/ARICHMergerMapping.h>
16 #include <framework/database/DBObjPtr.h>
18 #include <framework/core/Module.h>
19 #include <arich/modules/arichUnpacker/ARICHRawDataHeader.h>
34 class ARICHUnpackerModule :
public Module {
63 virtual void event()
override;
69 virtual void endRun()
override;
85 void printBits(
const int* buffer,
int bufferSize);
86 void readHeader(
const int* buffer,
unsigned& ibyte,
ARICHRawHeader& head);
117 unsigned int val = 0xff & (buf[
m_ibyte / 4] >> shift);
int m_rawmode
Activate Raw Unpacker.
virtual void terminate() override
Termination action.
ARICHUnpackerModule()
Constructor.
int m_disable_unpacker
Disable regular Unpacker.
void readFEHeader(const int *buffer, unsigned &ibyte, ARICHRawHeader &head)
read Merger header
void printBits(const int *buffer, int bufferSize)
Unpack raw data given in production format.
std::string m_outputRawDigitsName
name of ARICHRawDigit store array
std::string m_outputarichinfoName
name of ARICHInfo store object
std::string m_outputDigitsName
name of ARICHDigit store array
virtual void event() override
Event processor.
Class for accessing objects in the database.
DBObjPtr< ARICHMergerMapping > m_mergerMap
mapping of modules to mergers
uint8_t m_bitMask
read FE header
virtual void endRun() override
End-of-run action.
Abstract base class for different kinds of events.
unsigned int cal2byte(const int *buf)
calculate number of lines (2 bytes) in raw Unpacker
virtual void initialize() override
Initialize the Module.
unsigned int calbyte(const int *buf)
calculate number of bytes in raw Unpacker
unsigned int m_ibyte
bye index of raw unpacker
std::string m_inputRawDataName
name of RawARICH store array
unsigned int calword(const int *buf)
calculate number of words in raw Unpacker
virtual void beginRun() override
Called when entering a new run.
virtual ~ARICHUnpackerModule()
Destructor.