#include <EventMsgBuilder.h>
|
uint32 | bufferSize () const |
|
uint8 * | eventAddr () const |
|
| EventMsgBuilder (void *buf, uint32 size, uint32 run, uint64 event, uint32 lumi, uint32 outModId, uint32 droppedEventsCount, std::vector< bool > &l1_bits, uint8 *hlt_bits, uint32 hlt_bit_count, uint32 adler32_chksum, const char *host_name) |
|
uint32 | headerSize () const |
|
void | setBufAddr (uint8 *buf_addr) |
|
void | setEventAddr (uint8 *event_addr) |
|
void | setEventLength (uint32 len) |
|
void | setOrigDataSize (uint32) |
|
uint32 | size () const |
|
uint8 * | startAddress () const |
|
Definition at line 8 of file EventMsgBuilder.h.
◆ EventMsgBuilder()
EventMsgBuilder::EventMsgBuilder |
( |
void * |
buf, |
|
|
uint32 |
size, |
|
|
uint32 |
run, |
|
|
uint64 |
event, |
|
|
uint32 |
lumi, |
|
|
uint32 |
outModId, |
|
|
uint32 |
droppedEventsCount, |
|
|
std::vector< bool > & |
l1_bits, |
|
|
uint8 * |
hlt_bits, |
|
|
uint32 |
hlt_bit_count, |
|
|
uint32 |
adler32_chksum, |
|
|
const char * |
host_name |
|
) |
| |
Definition at line 9 of file EventMsgBuilder.cc.
23 h->protocolVersion_ = 11;
28 convert(droppedEventsCount,
h->droppedEventsCount_);
32 uint32 l1_count = l1_bits.size();
37 uint32 l1_sz = l1_bits.size();
39 l1_sz = 1 + ((l1_sz - 1) / 8);
42 memset(
pos, 0x00, pos_end -
pos);
45 pos[
i / 8] |= (
v << (
i & 0x07));
53 uint32 hlt_sz = hlt_bit_count;
55 hlt_sz = 1 + ((hlt_sz - 1) / 4);
70 assert(host_name_len < 0x00ff);
72 *
pos++ = host_name_len;
75 uint32 real_len = strlen(host_name);
76 if (real_len < host_name_len) {
78 memset(hostname_2use,
'\0', host_name_len);
79 memcpy(hostname_2use, host_name, real_len);
80 memcpy(
pos, hostname_2use, host_name_len);
82 memcpy(
pos, host_name, host_name_len);
References cms::cuda::assert(), buf_, fileCollector::convert(), filterCSVwithJSON::copy, event_addr_, mps_fire::i, MAX_HOSTNAME_LEN, writedatasetfile::run, setEventLength(), and findQualityFiles::v.
◆ bufferSize()
uint32 EventMsgBuilder::bufferSize |
( |
| ) |
const |
|
inline |
◆ eventAddr()
uint8* EventMsgBuilder::eventAddr |
( |
| ) |
const |
|
inline |
◆ headerSize()
uint32 EventMsgBuilder::headerSize |
( |
| ) |
const |
|
inline |
◆ setBufAddr()
void EventMsgBuilder::setBufAddr |
( |
uint8 * |
buf_addr | ) |
|
|
inline |
◆ setEventAddr()
void EventMsgBuilder::setEventAddr |
( |
uint8 * |
event_addr | ) |
|
|
inline |
◆ setEventLength()
void EventMsgBuilder::setEventLength |
( |
uint32 |
len | ) |
|
◆ setOrigDataSize()
void EventMsgBuilder::setOrigDataSize |
( |
uint32 |
value | ) |
|
◆ size()
uint32 EventMsgBuilder::size |
( |
void |
| ) |
const |
◆ startAddress()
uint8* EventMsgBuilder::startAddress |
( |
| ) |
const |
|
inline |
◆ buf_
uint8* EventMsgBuilder::buf_ |
|
private |
◆ event_addr_
uint8* EventMsgBuilder::event_addr_ |
|
private |
◆ size_