7 #define MAX_HOSTNAME_LEN 25
16 std::vector<bool>& l1_bits,
20 const char* host_name)
21 : buf_((
uint8*)buf), size_(size) {
32 uint32 l1_count = l1_bits.size();
34 pos = pos +
sizeof(
uint32);
37 uint32 l1_sz = l1_bits.size();
39 l1_sz = 1 + ((l1_sz - 1) / 8);
41 uint8* pos_end = pos + l1_sz;
42 memset(pos, 0x00, pos_end - pos);
45 pos[
i / 8] |= (v << (
i & 0x07));
51 pos = pos +
sizeof(
uint32);
53 uint32 hlt_sz = hlt_bit_count;
55 hlt_sz = 1 + ((hlt_sz - 1) / 4);
58 pos =
std::copy(hlt_bits, hlt_bits + hlt_sz, pos);
62 pos = pos +
sizeof(
uint32);
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);
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)
void setOrigDataSize(uint32)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
tuple size
Write out results.