ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::RpcCablingData Struct Reference

Helper struct that is parsed to the cabling map to translate between the offline & online Identifiers. More...

#include <RpcCablingData.h>

Inheritance diagram for Muon::RpcCablingData:
Collaboration diagram for Muon::RpcCablingData:

Public Member Functions

 RpcCablingData ()=default
 Default constructor.
bool operator< (const RpcCablingData &) const =delete
 No sorting operator.
bool operator== (const RpcCablingData &other) const
 Equality in terms of all offline & online fields are matching.
bool operator!= (RpcCablingData &other) const
 Inequality operator.
bool measuresPhi () const
 : Does the channel measure phi
bool stripSide () const
 : Is the strip readout on the opposite side
void setMeasPhiAndSide (bool measPhi, bool stripSide)
 Sets the measuresPhi & stripSide fields of the cabling data object.

Public Attributes

uint8_t strip {0}
 Offline strip number.
uint8_t channelId {0}
 Online board channel number.
int8_t & stationIndex {m_cache.cache[0]}
int8_t & eta {m_cache.cache[1]}
 Station of the chamber (i.e, BIL,BIS,etc.)
int8_t & phi {m_cache.cache[2]}
 Eta index of the RPC station.
int8_t & doubletR {m_cache.cache[3]}
 Station phi of the RPC station.
int8_t & doubletPhi {m_cache.cache[4]}
 doublet R -> 1,2
int8_t & doubletZ {m_cache.cache[5]}
 doublet Phi -> 1,2
int8_t & gasGap {m_cache.cache[6]}
 doublet Z -> 1,2
int16_t & subDetector {m_cache.cache[0]}
 Identifier of the subdetector region in the readout BA / BC etc.
int16_t & boardSector {m_cache.cache[1]}
 Unique Identifier of the Rpc chamber from an online perspective.
int16_t & board {m_cache.cache[2]}
 Unique identifier of the tdc chip.

Static Public Attributes

static constexpr int8_t measPhiBit = 1 << 0
 gas gap -> 1-3
static constexpr int8_t stripSideBit = 1 << 1

Private Attributes

union { 
   long int   hash {0} 
   int8_t   cache [8] 
m_cache
int8_t & m_measPhiStrip {m_cache.cache[7]}

Detailed Description

Helper struct that is parsed to the cabling map to translate between the offline & online Identifiers.

Definition at line 96 of file RpcCablingData.h.

Constructor & Destructor Documentation

◆ RpcCablingData()

Muon::RpcCablingData::RpcCablingData ( )
default

Default constructor.

Member Function Documentation

◆ measuresPhi()

bool Muon::RpcCablingOfflineID::measuresPhi ( ) const
inlineinherited

: Does the channel measure phi

Definition at line 59 of file RpcCablingData.h.

59{ return m_measPhiStrip & measPhiBit; }
static constexpr int8_t measPhiBit
gas gap -> 1-3

◆ operator!=()

bool Muon::RpcCablingData::operator!= ( RpcCablingData & other) const
inline

Inequality operator.

Definition at line 112 of file RpcCablingData.h.

112 {
113 return !((*this) == other);
114 }

◆ operator<()

bool Muon::RpcCablingData::operator< ( const RpcCablingData & ) const
delete

No sorting operator.

◆ operator==()

bool Muon::RpcCablingData::operator== ( const RpcCablingData & other) const
inline

Equality in terms of all offline & online fields are matching.

Definition at line 106 of file RpcCablingData.h.

106 {
107 return strip == other.strip && channelId == other.channelId &&
108 static_cast<const RpcCablingOfflineID&>(*this) == other &&
109 static_cast<const RpcCablingOnlineID&>(*this) == other;
110 }
uint8_t channelId
Online board channel number.
uint8_t strip
Offline strip number.

◆ setMeasPhiAndSide()

void Muon::RpcCablingOfflineID::setMeasPhiAndSide ( bool measPhi,
bool stripSide )
inlineinherited

Sets the measuresPhi & stripSide fields of the cabling data object.

Definition at line 63 of file RpcCablingData.h.

63 {
65 }
static constexpr int8_t stripSideBit
bool stripSide() const
: Is the strip readout on the opposite side

◆ stripSide()

bool Muon::RpcCablingOfflineID::stripSide ( ) const
inlineinherited

: Is the strip readout on the opposite side

Definition at line 61 of file RpcCablingData.h.

61{ return m_measPhiStrip & stripSideBit; }

Member Data Documentation

◆ board

int16_t& Muon::RpcCablingOnlineID::board {m_cache.cache[2]}
inherited

Unique identifier of the tdc chip.

Definition at line 86 of file RpcCablingData.h.

86{m_cache.cache[2]};
union Muon::RpcCablingOnlineID::@060274027202166101037372020013200265211022004064 m_cache

◆ boardSector

int16_t& Muon::RpcCablingOnlineID::boardSector {m_cache.cache[1]}
inherited

Unique Identifier of the Rpc chamber from an online perspective.

Definition at line 84 of file RpcCablingData.h.

84{m_cache.cache[1]};

◆ cache [1/2]

int8_t Muon::RpcCablingOfflineID::cache[8]
inherited

Definition at line 69 of file RpcCablingData.h.

◆ cache [2/2]

int16_t Muon::RpcCablingOnlineID::cache[4]
inherited

Definition at line 90 of file RpcCablingData.h.

◆ channelId

uint8_t Muon::RpcCablingData::channelId {0}

Online board channel number.

Definition at line 102 of file RpcCablingData.h.

102{0};

◆ doubletPhi

int8_t& Muon::RpcCablingOfflineID::doubletPhi {m_cache.cache[4]}
inherited

doublet R -> 1,2

Definition at line 48 of file RpcCablingData.h.

48{m_cache.cache[4]};
union Muon::RpcCablingOfflineID::@310011236274336217137144365313106374211200256350 m_cache

◆ doubletR

int8_t& Muon::RpcCablingOfflineID::doubletR {m_cache.cache[3]}
inherited

Station phi of the RPC station.

Definition at line 46 of file RpcCablingData.h.

46{m_cache.cache[3]};

◆ doubletZ

int8_t& Muon::RpcCablingOfflineID::doubletZ {m_cache.cache[5]}
inherited

doublet Phi -> 1,2

Definition at line 49 of file RpcCablingData.h.

49{m_cache.cache[5]};

◆ eta

int8_t& Muon::RpcCablingOfflineID::eta {m_cache.cache[1]}
inherited

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

Definition at line 44 of file RpcCablingData.h.

44{m_cache.cache[1]};

◆ gasGap

int8_t& Muon::RpcCablingOfflineID::gasGap {m_cache.cache[6]}
inherited

doublet Z -> 1,2

Definition at line 50 of file RpcCablingData.h.

50{m_cache.cache[6]};

◆ hash [1/2]

long int Muon::RpcCablingOfflineID::hash {0}
inherited

Definition at line 68 of file RpcCablingData.h.

68{0};

◆ hash [2/2]

int64_t Muon::RpcCablingOnlineID::hash {0}
inherited

Definition at line 89 of file RpcCablingData.h.

89{0};

◆ [union]

union { ... } Muon::RpcCablingOfflineID::m_cache

◆ m_measPhiStrip

int8_t& Muon::RpcCablingOfflineID::m_measPhiStrip {m_cache.cache[7]}
privateinherited

Definition at line 71 of file RpcCablingData.h.

71{m_cache.cache[7]};

◆ measPhiBit

int8_t Muon::RpcCablingOfflineID::measPhiBit = 1 << 0
staticconstexprinherited

gas gap -> 1-3

The BIL-RPC chambers have two strip-layers, both oriented to measure the eta coordinate. From a readout perspective, the strips share the same channel, despite that their readout positions are on opposite sides. In order to disentangle the particular sites of the strips, the second bit of the measPhi field is set.

Definition at line 55 of file RpcCablingData.h.

◆ phi

int8_t& Muon::RpcCablingOfflineID::phi {m_cache.cache[2]}
inherited

Eta index of the RPC station.

Definition at line 45 of file RpcCablingData.h.

45{m_cache.cache[2]};

◆ stationIndex

int8_t& Muon::RpcCablingOfflineID::stationIndex {m_cache.cache[0]}
inherited

Definition at line 43 of file RpcCablingData.h.

43{m_cache.cache[0]};

◆ strip

uint8_t Muon::RpcCablingData::strip {0}

Offline strip number.

Definition at line 100 of file RpcCablingData.h.

100{0};

◆ stripSideBit

int8_t Muon::RpcCablingOfflineID::stripSideBit = 1 << 1
staticconstexprinherited

Definition at line 56 of file RpcCablingData.h.

◆ subDetector

int16_t& Muon::RpcCablingOnlineID::subDetector {m_cache.cache[0]}
inherited

Identifier of the subdetector region in the readout BA / BC etc.

Definition at line 82 of file RpcCablingData.h.

82{m_cache.cache[0]};

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