11#include <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <cdc/dataobjects/CDCHit.h>
14#include <cdc/dataobjects/CDCRawHit.h>
15#include <cdc/dbobjects/CDCChannelMap.h>
17#include <framework/database/DBArray.h>
19#include <rawdata/dataobjects/RawCDC.h>
62 void event()
override;
80 if ((buf[0] & 0xff000000) == 0x22000000) {
82 }
else if ((buf[0] & 0xff000000) == 0x20000000) {
85 B2ERROR(
"Undefined data type");
101 int getFEEID(
int copper_id,
int slot_id);
CDCPackerModule: The CDC Raw Hits Decoder.
StoreArray< RawCDC > m_rawCDCs
Raw CDC array.
int m_fee_ch[9][8][384]
Assignment map of FE board channel to the cell.
bool m_enableDatabase
Enable/Disable to read the channel map from the database.
int m_boardId
Frontend board ID.
std::vector< unsigned short > m_buffer
Short ward buffer of CDC event block.
int m_triggerTime
Trigger time.
virtual ~CDCPackerModule()
Destructor of the module.
std::string m_rawCDCName
Name of the RawCDC dataobject (supressed mode).
void initialize() override
Initializes the Module.
DBArray< CDCChannelMap > m_channelMapFromDB
Channel map retrieved from DB.
int getTriggerNumber()
Getter for trigger number.
void event() override
Event action (main routine).
int getFEEID(int copper_id, int slot_id)
Getter for Front End Electronics ID.
int m_fee_board[9][8][384]
Assignment map of FE board ID to the cell.
StoreArray< CDCRawHit > m_CDCRawHits
CDC raw hits.
void endRun() override
End run action.
const WireID getWireID(int iBoard, int iCh)
Getter of Wire ID.
void terminate() override
Termination action.
int m_fadcThreshold
FADC threshold.
int getTriggerTime()
Getter for trigger time in nsec.
std::string m_xmlMapFileName
Name of the assignment map of FE board channel to the cell.
int m_dataType
Data type of CDC data block.
WireID m_map[300][48]
Assignment map of FE board channel to the cell.
CDCPackerModule()
Constructor of the module.
int getDataType()
Getter for CDC data mode.
std::string m_cdcRawHitName
Name of the CDCRawHit dataobject (supressed mode).
void beginRun() override
Begin run action.
bool m_enableStoreCDCRawHit
**
int getDataLength()
Getter for data length in byte.
int m_dataLength
Data length of the CDC data block (in bytes).
void loadMap()
Load FE channel to cell ID map.
int m_triggerNumber
Trigger number.
int m_version
Format version.
bool m_enablePrintOut
Enable/Disable to print out the data to the terminal.
void setCDCPacketHeader(const int *buf)
Set CDC Packet header.
int getBoardId()
Getter for FE board ID.
std::string m_cdcHitName
Tree name of the CDCHit object.
StoreArray< CDCHit > m_CDCHits
CDC hits.
Class for accessing arrays of objects in the database.
Accessor to arrays stored in the data store.
Class to identify a wire inside the CDC.
Abstract base class for different kinds of events.