Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
8
Header
(
uint32
code,
uint32
size
):
code_
(code)
9
{
convert
(size,
size_
); }
10
11
uint8
code_
;
// type of the message
12
char_uint32
size_
;
// of entire message including all headers
13
14
// 20-Jul-2006, KAB: added enumeration for message types
15
enum
Codes
{
INVALID
= 0,
INIT
= 1,
EVENT
= 2,
DONE
= 3,
// EOFRECORD = 4 is no longer used
16
HEADER_REQUEST
= 5,
EVENT_REQUEST
= 6,
17
CONS_REG_REQUEST
= 7,
CONS_REG_RESPONSE
= 8,
18
DQM_INIT
= 9,
DQM_EVENT
= 10,
DQMEVENT_REQUEST
= 11,
19
INIT_SET
= 12,
NEW_INIT_AVAILABLE
= 13,
ERROR_EVENT
= 14,
20
FILE_CLOSE_REQUEST
= 15,
SPARE1
= 16,
SPARE2
= 17 };
21
};
22
23
// as we need to see it
24
class
HeaderView
25
{
26
public
:
27
HeaderView
(
void
* buf)
28
{
29
Header
*
h
= (
Header
*)buf;
30
code_
= h->
code_
;
31
size_
=
convert32
(h->
size_
);
32
}
33
34
uint32
code
()
const
{
return
code_
; }
35
uint32
size
()
const
{
return
size_
; }
36
private
:
37
uint32
code_
;
38
uint32
size_
;
39
};
40
41
#endif
Header::FILE_CLOSE_REQUEST
Definition:
MsgHeader.h:20
Header::EVENT_REQUEST
Definition:
MsgHeader.h:16
Header::DQM_INIT
Definition:
MsgHeader.h:18
Header
Definition:
MsgHeader.h:6
Header::CONS_REG_REQUEST
Definition:
MsgHeader.h:17
Header::HEADER_REQUEST
Definition:
MsgHeader.h:16
HeaderView::code
uint32 code() const
Definition:
MsgHeader.h:34
Header::Codes
Codes
Definition:
MsgHeader.h:15
HeaderView::code_
uint32 code_
Definition:
MsgHeader.h:37
HeaderView::HeaderView
HeaderView(void *buf)
Definition:
MsgHeader.h:27
Header::SPARE2
Definition:
MsgHeader.h:20
Header::INIT_SET
Definition:
MsgHeader.h:19
Header::DQMEVENT_REQUEST
Definition:
MsgHeader.h:18
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::DQM_EVENT
Definition:
MsgHeader.h:18
uint32
unsigned int uint32
Definition:
MsgTools.h:13
Header::INVALID
Definition:
MsgHeader.h:15
char_uint32
unsigned char char_uint32[sizeof(uint32)]
Definition:
MsgTools.h:16
Header::DONE
Definition:
MsgHeader.h:15
Header::code_
uint8 code_
Definition:
MsgHeader.h:11
Header::size_
char_uint32 size_
Definition:
MsgHeader.h:12
HeaderView::size
uint32 size() const
Definition:
MsgHeader.h:35
Header::NEW_INIT_AVAILABLE
Definition:
MsgHeader.h:19
Header::ERROR_EVENT
Definition:
MsgHeader.h:19
convert32
uint32 convert32(char_uint32 v)
Definition:
MsgTools.h:30
uint8
unsigned char uint8
Definition:
MsgTools.h:11
Header::INIT
Definition:
MsgHeader.h:15
Header::SPARE1
Definition:
MsgHeader.h:20
Header::CONS_REG_RESPONSE
Definition:
MsgHeader.h:17
MsgTools.h
HeaderView
Definition:
MsgHeader.h:24
HeaderView::size_
uint32 size_
Definition:
MsgHeader.h:38
Header::EVENT
Definition:
MsgHeader.h:15
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:442
fileCollector.convert
def convert
Definition:
fileCollector.py:45
Header::Header
Header(uint32 code, uint32 size)
Definition:
MsgHeader.h:8
Generated for CMSSW Reference Manual by
1.8.5