src
IOPool
Streamer
interface
MsgHeader.h
Go to the documentation of this file.
1
#ifndef IOPool_Streamer_MsgHeader_h
2
#define IOPool_Streamer_MsgHeader_h
3
4
#include "
IOPool/Streamer/interface/MsgTools.h
"
5
// as it is in memory of file
6
struct
Header
{
7
Header
(
uint32
code,
uint32
size
) :
code_
(code) {
convert
(
size
,
size_
); }
8
9
uint8
code_
;
// type of the message
10
char_uint32
size_
;
// of entire message including all headers
11
12
// 20-Jul-2006, KAB: added enumeration for message types
13
enum
Codes
{
14
INVALID
= 0,
15
INIT
= 1,
16
EVENT
= 2,
17
DONE
= 3,
// EOFRECORD = 4 is no longer used
18
HEADER_REQUEST
= 5,
19
EVENT_REQUEST
= 6,
20
CONS_REG_REQUEST
= 7,
21
CONS_REG_RESPONSE
= 8,
22
DQM_INIT
= 9,
23
DQM_EVENT
= 10,
24
DQMEVENT_REQUEST
= 11,
25
INIT_SET
= 12,
26
NEW_INIT_AVAILABLE
= 13,
27
ERROR_EVENT
= 14,
28
FILE_CLOSE_REQUEST
= 15,
29
SPARE1
= 16,
30
SPARE2
= 17,
31
PADDING
= 255
//reserved for padding
32
};
33
};
34
35
// as we need to see it
36
class
HeaderView
{
37
public
:
38
HeaderView
(
void
*
buf
) {
39
Header
*
h
= (
Header
*)
buf
;
40
code_
=
h
->code_;
41
size_
=
convert32
(
h
->size_);
42
}
43
44
uint32
code
()
const
{
return
code_
; }
45
uint32
size
()
const
{
return
size_
; }
46
47
private
:
48
uint32
code_
;
49
uint32
size_
;
50
};
51
52
#endif
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Header::FILE_CLOSE_REQUEST
Definition:
MsgHeader.h:28
Header::EVENT_REQUEST
Definition:
MsgHeader.h:19
Header::DQM_INIT
Definition:
MsgHeader.h:22
Header
Definition:
MsgHeader.h:6
Header::CONS_REG_REQUEST
Definition:
MsgHeader.h:20
Header::HEADER_REQUEST
Definition:
MsgHeader.h:18
Header::Codes
Codes
Definition:
MsgHeader.h:13
HeaderView::code_
uint32 code_
Definition:
MsgHeader.h:48
HeaderView::HeaderView
HeaderView(void *buf)
Definition:
MsgHeader.h:38
Header::SPARE2
Definition:
MsgHeader.h:30
HeaderView::size
uint32 size() const
Definition:
MsgHeader.h:45
Header::INIT_SET
Definition:
MsgHeader.h:25
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:153
Header::DQMEVENT_REQUEST
Definition:
MsgHeader.h:24
fileCollector.convert
def convert(infile, ofile)
Definition:
fileCollector.py:47
Header::DQM_EVENT
Definition:
MsgHeader.h:23
uint32
unsigned int uint32
Definition:
MsgTools.h:13
Header::INVALID
Definition:
MsgHeader.h:14
char_uint32
unsigned char char_uint32[sizeof(uint32)]
Definition:
MsgTools.h:16
Header::DONE
Definition:
MsgHeader.h:17
HeaderView::code
uint32 code() const
Definition:
MsgHeader.h:44
Header::code_
uint8 code_
Definition:
MsgHeader.h:9
Header::size_
char_uint32 size_
Definition:
MsgHeader.h:10
Header::NEW_INIT_AVAILABLE
Definition:
MsgHeader.h:26
Header::ERROR_EVENT
Definition:
MsgHeader.h:27
convert32
uint32 convert32(char_uint32 v)
Definition:
MsgTools.h:28
uint8
unsigned char uint8
Definition:
MsgTools.h:11
Header::INIT
Definition:
MsgHeader.h:15
Header::SPARE1
Definition:
MsgHeader.h:29
Header::PADDING
Definition:
MsgHeader.h:31
Header::CONS_REG_RESPONSE
Definition:
MsgHeader.h:21
MsgTools.h
HeaderView
Definition:
MsgHeader.h:36
HeaderView::size_
uint32 size_
Definition:
MsgHeader.h:49
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
Header::EVENT
Definition:
MsgHeader.h:16
Header::Header
Header(uint32 code, uint32 size)
Definition:
MsgHeader.h:7
Generated for CMSSW Reference Manual by
1.8.14