Project
Loading...
Searching...
No Matches
o2::tpc::TPCSectorHeader Struct Reference

#include <TPCSectorHeader.h>

Inherits o2::header::BaseHeader.

Public Member Functions

 TPCSectorHeader (int s)
 
int sector () const
 
- Public Member Functions inherited from o2::header::BaseHeader
 BaseHeader ()=delete
 dont construct directly
 
 BaseHeader (const BaseHeader &)=default
 
constexpr BaseHeader (uint32_t mySize, HeaderType desc, SerializationMethod ser, uint32_t version)
 Special ctor for initialization in derived types.
 
constexpr uint32_t size () const noexcept
 
const std::byte * data () const noexcept
 
const BaseHeadernext () const noexcept
 get the next header if any (const version)
 
BaseHeadernext () noexcept
 get the next header if any (non-const version)
 
bool sanityCheck (uint32_t expectedVersion) const
 
void throwInconsistentStackError () const
 

Public Attributes

uint64_t sectorBits
 
union { 
 
   uint64_t   activeSectorsFlags = 0 
 
   struct { 
 
      uint64_t   activeSectors: NSectors 
 
      uint64_t   unused: 12 
 
      uint64_t   flags: 16 
 
   }  
 
};  
 
- Public Attributes inherited from o2::header::BaseHeader
union { 
 
   char   magicString [gSizeMagicString
 
   uint32_t   magicStringInt 
 
};  
 a magic string, used to identify an O2 header in a raw stream of bytes
 
uint32_t headerSize
 
union { 
 
   uint32_t   flags 
 
   struct { 
 
      uint32_t   flagsNextHeader: 1 
 
      uint32_t   flagsReserved: 15 
 
      uint32_t   flagsDerivedHeader: 16 
 
   }  
 
};  
 flags, first bit indicates that a sub header follows
 
uint32_t headerVersion
 version of the entire header, set by the derived header
 
o2::header::HeaderType description
 header type description, set by derived header
 
o2::header::SerializationMethod serialization
 header serialization method, set by derived header
 

Static Public Attributes

static constexpr const o2::header::HeaderType sHeaderType = "TPCSectH"
 
static const uint32_t sVersion = 2
 
static constexpr int NSectors = o2::tpc::constants::MAXSECTOR
 
- Static Public Attributes inherited from o2::header::BaseHeader
static constexpr uint32_t sMagicString {String2<uint32_t>("O2O2")}
 
static const uint32_t sVersion = o2::header::gInvalidToken32
 
static const o2::header::HeaderType sHeaderType = o2::header::gInvalidToken64
 
static const o2::header::SerializationMethod sSerializationMethod = o2::header::gInvalidToken64
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::header::BaseHeader
static const BaseHeaderget (const std::byte *b, size_t=0)
 access header in buffer
 
static BaseHeaderget (std::byte *b, size_t=0)
 access header in buffer
 

Detailed Description

TPC specific header to be transported on the header stack

Definition at line 25 of file TPCSectorHeader.h.

Constructor & Destructor Documentation

◆ TPCSectorHeader()

o2::tpc::TPCSectorHeader::TPCSectorHeader ( int  s)
inline

Definition at line 31 of file TPCSectorHeader.h.

Member Function Documentation

◆ sector()

int o2::tpc::TPCSectorHeader::sector ( ) const
inline

Definition at line 36 of file TPCSectorHeader.h.

Member Data Documentation

◆ [union]

union { ... } o2::tpc::TPCSectorHeader

◆ activeSectors

uint64_t o2::tpc::TPCSectorHeader::activeSectors

Definition at line 53 of file TPCSectorHeader.h.

◆ activeSectorsFlags

uint64_t o2::tpc::TPCSectorHeader::activeSectorsFlags = 0

Definition at line 51 of file TPCSectorHeader.h.

◆ flags

uint64_t o2::tpc::TPCSectorHeader::flags

Definition at line 55 of file TPCSectorHeader.h.

◆ NSectors

constexpr int o2::tpc::TPCSectorHeader::NSectors = o2::tpc::constants::MAXSECTOR
staticconstexpr

Definition at line 29 of file TPCSectorHeader.h.

◆ sectorBits

uint64_t o2::tpc::TPCSectorHeader::sectorBits

Definition at line 49 of file TPCSectorHeader.h.

◆ sHeaderType

constexpr o2::header::HeaderType o2::tpc::TPCSectorHeader::sHeaderType = "TPCSectH"
staticconstexpr

Definition at line 27 of file TPCSectorHeader.h.

◆ sVersion

const uint32_t o2::tpc::TPCSectorHeader::sVersion = 2
static

Definition at line 28 of file TPCSectorHeader.h.

◆ unused

uint64_t o2::tpc::TPCSectorHeader::unused

Definition at line 54 of file TPCSectorHeader.h.


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