Project
Loading...
Searching...
No Matches
o2::trd::LinkRecord Class Reference

Header for data corresponding to the indexing of the links in the raw data output adapted from DataFormatsTRD/TriggerRecord. More...

#include <LinkRecord.h>

Public Member Functions

 LinkRecord ()=default
 
 LinkRecord (const uint32_t linkid, int firstentry, int nentries)
 
 LinkRecord (uint32_t sector, int stack, int layer, int side, int firstentry, int nentries)
 
 ~LinkRecord ()=default
 
void setLinkId (const uint32_t linkid)
 
void setLinkId (const uint32_t sector, const uint32_t stack, const uint32_t layer, const uint32_t side)
 
void setDataRange (int firstentry, int nentries)
 
void setIndexFirstObject (int firstentry)
 
void setNumberOfObjects (int nentries)
 
void setSector (const int sector)
 
void setStack (const int stack)
 
void setLayer (const int layer)
 
void setSide (const int side)
 
void setSpare (const int spare=0)
 
uint32_t getLinkId () const
 
uint32_t getSector () const
 
uint32_t getStack () const
 
uint32_t getLayer () const
 
uint32_t getSide () const
 
int getNumberOfObjects () const
 
int getFirstEntry () const
 
void printStream (std::ostream &stream)
 

Static Public Member Functions

static uint32_t getHalfChamberLinkId (uint32_t detector, uint32_t rob)
 
static uint32_t getHalfChamberLinkId (uint32_t sector, uint32_t stack, uint32_t layer, uint32_t side)
 

Static Public Attributes

static constexpr uint64_t sparemask = 0x000f
 
static constexpr uint64_t sidemask = 0x0010
 
static constexpr uint64_t layermask = 0x00e0
 
static constexpr uint64_t stackmask = 0x0700
 
static constexpr uint64_t supermodulemask = 0xf800
 
static constexpr uint64_t sparebs = 0
 
static constexpr uint64_t sidebs = 4
 
static constexpr uint64_t layerbs = 5
 
static constexpr uint64_t stackbs = 8
 
static constexpr uint64_t supermodulebs = 11
 

Detailed Description

Header for data corresponding to the indexing of the links in the raw data output adapted from DataFormatsTRD/TriggerRecord.

Definition at line 30 of file LinkRecord.h.

Constructor & Destructor Documentation

◆ LinkRecord() [1/3]

o2::trd::LinkRecord::LinkRecord ( )
default

◆ LinkRecord() [2/3]

o2::trd::LinkRecord::LinkRecord ( const uint32_t  linkid,
int  firstentry,
int  nentries 
)
inline

Definition at line 36 of file LinkRecord.h.

◆ LinkRecord() [3/3]

o2::trd::LinkRecord::LinkRecord ( uint32_t  sector,
int  stack,
int  layer,
int  side,
int  firstentry,
int  nentries 
)
inline

Definition at line 38 of file LinkRecord.h.

◆ ~LinkRecord()

o2::trd::LinkRecord::~LinkRecord ( )
default

Member Function Documentation

◆ getFirstEntry()

int o2::trd::LinkRecord::getFirstEntry ( ) const
inline

Definition at line 60 of file LinkRecord.h.

◆ getHalfChamberLinkId() [1/2]

uint32_t o2::trd::LinkRecord::getHalfChamberLinkId ( uint32_t  detector,
uint32_t  rob 
)
static

Definition at line 23 of file LinkRecord.cxx.

◆ getHalfChamberLinkId() [2/2]

uint32_t o2::trd::LinkRecord::getHalfChamberLinkId ( uint32_t  sector,
uint32_t  stack,
uint32_t  layer,
uint32_t  side 
)
static

Definition at line 33 of file LinkRecord.cxx.

◆ getLayer()

uint32_t o2::trd::LinkRecord::getLayer ( ) const
inline

Definition at line 57 of file LinkRecord.h.

◆ getLinkId()

uint32_t o2::trd::LinkRecord::getLinkId ( ) const
inline

Definition at line 53 of file LinkRecord.h.

◆ getNumberOfObjects()

int o2::trd::LinkRecord::getNumberOfObjects ( ) const
inline

Definition at line 59 of file LinkRecord.h.

◆ getSector()

uint32_t o2::trd::LinkRecord::getSector ( ) const
inline

Definition at line 55 of file LinkRecord.h.

◆ getSide()

uint32_t o2::trd::LinkRecord::getSide ( ) const
inline

Definition at line 58 of file LinkRecord.h.

◆ getStack()

uint32_t o2::trd::LinkRecord::getStack ( ) const
inline

Definition at line 56 of file LinkRecord.h.

◆ printStream()

void o2::trd::LinkRecord::printStream ( std::ostream &  stream)

Definition at line 49 of file LinkRecord.cxx.

◆ setDataRange()

void o2::trd::LinkRecord::setDataRange ( int  firstentry,
int  nentries 
)
inline

Definition at line 44 of file LinkRecord.h.

◆ setIndexFirstObject()

void o2::trd::LinkRecord::setIndexFirstObject ( int  firstentry)
inline

Definition at line 45 of file LinkRecord.h.

◆ setLayer()

void o2::trd::LinkRecord::setLayer ( const int  layer)
inline

Definition at line 49 of file LinkRecord.h.

◆ setLinkId() [1/2]

void o2::trd::LinkRecord::setLinkId ( const uint32_t  linkid)
inline

Definition at line 42 of file LinkRecord.h.

◆ setLinkId() [2/2]

void o2::trd::LinkRecord::setLinkId ( const uint32_t  sector,
const uint32_t  stack,
const uint32_t  layer,
const uint32_t  side 
)

Definition at line 40 of file LinkRecord.cxx.

◆ setNumberOfObjects()

void o2::trd::LinkRecord::setNumberOfObjects ( int  nentries)
inline

Definition at line 46 of file LinkRecord.h.

◆ setSector()

void o2::trd::LinkRecord::setSector ( const int  sector)
inline

Definition at line 47 of file LinkRecord.h.

◆ setSide()

void o2::trd::LinkRecord::setSide ( const int  side)
inline

Definition at line 50 of file LinkRecord.h.

◆ setSpare()

void o2::trd::LinkRecord::setSpare ( const int  spare = 0)
inline

Definition at line 51 of file LinkRecord.h.

◆ setStack()

void o2::trd::LinkRecord::setStack ( const int  stack)
inline

Definition at line 48 of file LinkRecord.h.

Member Data Documentation

◆ layerbs

constexpr uint64_t o2::trd::LinkRecord::layerbs = 5
staticconstexpr

Definition at line 74 of file LinkRecord.h.

◆ layermask

constexpr uint64_t o2::trd::LinkRecord::layermask = 0x00e0
staticconstexpr

Definition at line 68 of file LinkRecord.h.

◆ sidebs

constexpr uint64_t o2::trd::LinkRecord::sidebs = 4
staticconstexpr

Definition at line 73 of file LinkRecord.h.

◆ sidemask

constexpr uint64_t o2::trd::LinkRecord::sidemask = 0x0010
staticconstexpr

Definition at line 67 of file LinkRecord.h.

◆ sparebs

constexpr uint64_t o2::trd::LinkRecord::sparebs = 0
staticconstexpr

Definition at line 72 of file LinkRecord.h.

◆ sparemask

constexpr uint64_t o2::trd::LinkRecord::sparemask = 0x000f
staticconstexpr

Definition at line 66 of file LinkRecord.h.

◆ stackbs

constexpr uint64_t o2::trd::LinkRecord::stackbs = 8
staticconstexpr

Definition at line 75 of file LinkRecord.h.

◆ stackmask

constexpr uint64_t o2::trd::LinkRecord::stackmask = 0x0700
staticconstexpr

Definition at line 69 of file LinkRecord.h.

◆ supermodulebs

constexpr uint64_t o2::trd::LinkRecord::supermodulebs = 11
staticconstexpr

Definition at line 76 of file LinkRecord.h.

◆ supermodulemask

constexpr uint64_t o2::trd::LinkRecord::supermodulemask = 0xf800
staticconstexpr

Definition at line 70 of file LinkRecord.h.


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