Belle II Software  release-08-01-10
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. More...
 
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. More...
 
UInt_t version {0xBEEFED01}
 version field. More...
 

Detailed Description

Header structure of streamed object list.

Definition at line 28 of file EvtMessage.h.

Member Data Documentation

◆ 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.

◆ reserved

UInt_t reserved[6] {0}

Reserved for future use.

Don't ever use these directly.

Definition at line 41 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: