CMS 3D CMS Logo

EventMessage.h
Go to the documentation of this file.
1 
53 #ifndef IOPool_Streamer_EventMessage_h
54 #define IOPool_Streamer_EventMessage_h
55 
58 namespace edm::streamer {
59  // ----------------------- event message ------------------------
60 
61  struct EventHeader {
70  };
71 
72  class EventMsgView {
73  public:
74  EventMsgView(void* buf);
75 
76  uint32 code() const { return head_.code(); }
77  uint32 size() const { return head_.size(); }
78 
79  const uint8* eventData() const { return event_start_; }
80  uint8* startAddress() const { return buf_; }
81  uint32 eventLength() const { return event_len_; }
82  uint32 headerSize() const { return event_start_ - buf_; }
83  uint32 protocolVersion() const;
84  uint32 run() const;
85  uint64 event() const;
86  uint32 lumi() const;
87  uint32 origDataSize() const;
88  uint32 outModId() const;
89  uint32 droppedEventsCount() const;
90  bool isEventMetaData() const;
91 
92  void l1TriggerBits(std::vector<bool>& put_here) const;
93  void hltTriggerBits(uint8* put_here) const;
94 
95  uint32 hltCount() const { return hlt_bits_count_; }
96  uint32 l1Count() const { return l1_bits_count_; }
98  std::string hostName() const;
99  uint32 hostName_len() const { return host_name_len_; }
100 
101  private:
104 
115  };
116 } // namespace edm::streamer
117 #endif
const uint8 * eventData() const
Definition: EventMessage.h:79
unsigned char char_uint64[sizeof(uint64)]
Definition: MsgTools.h:16
char_uint32 droppedEventsCount_
Definition: EventMessage.h:69
void hltTriggerBits(uint8 *put_here) const
uint32 hostName_len() const
Definition: EventMessage.h:99
uint32 protocolVersion() const
Definition: EventMessage.cc:68
void l1TriggerBits(std::vector< bool > &put_here) const
unsigned char uint8
Definition: MsgTools.h:12
uint32 size() const
Definition: MsgHeader.h:46
std::string hostName() const
uint32 code() const
Definition: MsgHeader.h:45
uint8 * startAddress() const
Definition: EventMessage.h:80
uint32 droppedEventsCount() const
Definition: EventMessage.cc:98
uint32 adler32_chksum() const
Definition: EventMessage.h:97
unsigned long long uint64
Definition: MsgTools.h:15
unsigned char char_uint32[sizeof(uint32)]
Definition: MsgTools.h:17
uint32 eventLength() const
Definition: EventMessage.h:81
unsigned int uint32
Definition: MsgTools.h:14