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