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 
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 
91  void l1TriggerBits(std::vector<bool>& put_here) const;
92  void hltTriggerBits(uint8* put_here) const;
93 
94  uint32 hltCount() const { return hlt_bits_count_; }
95  uint32 l1Count() const { return l1_bits_count_; }
97  std::string hostName() const;
98  uint32 hostName_len() const { return host_name_len_; }
99 
100 private:
103 
114 };
115 
116 #endif
EventHeader::origDataSize_
char_uint32 origDataSize_
Definition: EventMessage.h:67
char_uint64
unsigned char char_uint64[sizeof(uint64)]
Definition: MsgTools.h:15
Header
Definition: MsgHeader.h:6
uint8
unsigned char uint8
Definition: MsgTools.h:11
EventMsgView::l1_bits_count_
uint32 l1_bits_count_
Definition: EventMessage.h:107
EventMsgView::droppedEventsCount
uint32 droppedEventsCount() const
Definition: EventMessage.cc:96
EventMsgView::adler32_chksum_
uint32 adler32_chksum_
Definition: EventMessage.h:110
EventMsgView::outModId
uint32 outModId() const
Definition: EventMessage.cc:91
EventMsgView::v2Detected_
bool v2Detected_
Definition: EventMessage.h:113
EventHeader
Definition: EventHeader.h:18
MsgHeader.h
EventMsgView::startAddress
uint8 * startAddress() const
Definition: EventMessage.h:80
char_uint32
unsigned char char_uint32[sizeof(uint32)]
Definition: MsgTools.h:16
EventMsgView::buf_
uint8 * buf_
Definition: EventMessage.h:101
EventMsgView
Definition: EventMessage.h:72
uint32
unsigned int uint32
Definition: MsgTools.h:13
EventMsgView::origDataSize
uint32 origDataSize() const
Definition: EventMessage.cc:86
EventHeader::lumi_
char_uint32 lumi_
Definition: EventMessage.h:66
EventMsgView::hltCount
uint32 hltCount() const
Definition: EventMessage.h:94
EventHeader::protocolVersion_
uint8 protocolVersion_
Definition: EventMessage.h:63
EventMsgView::adler32_chksum
uint32 adler32_chksum() const
Definition: EventMessage.h:96
EventMsgView::code
uint32 code() const
Definition: EventMessage.h:76
EventMsgView::hltTriggerBits
void hltTriggerBits(uint8 *put_here) const
Definition: EventMessage.cc:110
EventMsgView::protocolVersion
uint32 protocolVersion() const
Definition: EventMessage.cc:66
EventMsgView::run
uint32 run() const
Definition: EventMessage.cc:71
HeaderView
Definition: MsgHeader.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EventMsgView::hostName_len
uint32 hostName_len() const
Definition: EventMessage.h:98
EventHeader::droppedEventsCount_
char_uint32 droppedEventsCount_
Definition: EventMessage.h:69
EventMsgView::hostName
std::string hostName() const
Definition: EventMessage.cc:121
EventMsgView::event
uint64 event() const
Definition: EventMessage.cc:76
EventMsgView::l1_bits_start_
uint8 * l1_bits_start_
Definition: EventMessage.h:106
EventMsgView::eventLength
uint32 eventLength() const
Definition: EventMessage.h:81
EventMsgView::l1Count
uint32 l1Count() const
Definition: EventMessage.h:95
EventHeader::run_
char_uint32 run_
Definition: EventMessage.h:64
EventMsgView::host_name_len_
uint32 host_name_len_
Definition: EventMessage.h:112
HeaderView::code
uint32 code() const
Definition: MsgHeader.h:43
MsgTools.h
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
EventMsgView::size
uint32 size() const
Definition: EventMessage.h:77
EventHeader::header_
Header header_
Definition: EventMessage.h:62
EventHeader::event_
char_uint64 event_
Definition: EventMessage.h:65
HeaderView::size
uint32 size() const
Definition: MsgHeader.h:44
EventMsgView::event_start_
uint8 * event_start_
Definition: EventMessage.h:108
EventMsgView::hlt_bits_count_
uint32 hlt_bits_count_
Definition: EventMessage.h:105
EventMsgView::headerSize
uint32 headerSize() const
Definition: EventMessage.h:82
uint64
unsigned long long uint64
Definition: MsgTools.h:14
EventMsgView::l1TriggerBits
void l1TriggerBits(std::vector< bool > &put_here) const
Definition: EventMessage.cc:102
EventMsgView::EventMsgView
EventMsgView(void *buf)
Definition: EventMessage.cc:4
EventMsgView::head_
HeaderView head_
Definition: EventMessage.h:102
EventMsgView::host_name_start_
uint8 * host_name_start_
Definition: EventMessage.h:111
EventMsgView::lumi
uint32 lumi() const
Definition: EventMessage.cc:81
EventMsgView::event_len_
uint32 event_len_
Definition: EventMessage.h:109
EventMsgView::hlt_bits_start_
uint8 * hlt_bits_start_
Definition: EventMessage.h:104
EventHeader::outModId_
char_uint32 outModId_
Definition: EventMessage.h:68
EventMsgView::eventData
const uint8 * eventData() const
Definition: EventMessage.h:79