IOPool
Streamer
interface
FRDEventMessage.h
Go to the documentation of this file.
1
#ifndef IOPool_Streamer_FRDEventMessage_h
2
#define IOPool_Streamer_FRDEventMessage_h
3
58
#include "
IOPool/Streamer/interface/MsgTools.h
"
59
60
struct
FRDEventHeader_V5
{
61
uint32
version_
;
62
uint32
run_
;
63
uint32
lumi_
;
64
uint32
eventLow_
;
65
uint32
eventHigh_
;
66
uint32
eventSize_
;
67
uint32
paddingSize_
;
68
uint32
crc32c_
;
69
};
70
71
struct
FRDEventHeader_V4
{
72
uint32
version_
;
73
uint32
run_
;
74
uint32
lumi_
;
75
uint32
eventLow_
;
76
uint32
eventHigh_
;
77
uint32
eventSize_
;
78
uint32
paddingSize_
;
79
uint32
adler32_
;
80
};
81
82
struct
FRDEventHeader_V3
{
83
uint32
version_
;
84
uint32
run_
;
85
uint32
lumi_
;
86
uint32
event_
;
87
uint32
eventSize_
;
88
uint32
paddingSize_
;
89
uint32
adler32_
;
90
};
91
92
struct
FRDEventHeader_V2
{
93
uint32
version_
;
94
uint32
run_
;
95
uint32
lumi_
;
96
uint32
event_
;
97
};
98
99
struct
FRDEventHeader_V1
{
100
uint32
run_
;
101
uint32
event_
;
102
};
103
104
const
uint32
FRDHeaderVersionSize
[6] = {
105
0, 2 *
sizeof
(
uint32
), (4 + 1024) *
sizeof
(
uint32
), 7 *
sizeof
(
uint32
), 8 *
sizeof
(
uint32
), 6 *
sizeof
(
uint32
)};
106
107
class
FRDEventMsgView
{
108
public
:
109
FRDEventMsgView
(
void
*
buf
);
110
111
uint8
*
startAddress
()
const
{
return
buf_
; }
112
void
*
payload
()
const
{
return
payload_
; }
113
uint32
size
()
const
{
return
size_
; }
114
115
uint32
version
()
const
{
return
version_
; }
116
uint32
run
()
const
{
return
run_
; }
117
uint32
lumi
()
const
{
return
lumi_
; }
118
uint64
event
()
const
{
return
event_
; }
119
uint32
eventSize
()
const
{
return
eventSize_
; }
120
uint32
paddingSize
()
const
{
return
paddingSize_
; }
121
uint32
adler32
()
const
{
return
adler32_
; }
122
uint32
crc32c
()
const
{
return
crc32c_
; }
123
124
private
:
125
uint8
*
buf_
;
126
void
*
payload_
;
127
uint32
size_
;
128
uint32
version_
;
129
uint32
run_
;
130
uint32
lumi_
;
131
uint64
event_
;
132
uint32
eventSize_
;
133
uint32
paddingSize_
;
134
uint32
adler32_
;
135
uint32
crc32c_
;
136
};
137
138
#endif
FRDEventHeader_V3::run_
uint32 run_
Definition:
FRDEventMessage.h:84
FRDEventHeader_V4::eventHigh_
uint32 eventHigh_
Definition:
FRDEventMessage.h:76
FRDEventHeader_V2::run_
uint32 run_
Definition:
FRDEventMessage.h:94
FRDEventMsgView
Definition:
FRDEventMessage.h:107
FRDEventHeader_V5::lumi_
uint32 lumi_
Definition:
FRDEventMessage.h:63
uint8
unsigned char uint8
Definition:
MsgTools.h:11
FRDEventHeader_V3::lumi_
uint32 lumi_
Definition:
FRDEventMessage.h:85
FRDEventMsgView::run_
uint32 run_
Definition:
FRDEventMessage.h:129
FRDEventHeader_V5
Definition:
FRDEventMessage.h:60
FRDEventHeader_V2::lumi_
uint32 lumi_
Definition:
FRDEventMessage.h:95
FRDEventMsgView::paddingSize_
uint32 paddingSize_
Definition:
FRDEventMessage.h:133
FRDEventMsgView::adler32
uint32 adler32() const
Definition:
FRDEventMessage.h:121
FRDEventHeader_V5::eventLow_
uint32 eventLow_
Definition:
FRDEventMessage.h:64
FRDEventHeader_V2::event_
uint32 event_
Definition:
FRDEventMessage.h:96
FRDEventMsgView::crc32c
uint32 crc32c() const
Definition:
FRDEventMessage.h:122
FRDHeaderVersionSize
const uint32 FRDHeaderVersionSize[6]
Definition:
FRDEventMessage.h:104
FRDEventMsgView::run
uint32 run() const
Definition:
FRDEventMessage.h:116
FRDEventMsgView::size
uint32 size() const
Definition:
FRDEventMessage.h:113
uint32
unsigned int uint32
Definition:
MsgTools.h:13
FRDEventMsgView::paddingSize
uint32 paddingSize() const
Definition:
FRDEventMessage.h:120
FRDEventMsgView::buf_
uint8 * buf_
Definition:
FRDEventMessage.h:125
FRDEventMsgView::startAddress
uint8 * startAddress() const
Definition:
FRDEventMessage.h:111
FRDEventHeader_V4::adler32_
uint32 adler32_
Definition:
FRDEventMessage.h:79
FRDEventHeader_V4::lumi_
uint32 lumi_
Definition:
FRDEventMessage.h:74
FRDEventMsgView::event_
uint64 event_
Definition:
FRDEventMessage.h:131
FRDEventHeader_V5::eventHigh_
uint32 eventHigh_
Definition:
FRDEventMessage.h:65
FRDEventHeader_V4::version_
uint32 version_
Definition:
FRDEventMessage.h:72
FRDEventHeader_V4::eventSize_
uint32 eventSize_
Definition:
FRDEventMessage.h:77
FRDEventHeader_V4
Definition:
FRDEventMessage.h:71
FRDEventHeader_V2
Definition:
FRDEventMessage.h:92
FRDEventHeader_V5::run_
uint32 run_
Definition:
FRDEventMessage.h:62
FRDEventHeader_V5::version_
uint32 version_
Definition:
FRDEventMessage.h:61
FRDEventMsgView::lumi
uint32 lumi() const
Definition:
FRDEventMessage.h:117
FRDEventMsgView::FRDEventMsgView
FRDEventMsgView(void *buf)
Definition:
FRDEventMessage.cc:17
FRDEventMsgView::payload_
void * payload_
Definition:
FRDEventMessage.h:126
MsgTools.h
FRDEventHeader_V3::event_
uint32 event_
Definition:
FRDEventMessage.h:86
FRDEventHeader_V3::adler32_
uint32 adler32_
Definition:
FRDEventMessage.h:89
FRDEventHeader_V3
Definition:
FRDEventMessage.h:82
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:154
FRDEventHeader_V1
Definition:
FRDEventMessage.h:99
FRDEventMsgView::version_
uint32 version_
Definition:
FRDEventMessage.h:128
FRDEventMsgView::eventSize
uint32 eventSize() const
Definition:
FRDEventMessage.h:119
FRDEventMsgView::version
uint32 version() const
Definition:
FRDEventMessage.h:115
FRDEventHeader_V1::event_
uint32 event_
Definition:
FRDEventMessage.h:101
FRDEventHeader_V5::paddingSize_
uint32 paddingSize_
Definition:
FRDEventMessage.h:67
FRDEventHeader_V3::paddingSize_
uint32 paddingSize_
Definition:
FRDEventMessage.h:88
FRDEventMsgView::lumi_
uint32 lumi_
Definition:
FRDEventMessage.h:130
FRDEventMsgView::crc32c_
uint32 crc32c_
Definition:
FRDEventMessage.h:135
FRDEventHeader_V1::run_
uint32 run_
Definition:
FRDEventMessage.h:100
uint64
unsigned long long uint64
Definition:
MsgTools.h:14
FRDEventHeader_V4::run_
uint32 run_
Definition:
FRDEventMessage.h:73
FRDEventMsgView::size_
uint32 size_
Definition:
FRDEventMessage.h:127
FRDEventHeader_V3::version_
uint32 version_
Definition:
FRDEventMessage.h:83
FRDEventHeader_V4::paddingSize_
uint32 paddingSize_
Definition:
FRDEventMessage.h:78
FRDEventMsgView::payload
void * payload() const
Definition:
FRDEventMessage.h:112
FRDEventMsgView::adler32_
uint32 adler32_
Definition:
FRDEventMessage.h:134
FRDEventHeader_V2::version_
uint32 version_
Definition:
FRDEventMessage.h:93
FRDEventHeader_V5::crc32c_
uint32 crc32c_
Definition:
FRDEventMessage.h:68
FRDEventHeader_V3::eventSize_
uint32 eventSize_
Definition:
FRDEventMessage.h:87
FRDEventMsgView::eventSize_
uint32 eventSize_
Definition:
FRDEventMessage.h:132
FRDEventHeader_V4::eventLow_
uint32 eventLow_
Definition:
FRDEventMessage.h:75
FRDEventMsgView::event
uint64 event() const
Definition:
FRDEventMessage.h:118
FRDEventHeader_V5::eventSize_
uint32 eventSize_
Definition:
FRDEventMessage.h:66
Generated for CMSSW Reference Manual by
1.8.16