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

Split the offline part of the cabling apart to use it later for sorting. More...

#include <MdtCablingData.h>

Inheritance diagram for MdtCablingOffData:
Collaboration diagram for MdtCablingOffData:

Public Member Functions

 MdtCablingOffData ()=default
 
 MdtCablingOffData (const MdtCablingOffData &other)
 
MdtCablingOffDataoperator= (const MdtCablingOffData &other)
 
bool operator== (const MdtCablingOffData &other) const
 Multilayer inside the MDT station. More...
 
bool operator!= (const MdtCablingOffData &other) const
 
bool operator< (const MdtCablingOffData &other) const
 
bool operator! () const
 

Public Attributes

int8_t & stationIndex
 
int8_t & eta {m_cache.cache[1]}
 Station of the chamber (i.e, BIL,BIS,etc.) More...
 
int8_t & phi {m_cache.cache[2]}
 Eta of the MDT station. More...
 
int8_t & multilayer {m_cache.cache[3]}
 Phi sector of the MDT station. More...
 

Private Attributes

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

Detailed Description

Split the offline part of the cabling apart to use it later for sorting.

Definition at line 16 of file MdtCablingData.h.

Constructor & Destructor Documentation

◆ MdtCablingOffData() [1/2]

MdtCablingOffData::MdtCablingOffData ( )
default

◆ MdtCablingOffData() [2/2]

MdtCablingOffData::MdtCablingOffData ( const MdtCablingOffData other)
inline

Definition at line 18 of file MdtCablingData.h.

18  : MdtCablingOffData() {
19  m_cache.hash = other.m_cache.hash;
20  }

Member Function Documentation

◆ operator!()

bool MdtCablingOffData::operator! ( ) const
inline

Definition at line 42 of file MdtCablingData.h.

42 { return !m_cache.hash; }

◆ operator!=()

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

Definition at line 36 of file MdtCablingData.h.

36  {
37  return m_cache.hash != other.m_cache.hash;
38  }

◆ operator<()

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

Definition at line 39 of file MdtCablingData.h.

39  {
40  return m_cache.hash < other.m_cache.hash;
41  }

◆ operator=()

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

Definition at line 21 of file MdtCablingData.h.

21  {
22  if (&other != this)
23  m_cache.hash = other.m_cache.hash;
24  return *this;
25  }

◆ operator==()

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

Multilayer inside the MDT station.

Equality operator

Definition at line 33 of file MdtCablingData.h.

33  {
34  return m_cache.hash == other.m_cache.hash;
35  }

Member Data Documentation

◆ cache

int8_t MdtCablingOffData::cache[4]

Definition at line 47 of file MdtCablingData.h.

◆ eta

int8_t& MdtCablingOffData::eta {m_cache.cache[1]}

Station of the chamber (i.e, BIL,BIS,etc.)

Definition at line 28 of file MdtCablingData.h.

◆ hash

int MdtCablingOffData::hash {0}

Definition at line 46 of file MdtCablingData.h.

◆ m_cache

union { ... } MdtCablingOffData::m_cache

◆ multilayer

int8_t& MdtCablingOffData::multilayer {m_cache.cache[3]}

Phi sector of the MDT station.

Definition at line 30 of file MdtCablingData.h.

◆ phi

int8_t& MdtCablingOffData::phi {m_cache.cache[2]}

Eta of the MDT station.

Definition at line 29 of file MdtCablingData.h.

◆ stationIndex

int8_t& MdtCablingOffData::stationIndex
Initial value:
{
m_cache.cache[0]}

Definition at line 26 of file MdtCablingData.h.


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