13 m_logstr(msgSvc,
"LArByteStream.Mon")
17 nPackets =
static_cast<int>((word & 0xff000000) >> 24);
18 packetIndex =
static_cast<int>((word & 0xff0000) >> 16);
19 uint16_t sizeInBytes =
static_cast<uint16_t
>(word & 0xffff);
20 if (sizeInBytes % 4)
m_logstr << MSG::ERROR <<
"ERROR: Packet size written in the mon header is not multiple of 4 (cannot be converted from [bytes] to [32 bit words])" <<
endmsg;
21 else packetSize =
static_cast<int>(sizeInBytes / 4);
25 region =
static_cast<int>(word);
34 m_logstr << MSG::ERROR <<
"Unknown calorimeter region word in mon header." <<
endmsg;
49 dataType[i] =
static_cast<int>(word);
57 m_logstr << MSG::ERROR <<
"Unknown calorimeter region word in mon header." <<
endmsg;
62 nBCs[i] =
static_cast<int>(word);
63 if (
nBCs[i] !=
NBCS)
m_logstr << MSG::ERROR <<
"Number of BCs word in mon header is not the standard one." <<
endmsg;
Tool to store LATOME mon header and footer data.
void fillRegion(uint32_t word)
void fillPacketInfo(uint32_t word)
void fillNBCs(uint32_t word, int i)
void fillNActiveSCs(uint32_t word)
std::array< uint32_t, 2 > timeShift
void fillStreamNumber(uint32_t word)
void fillNStreams(uint32_t word)
void fillDataType(uint32_t word, int i)
void fillTimeShift(uint32_t word, int i)
std::array< int, 2 > dataType
std::array< int, 2 > nBCs