19 std::vector<bool>& l1_bits,
23 const char* host_name)
26 if (expectedHeaderSize >
size_) {
28 <<
"The buffer used to build the event message (" <<
size_ 29 <<
" bytes) is not large enough to holde the event header (" << expectedHeaderSize <<
" bytes)";
37 h->protocolVersion_ = 11;
42 convert(droppedEventsCount,
h->droppedEventsCount_);
46 uint32 l1_count = l1_bits.size();
51 uint32 l1_sz = (l1_bits.size() + 8 - 1) / 8;
52 memset(
pos, 0x00, l1_sz);
55 pos[
i / 8] |= (
v << (
i & 0x07));
64 uint32 hlt_sz = (hlt_bit_count + 4 - 1) / 4;
92 <<
"The event message header size (" <<
headerSize() <<
" bytes) does not match the computed value (" 93 << expectedHeaderSize <<
" bytes)";
116 size += (l1t_bit_count + 8 - 1) / 8;
118 size += (hlt_bit_count + 4 - 1) / 4;
void convert(uint32 i, char_uint32 v)
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)
void setOrigDataSize(uint32)
uint32 headerSize() const
void setEventLength(uint32 len)
static constexpr int MAX_HOSTNAME_LEN
static uint32 computeHeaderSize(uint32 l1t_bit_count, uint32 hlt_bit_count)
unsigned long long uint64
unsigned char char_uint32[sizeof(uint32)]
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.