ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
MdtCablingOnData Struct Reference

#include <MdtCablingData.h>

Inheritance diagram for MdtCablingOnData:
Collaboration diagram for MdtCablingOnData:

Public Member Functions

 MdtCablingOnData ()=default
 
 MdtCablingOnData (const MdtCablingOnData &other)
 Subdetector number. More...
 
MdtCablingOnDataoperator= (const MdtCablingOnData &other)
 
bool operator== (const MdtCablingOnData &other) const
 
bool operator!= (const MdtCablingOnData &other) const
 
bool operator< (const MdtCablingOnData &other) const
 
bool operator! () const
 

Public Attributes

uint8_t & mrod {m_cache.cache[0]}
 
uint8_t & csm {m_cache.cache[1]}
 MROD number. More...
 
uint8_t & subdetectorId {m_cache.cache[2]}
 CSM number. More...
 
int hash {0}
 
uint8_t cache [4]
 

Private Attributes

union {
   int   hash {0}
 
   uint8_t   cache [4]
 
m_cache
 

Detailed Description

Definition at line 50 of file MdtCablingData.h.

Constructor & Destructor Documentation

◆ MdtCablingOnData() [1/2]

MdtCablingOnData::MdtCablingOnData ( )
default

◆ MdtCablingOnData() [2/2]

MdtCablingOnData::MdtCablingOnData ( const MdtCablingOnData other)
inline

Subdetector number.

Definition at line 56 of file MdtCablingData.h.

56  : MdtCablingOnData() {
57  m_cache.hash = other.m_cache.hash;
58  }

Member Function Documentation

◆ operator!()

bool MdtCablingOnData::operator! ( ) const
inline

Definition at line 74 of file MdtCablingData.h.

74 { return !m_cache.hash; }

◆ operator!=()

bool MdtCablingOnData::operator!= ( const MdtCablingOnData other) const
inline

Definition at line 68 of file MdtCablingData.h.

68  {
69  return m_cache.hash != other.m_cache.hash;
70  }

◆ operator<()

bool MdtCablingOnData::operator< ( const MdtCablingOnData other) const
inline

Definition at line 71 of file MdtCablingData.h.

71  {
72  return m_cache.hash < other.m_cache.hash;
73  }

◆ operator=()

MdtCablingOnData& MdtCablingOnData::operator= ( const MdtCablingOnData other)
inline

Definition at line 59 of file MdtCablingData.h.

59  {
60  if (&other != this)
61  m_cache.hash = other.m_cache.hash;
62  return *this;
63  }

◆ operator==()

bool MdtCablingOnData::operator== ( const MdtCablingOnData other) const
inline

Definition at line 65 of file MdtCablingData.h.

65  {
66  return m_cache.hash == other.m_cache.hash;
67  }

Member Data Documentation

◆ cache

uint8_t MdtCablingOnData::cache[4]

Definition at line 79 of file MdtCablingData.h.

◆ csm

uint8_t& MdtCablingOnData::csm {m_cache.cache[1]}

MROD number.

Definition at line 53 of file MdtCablingData.h.

◆ hash

int MdtCablingOnData::hash {0}

Definition at line 78 of file MdtCablingData.h.

◆ m_cache

union { ... } MdtCablingOnData::m_cache

◆ mrod

uint8_t& MdtCablingOnData::mrod {m_cache.cache[0]}

Definition at line 52 of file MdtCablingData.h.

◆ subdetectorId

uint8_t& MdtCablingOnData::subdetectorId {m_cache.cache[2]}

CSM number.

Definition at line 54 of file MdtCablingData.h.


The documentation for this struct was generated from the following file:
MdtCablingOnData::MdtCablingOnData
MdtCablingOnData()=default
MdtCablingOnData::m_cache
union MdtCablingOnData::@168 m_cache
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16