8 #define MAX_HOSTNAME_LEN 25 17 std::vector<bool>& l1_bits,
21 const char* host_name)
24 if (expectedHeaderSize >
size_) {
26 <<
"The buffer used to build the event message (" <<
size_ 27 <<
" bytes) is not large enough to holde the event header (" << expectedHeaderSize <<
" bytes)";
35 h->protocolVersion_ = 11;
40 convert(droppedEventsCount,
h->droppedEventsCount_);
44 uint32 l1_count = l1_bits.size();
49 uint32 l1_sz = (l1_bits.size() + 8 - 1) / 8;
50 memset(
pos, 0x00, l1_sz);
53 pos[
i / 8] |= (
v << (
i & 0x07));
62 uint32 hlt_sz = (hlt_bit_count + 4 - 1) / 4;
90 <<
"The event message header size (" <<
headerSize() <<
" bytes) does not match the computed value (" 91 << expectedHeaderSize <<
" bytes)";
114 size += (l1t_bit_count + 8 - 1) / 8;
116 size += (hlt_bit_count + 4 - 1) / 4;
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 setEventLength(uint32 len)
static uint32 computeHeaderSize(uint32 l1t_bit_count, uint32 hlt_bit_count)
uint32 headerSize() const
void setOrigDataSize(uint32)
def convert(infile, ofile)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.