CMS 3D CMS Logo

EventMsgBuilder.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_EventMsgBuilder_h
2 #define IOPool_Streamer_EventMsgBuilder_h
3 
5 
6 // ------------------ event message builder ----------------
7 
8 namespace edm::streamer {
10  public:
11  EventMsgBuilder(void* buf,
12  uint32 size,
13  uint32 run,
14  uint64 event,
15  uint32 lumi,
16  uint32 outModId,
17  uint32 droppedEventsCount,
18  std::vector<bool>& l1_bits,
19  uint8* hlt_bits,
20  uint32 hlt_bit_count,
21  uint32 adler32_chksum,
22  const char* host_name);
23 
24  void setOrigDataSize(uint32);
25  uint8* startAddress() const { return buf_; }
26  void setEventLength(uint32 len);
27  void setBufAddr(uint8* buf_addr) { buf_ = buf_addr; }
28  void setEventAddr(uint8* event_addr) { event_addr_ = event_addr; }
29  uint8* eventAddr() const { return event_addr_; }
30  uint32 headerSize() const { return event_addr_ - buf_; }
31  uint32 size() const;
32  uint32 bufferSize() const { return size_; }
33 
34  static uint32 computeHeaderSize(uint32 l1t_bit_count, uint32 hlt_bit_count);
35 
36  private:
40  };
41 } // namespace edm::streamer
42 #endif
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 setBufAddr(uint8 *buf_addr)
unsigned char uint8
Definition: MsgTools.h:12
void setEventAddr(uint8 *event_addr)
static uint32 computeHeaderSize(uint32 l1t_bit_count, uint32 hlt_bit_count)
unsigned long long uint64
Definition: MsgTools.h:15
unsigned int uint32
Definition: MsgTools.h:14
Definition: event.py:1