CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventMessage.h
Go to the documentation of this file.
1 
53 #ifndef IOPool_Streamer_EventMessage_h
54 #define IOPool_Streamer_EventMessage_h
55 
58 
59 // ----------------------- event message ------------------------
60 
61 struct EventHeader
62 {
71 };
72 
74 {
75 public:
76 
77  EventMsgView(void* buf);
78 
79  uint32 code() const { return head_.code(); }
80  uint32 size() const { return head_.size(); }
81 
82  const uint8* eventData() const { return event_start_; }
83  uint8* startAddress() const { return buf_; }
84  uint32 eventLength() const { return event_len_; }
85  uint32 headerSize() const {return event_start_-buf_;}
86  uint32 protocolVersion() const;
87  uint32 run() const;
88  uint64 event() const;
89  uint32 lumi() const;
90  uint32 origDataSize() const;
91  uint32 outModId() const;
92  uint32 droppedEventsCount() const;
93 
94  void l1TriggerBits(std::vector<bool>& put_here) const;
95  void hltTriggerBits(uint8* put_here) const;
96 
97  uint32 hltCount() const {return hlt_bits_count_;}
98  uint32 l1Count() const {return l1_bits_count_;}
100  std::string hostName() const;
102 
103 private:
106 
117 };
118 
119 #endif
uint32 lumi() const
Definition: EventMessage.cc:85
const uint8 * eventData() const
Definition: EventMessage.h:82
uint8 * l1_bits_start_
Definition: EventMessage.h:109
ULong64_t uint64
void hltTriggerBits(uint8 *put_here) const
uint8 * startAddress() const
Definition: EventMessage.h:83
std::string hostName() const
char_uint32 lumi_
Definition: EventMessage.h:67
char_uint32 origDataSize_
Definition: EventMessage.h:68
uint32 outModId() const
Definition: EventMessage.cc:97
uint32 code() const
Definition: MsgHeader.h:34
EventMsgView(void *buf)
Definition: EventMessage.cc:5
uint32 run() const
Definition: EventMessage.cc:73
uint32 adler32_chksum() const
Definition: EventMessage.h:99
uint32 eventLength() const
Definition: EventMessage.h:84
uint8 * event_start_
Definition: EventMessage.h:111
uint32 headerSize() const
Definition: EventMessage.h:85
uint32 hlt_bits_count_
Definition: EventMessage.h:108
uint32 code() const
Definition: EventMessage.h:79
uint32 l1_bits_count_
Definition: EventMessage.h:110
uint8 protocolVersion_
Definition: EventMessage.h:64
Header header_
Definition: EventMessage.h:63
uint32 hostName_len() const
Definition: EventMessage.h:101
char_uint32 droppedEventsCount_
Definition: EventMessage.h:70
uint8 * host_name_start_
Definition: EventMessage.h:114
unsigned int uint32
Definition: MsgTools.h:13
uint32 l1Count() const
Definition: EventMessage.h:98
unsigned char char_uint32[sizeof(uint32)]
Definition: MsgTools.h:16
char_uint32 run_
Definition: EventMessage.h:65
uint32 adler32_chksum_
Definition: EventMessage.h:113
char_uint64 event_
Definition: EventMessage.h:66
unsigned char char_uint64[sizeof(uint64)]
Definition: MsgTools.h:15
uint32 size() const
Definition: MsgHeader.h:35
uint8 * hlt_bits_start_
Definition: EventMessage.h:107
uint32 hltCount() const
Definition: EventMessage.h:97
uint32 droppedEventsCount() const
uint32 size() const
Definition: EventMessage.h:80
uint32 origDataSize() const
Definition: EventMessage.cc:91
char_uint32 outModId_
Definition: EventMessage.h:69
HeaderView head_
Definition: EventMessage.h:105
unsigned char uint8
Definition: MsgTools.h:11
uint32 host_name_len_
Definition: EventMessage.h:115
uint8 * buf_
Definition: EventMessage.h:104
uint32 event_len_
Definition: EventMessage.h:112
uint64 event() const
Definition: EventMessage.cc:79
void l1TriggerBits(std::vector< bool > &put_here) const
uint32 protocolVersion() const
Definition: EventMessage.cc:67