Belle II Software light-2406-ragdoll
EvtHeader Struct Reference

Header structure of streamed object list. More...

#include <EvtMessage.h>

Public Member Functions

 EvtHeader (UInt_t aSize, ERecordType aRectype)
 set number of words and record type.
 

Public Attributes

UInt_t size
 Number of words in this record.
 
ERecordType rectype
 Type of message.
 
Long64_t time_sec {0}
 seconds part of timeval.
 
Long64_t time_usec {0}
 micro seconds part of timeval.
 
UInt_t src {(UInt_t) - 1}
 source IP.
 
UInt_t dest {(UInt_t) - 1}
 destination IP.
 
UInt_t flags {0}
 flags concerning the content of the message.
 
UInt_t nObjects {0}
 number of objects in message.
 
UInt_t nArrays {0}
 number of objects in message.
 
UInt_t reserved [6] {0}
 Reserved for future use.
 
UInt_t version {0xBEEFED01}
 version field.
 

Detailed Description

Header structure of streamed object list.

Definition at line 28 of file EvtMessage.h.

Constructor & Destructor Documentation

◆ EvtHeader()

EvtHeader ( UInt_t  aSize,
ERecordType  aRectype 
)
inline

set number of words and record type.

Definition at line 30 of file EvtMessage.h.

30: size(aSize), rectype(aRectype) {}
ERecordType rectype
Type of message.
Definition: EvtMessage.h:32
UInt_t size
Number of words in this record.
Definition: EvtMessage.h:31

Member Data Documentation

◆ dest

UInt_t dest {(UInt_t) - 1}

destination IP.

Definition at line 36 of file EvtMessage.h.

◆ flags

UInt_t flags {0}

flags concerning the content of the message.

Usually 0 but can be any combination of of EvtMessage::EMessageFlags.

Definition at line 37 of file EvtMessage.h.

◆ nArrays

UInt_t nArrays {0}

number of objects in message.

Definition at line 40 of file EvtMessage.h.

◆ nObjects

UInt_t nObjects {0}

number of objects in message.

Definition at line 39 of file EvtMessage.h.

◆ rectype

ERecordType rectype

Type of message.

Definition at line 32 of file EvtMessage.h.

◆ reserved

UInt_t reserved[6] {0}

Reserved for future use.

Don't ever use these directly.

Definition at line 41 of file EvtMessage.h.

◆ size

UInt_t size

Number of words in this record.

Definition at line 31 of file EvtMessage.h.

◆ src

UInt_t src {(UInt_t) - 1}

source IP.

Definition at line 35 of file EvtMessage.h.

◆ time_sec

Long64_t time_sec {0}

seconds part of timeval.

Definition at line 33 of file EvtMessage.h.

◆ time_usec

Long64_t time_usec {0}

micro seconds part of timeval.

Definition at line 34 of file EvtMessage.h.

◆ version

UInt_t version {0xBEEFED01}

version field.

Previously the reserved fields were not initialized properly so they could contain random garbage which makes it very hard to check for anything. Now we send 0xBEEFED + 8bit version to indicate that yes, this is indeed a valid version and not just random garbage. Chance of collision is low but there is nothing else we can do except breaking compatibility with old files.

Definition at line 48 of file EvtMessage.h.


The documentation for this struct was generated from the following file: