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

Struct to build the offline -> online map. More...

#include <NrpcCablingData.h>

Inheritance diagram for NrpcCablOnDataByStrip:
Collaboration diagram for NrpcCablOnDataByStrip:

Public Member Functions

 NrpcCablOnDataByStrip ()=default
 
 NrpcCablOnDataByStrip (const NrpcCablingCoolData &data)
 
bool operator< (const NrpcCablOnDataByStrip &other) const
 Equality operator of all Identifier fields. 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

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...
 
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...
 

Private Attributes

union {
   int64_t   hash {0}
 
   int16_t   cache [4]
 
m_cache
 

Detailed Description

Struct to build the offline -> online map.

Definition at line 146 of file NrpcCablingData.h.

Constructor & Destructor Documentation

◆ NrpcCablOnDataByStrip() [1/2]

NrpcCablOnDataByStrip::NrpcCablOnDataByStrip ( )
default

◆ NrpcCablOnDataByStrip() [2/2]

NrpcCablOnDataByStrip::NrpcCablOnDataByStrip ( const NrpcCablingCoolData data)
inline

Definition at line 148 of file NrpcCablingData.h.

Member Function Documentation

◆ operator<() [1/3]

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

Equality operator of all Identifier fields.

Definition at line 154 of file NrpcCablingData.h.

154  {
155  if (static_cast<const NrpcCablingOnlineID&>(*this) != other) {
156  return static_cast<const NrpcCablingOnlineID&>(*this) < other;
157  }
158  return static_cast<const NrpcTdcStripRange&>(*this) < other;
159  }

◆ 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  }

Member Data Documentation

◆ cache

int16_t NrpcCablingOnlineID::cache[4]
inherited

Definition at line 85 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.

◆ hash

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 { ... } NrpcCablingOnlineID::m_cache

◆ 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:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
NrpcTdcStripRange
Depending on whether the cabling map shall convert offline -> online or online -> offline extra infor...
Definition: NrpcCablingData.h:95
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
NrpcTdcChannelRange
Covered channels by the Online Identifier Object.
Definition: NrpcCablingData.h:108
NrpcTdcChannelRange::lastChannel
uint8_t lastChannel
Last tdc channel (inclusive)
Definition: NrpcCablingData.h:113
NrpcCablingOnlineID
Struct summarizing all the Identifier fields to uniquely Identify a Nrpc TDC chip.
Definition: NrpcCablingData.h:74