CMS 3D CMS Logo

FRDEventMessage.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_FRDEventMessage_h
2 #define IOPool_Streamer_FRDEventMessage_h
3 
71 
72 #include <array>
73 
82 };
83 
91 };
92 
102 };
103 
112 };
113 
119 };
120 
124 };
125 
127 
128 constexpr size_t FRDHeaderMaxVersion = 6;
129 constexpr std::array<uint32, FRDHeaderMaxVersion + 1> FRDHeaderVersionSize{{0,
130  2 * sizeof(uint32),
131  (4 + 1024) * sizeof(uint32),
132  7 * sizeof(uint32),
133  8 * sizeof(uint32),
134  6 * sizeof(uint32),
135  6 * sizeof(uint32)}};
136 
138 public:
139  FRDEventMsgView(void* buf);
140 
141  uint8* startAddress() const { return buf_; }
142  void* payload() const { return payload_; }
143  uint32 size() const { return size_; }
144 
145  uint16 version() const { return version_; }
146  uint16 flags() const { return flags_; }
147  uint32 run() const { return run_; }
148  uint32 lumi() const { return lumi_; }
149  uint64 event() const { return event_; }
150  uint32 eventSize() const { return eventSize_; }
151  uint32 paddingSize() const { return paddingSize_; }
152  uint32 adler32() const { return adler32_; }
153  uint32 crc32c() const { return crc32c_; }
154 
155  bool isRealData() const { return !(flags_ & FRDEVENT_MASK_ISGENDATA); }
156 
157 private:
159  void* payload_;
170 };
171 
172 #endif
FRDEventHeader_V6::crc32c_
uint32 crc32c_
Definition: FRDEventMessage.h:81
FRDEventHeader_V3::run_
uint32 run_
Definition: FRDEventMessage.h:106
FRDEventMsgView::flags_
uint16 flags_
Definition: FRDEventMessage.h:162
FRDEventHeader_V4::eventHigh_
uint32 eventHigh_
Definition: FRDEventMessage.h:98
FRDEventHeader_V2::run_
uint32 run_
Definition: FRDEventMessage.h:116
FRDEventMsgView
Definition: FRDEventMessage.h:137
FRDEventHeader_V5::lumi_
uint32 lumi_
Definition: FRDEventMessage.h:87
uint8
unsigned char uint8
Definition: MsgTools.h:11
FRDEventHeader_V3::lumi_
uint32 lumi_
Definition: FRDEventMessage.h:107
FRDEventMsgView::run_
uint32 run_
Definition: FRDEventMessage.h:163
FRDEventHeader_V5
Definition: FRDEventMessage.h:84
FRDEventHeader_V2::lumi_
uint32 lumi_
Definition: FRDEventMessage.h:117
FRDEventHeader_V6::version_
uint16 version_
Definition: FRDEventMessage.h:75
FRDEventMsgView::paddingSize_
uint32 paddingSize_
Definition: FRDEventMessage.h:167
FRDEventMsgView::adler32
uint32 adler32() const
Definition: FRDEventMessage.h:152
FRDEventHeader_V2::event_
uint32 event_
Definition: FRDEventMessage.h:118
FRDEventMsgView::crc32c
uint32 crc32c() const
Definition: FRDEventMessage.h:153
FRDHeaderVersionSize
constexpr std::array< uint32, FRDHeaderMaxVersion+1 > FRDHeaderVersionSize
Definition: FRDEventMessage.h:129
FRDEventMsgView::run
uint32 run() const
Definition: FRDEventMessage.h:147
FRDEventMsgView::size
uint32 size() const
Definition: FRDEventMessage.h:143
uint32
unsigned int uint32
Definition: MsgTools.h:13
FRDEventMsgView::paddingSize
uint32 paddingSize() const
Definition: FRDEventMessage.h:151
FRDEVENT_MASK_ISGENDATA
const uint16 FRDEVENT_MASK_ISGENDATA
Definition: FRDEventMessage.h:126
FRDEventMsgView::buf_
uint8 * buf_
Definition: FRDEventMessage.h:158
FRDEventHeader_V6::run_
uint32 run_
Definition: FRDEventMessage.h:77
FRDEventMsgView::startAddress
uint8 * startAddress() const
Definition: FRDEventMessage.h:141
FRDEventHeader_V6::eventSize_
uint32 eventSize_
Definition: FRDEventMessage.h:80
FRDEventHeader_V6::flags_
uint16 flags_
Definition: FRDEventMessage.h:76
FRDEventHeader_V4::adler32_
uint32 adler32_
Definition: FRDEventMessage.h:101
FRDEventHeader_V4::lumi_
uint32 lumi_
Definition: FRDEventMessage.h:96
FRDHeaderMaxVersion
constexpr size_t FRDHeaderMaxVersion
Definition: FRDEventMessage.h:128
FRDEventMsgView::event_
uint64 event_
Definition: FRDEventMessage.h:165
uint16
unsigned short uint16
Definition: MsgTools.h:12
FRDEventHeader_V4::version_
uint32 version_
Definition: FRDEventMessage.h:94
FRDEventHeader_V4::eventSize_
uint32 eventSize_
Definition: FRDEventMessage.h:99
FRDEventHeader_V4
Definition: FRDEventMessage.h:93
FRDEventMsgView::isRealData
bool isRealData() const
Definition: FRDEventMessage.h:155
FRDEventHeader_V2
Definition: FRDEventMessage.h:114
FRDEventHeader_V5::run_
uint32 run_
Definition: FRDEventMessage.h:86
FRDEventHeader_V5::version_
uint32 version_
Definition: FRDEventMessage.h:85
FRDEventMsgView::lumi
uint32 lumi() const
Definition: FRDEventMessage.h:148
FRDEventMsgView::version_
uint16 version_
Definition: FRDEventMessage.h:161
FRDEventMsgView::FRDEventMsgView
FRDEventMsgView(void *buf)
Definition: FRDEventMessage.cc:18
FRDEventMsgView::payload_
void * payload_
Definition: FRDEventMessage.h:159
FRDEventMsgView::version
uint16 version() const
Definition: FRDEventMessage.h:145
MsgTools.h
FRDEventHeader_V3::event_
uint32 event_
Definition: FRDEventMessage.h:108
FRDEventHeader_V3::adler32_
uint32 adler32_
Definition: FRDEventMessage.h:111
FRDEventHeader_V3
Definition: FRDEventMessage.h:104
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
FRDEventHeader_V1
Definition: FRDEventMessage.h:121
FRDEventMsgView::eventSize
uint32 eventSize() const
Definition: FRDEventMessage.h:150
FRDEventHeader_V1::event_
uint32 event_
Definition: FRDEventMessage.h:123
FRDEventHeader_V5::event_
uint32 event_
Definition: FRDEventMessage.h:88
FRDEventHeader_V3::paddingSize_
uint32 paddingSize_
Definition: FRDEventMessage.h:110
FRDEventMsgView::lumi_
uint32 lumi_
Definition: FRDEventMessage.h:164
FRDEventMsgView::crc32c_
uint32 crc32c_
Definition: FRDEventMessage.h:169
FRDEventHeader_V1::run_
uint32 run_
Definition: FRDEventMessage.h:122
uint64
unsigned long long uint64
Definition: MsgTools.h:14
FRDEventHeader_V4::run_
uint32 run_
Definition: FRDEventMessage.h:95
FRDEventMsgView::size_
uint32 size_
Definition: FRDEventMessage.h:160
FRDEventHeader_V3::version_
uint32 version_
Definition: FRDEventMessage.h:105
FRDEventMsgView::flags
uint16 flags() const
Definition: FRDEventMessage.h:146
FRDEventHeader_V4::paddingSize_
uint32 paddingSize_
Definition: FRDEventMessage.h:100
FRDEventMsgView::payload
void * payload() const
Definition: FRDEventMessage.h:142
FRDEventMsgView::adler32_
uint32 adler32_
Definition: FRDEventMessage.h:168
FRDEventHeader_V2::version_
uint32 version_
Definition: FRDEventMessage.h:115
FRDEventHeader_V6::event_
uint32 event_
Definition: FRDEventMessage.h:79
FRDEventHeader_V6::lumi_
uint32 lumi_
Definition: FRDEventMessage.h:78
FRDEventHeader_V5::crc32c_
uint32 crc32c_
Definition: FRDEventMessage.h:90
FRDEventHeader_V3::eventSize_
uint32 eventSize_
Definition: FRDEventMessage.h:109
FRDEventHeader_V6
Definition: FRDEventMessage.h:74
FRDEventMsgView::eventSize_
uint32 eventSize_
Definition: FRDEventMessage.h:166
FRDEventHeader_V4::eventLow_
uint32 eventLow_
Definition: FRDEventMessage.h:97
FRDEventMsgView::event
uint64 event() const
Definition: FRDEventMessage.h:149
FRDEventHeader_V5::eventSize_
uint32 eventSize_
Definition: FRDEventMessage.h:89