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

Struct to represent all cabling information coming from the cabling database per channel. More...

#include <NrpcCablingData.h>

Inheritance diagram for NrpcCablingCoolData:
Collaboration diagram for NrpcCablingCoolData:

Public Member Functions

 NrpcCablingCoolData ()=default
 
bool operator< (const NrpcCablingCoolData &) const
 Delete the smaller operator. More...
 
bool measuresPhi () const
 : Does the channel measure phi More...
 
bool stripSide () const
 : Is the strip readout on the opposite side
More...
 
void setMeasPhiAndSide (bool measPhi, bool stripSide)
 Sets the measuresPhi & stripSide fields of the cabling data object. More...
 
bool operator< (const NrpcTdcStripRange &other) const
 Sorting operator. Needed to build consistent sets. More...
 
bool operator< (const NrpcTdcChannelRange &other) const
 Sorting operator. Needed to build consistent sets. More...
 

Public Attributes

int8_t & stationIndex {m_cache.cache[0]}
 
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 RPC station. More...
 
int8_t & doubletR {m_cache.cache[3]}
 Phi sector of the RPC station. More...
 
int8_t & doubletPhi {m_cache.cache[4]}
 doublet R -> 1,2 More...
 
int8_t & doubletZ {m_cache.cache[5]}
 doublet Phi -> 1,2 More...
 
int8_t & gasGap {m_cache.cache[6]}
 doublet Z -> 1,2 More...
 
int16_t & subDetector {m_cache.cache[0]}
 Identifier of the subdetector region in the readout BA / BC etc. More...
 
int16_t & tdcSector {m_cache.cache[1]}
 Unique Identifier of the Rpc chamber from an online perspective. More...
 
int16_t & tdc {m_cache.cache[2]}
 TDC chip. More...
 
uint8_t firstStrip {0}
 First strip covered by the Tdc chip. More...
 
uint8_t lastStrip {0}
 Last strip covered by the Tdc chip (inclusive) More...
 
uint8_t firstChannel {0}
 First tdc channel. More...
 
uint8_t lastChannel {0}
 Last tdc channel (inclusive) More...
 
long int hash {0}
 
int8_t cache [8]
 
int64_t hash {0}
 
int16_t cache [4]
 

Static Public Attributes

static constexpr int8_t measPhiBit = 1 << 0
 gas gap -> 1-3 More...
 
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

Struct to represent all cabling information coming from the cabling database per channel.

Definition at line 139 of file NrpcCablingData.h.

Constructor & Destructor Documentation

◆ NrpcCablingCoolData()

NrpcCablingCoolData::NrpcCablingCoolData ( )
default

Member Function Documentation

◆ measuresPhi()

bool NrpcCablingOfflineID::measuresPhi ( ) const
inlineinherited

: Does the channel measure phi

Definition at line 54 of file NrpcCablingData.h.

54 { return m_measPhiStrip & measPhiBit; }

◆ operator<() [1/3]

bool NrpcCablingCoolData::operator< ( const NrpcCablingCoolData ) const
inline

Delete the smaller operator.

Definition at line 143 of file NrpcCablingData.h.

143 { return false;}

◆ operator<() [2/3]

bool NrpcTdcChannelRange::operator< ( const NrpcTdcChannelRange other) const
inlineinherited

Sorting operator. Needed to build consistent sets.

Definition at line 115 of file NrpcCablingData.h.

115  {
116  return lastChannel < other.firstChannel;
117  }

◆ operator<() [3/3]

bool NrpcTdcStripRange::operator< ( const NrpcTdcStripRange other) const
inlineinherited

Sorting operator. Needed to build consistent sets.

Definition at line 102 of file NrpcCablingData.h.

102  {
103  return lastStrip < other.firstStrip;
104  }

◆ setMeasPhiAndSide()

void NrpcCablingOfflineID::setMeasPhiAndSide ( bool  measPhi,
bool  stripSide 
)
inlineinherited

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

Definition at line 60 of file NrpcCablingData.h.

60  {
62  }

◆ stripSide()

bool NrpcCablingOfflineID::stripSide ( ) const
inlineinherited

: Is the strip readout on the opposite side

Definition at line 56 of file NrpcCablingData.h.

56 { return m_measPhiStrip & stripSideBit; }

Member Data Documentation

◆ cache [1/2]

int16_t NrpcCablingOnlineID::cache[4]
inherited

Definition at line 85 of file NrpcCablingData.h.

◆ cache [2/2]

int8_t NrpcCablingOfflineID::cache[8]
inherited

Definition at line 66 of file NrpcCablingData.h.

◆ doubletPhi

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

doublet R -> 1,2

Definition at line 42 of file NrpcCablingData.h.

◆ doubletR

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

Phi sector of the RPC station.

Definition at line 40 of file NrpcCablingData.h.

◆ doubletZ

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

doublet Phi -> 1,2

Definition at line 43 of file NrpcCablingData.h.

◆ eta

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

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

Definition at line 38 of file NrpcCablingData.h.

◆ firstChannel

uint8_t NrpcTdcChannelRange::firstChannel {0}
inherited

First tdc channel.

Definition at line 111 of file NrpcCablingData.h.

◆ firstStrip

uint8_t NrpcTdcStripRange::firstStrip {0}
inherited

First strip covered by the Tdc chip.

Definition at line 98 of file NrpcCablingData.h.

◆ gasGap

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

doublet Z -> 1,2

Definition at line 44 of file NrpcCablingData.h.

◆ hash [1/2]

long int NrpcCablingOfflineID::hash {0}
inherited

Definition at line 65 of file NrpcCablingData.h.

◆ hash [2/2]

int64_t NrpcCablingOnlineID::hash {0}
inherited

Definition at line 84 of file NrpcCablingData.h.

◆ lastChannel

uint8_t NrpcTdcChannelRange::lastChannel {0}
inherited

Last tdc channel (inclusive)

Definition at line 113 of file NrpcCablingData.h.

◆ lastStrip

uint8_t NrpcTdcStripRange::lastStrip {0}
inherited

Last strip covered by the Tdc chip (inclusive)

Definition at line 100 of file NrpcCablingData.h.

◆ m_cache

union { ... } NrpcCablingOfflineID::m_cache

◆ m_measPhiStrip

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

Definition at line 69 of file NrpcCablingData.h.

◆ measPhiBit

constexpr int8_t NrpcCablingOfflineID::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 at opposite sides. In order to disentangle the particular sites of the strips, the second bit of the measPhi field is set.

Definition at line 50 of file NrpcCablingData.h.

◆ phi

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

Eta of the RPC station.

Definition at line 39 of file NrpcCablingData.h.

◆ stationIndex

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

Definition at line 37 of file NrpcCablingData.h.

◆ stripSideBit

constexpr int8_t NrpcCablingOfflineID::stripSideBit = 1 << 1
staticconstexprinherited

Definition at line 51 of file NrpcCablingData.h.

◆ subDetector

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

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

Definition at line 77 of file NrpcCablingData.h.

◆ tdc

int16_t& NrpcCablingOnlineID::tdc {m_cache.cache[2]}
inherited

TDC chip.

Definition at line 81 of file NrpcCablingData.h.

◆ tdcSector

int16_t& NrpcCablingOnlineID::tdcSector {m_cache.cache[1]}
inherited

Unique Identifier of the Rpc chamber from an online perspective.

Definition at line 79 of file NrpcCablingData.h.


The documentation for this struct was generated from the following file:
NrpcCablingOfflineID::m_measPhiStrip
int8_t & m_measPhiStrip
Definition: NrpcCablingData.h:69
NrpcCablingOfflineID::measPhiBit
static constexpr int8_t measPhiBit
gas gap -> 1-3
Definition: NrpcCablingData.h:50
NrpcTdcStripRange::lastStrip
uint8_t lastStrip
Last strip covered by the Tdc chip (inclusive)
Definition: NrpcCablingData.h:100
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
NrpcCablingOfflineID::stripSideBit
static constexpr int8_t stripSideBit
Definition: NrpcCablingData.h:51
NrpcTdcChannelRange::lastChannel
uint8_t lastChannel
Last tdc channel (inclusive)
Definition: NrpcCablingData.h:113
NrpcCablingOfflineID::stripSide
bool stripSide() const
: Is the strip readout on the opposite side
Definition: NrpcCablingData.h:56