![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUON_CABLING_NRPCCABLINGDATA_H
6 #define MUON_CABLING_NRPCCABLINGDATA_H
18 #define CABLING_OPERATORS(CL_NAME) \
19 bool operator<(const CL_NAME& other) const { return m_cache.hash < other.m_cache.hash; } \
20 bool operator==(const CL_NAME& other) const {return m_cache.hash == other.m_cache.hash; } \
21 bool operator!=(const CL_NAME& other) const { return m_cache.hash != other.m_cache.hash; } \
22 bool operator!() const {return !m_cache.hash;} \
24 CL_NAME() = default; \
25 CL_NAME( const CL_NAME& other): CL_NAME() { \
26 m_cache.hash = other.m_cache.hash; \
28 CL_NAME& operator=(const CL_NAME& other) { \
29 if (&other != this) m_cache.hash = other.m_cache.hash; \
180 return a.lastStrip <
b.strip;
183 return a.strip <
b.firstStrip;
198 return a.lastChannel <
b.channelId;
202 return a.channelId <
b.firstChannel;
217 #undef CABLING_OPERATORS
uint8_t firstStrip
First strip covered by the Tdc chip.
NrpcCablOnDataByTdc()=default
char data[hepevt_bytes_allocation_ATLAS]
int8_t & doubletZ
doublet Phi -> 1,2
int8_t & gasGap
doublet Z -> 1,2
Struct to build the online -> offline map.
Representation of the offline Identifier in a more tangible format.
NrpcCablOnDataByTdc(const NrpcCablingCoolData &data)
Struct to represent all cabling information coming from the cabling database per channel.
bool operator!=(NrpcCablingData &other) const
int16_t & subDetector
Identifier of the subdetector region in the readout BA / BC etc.
int8_t & eta
Station of the chamber (i.e, BIL,BIS,etc.)
bool operator<(const NrpcCablOnDataByStrip &other) const
Equality operator of all Identifier fields.
setScaleOne setStatusOne setSaturated int16_t
NrpcCablOnDataByStrip()=default
bool measuresPhi() const
: Does the channel measure phi
static constexpr int8_t measPhiBit
gas gap -> 1-3
NrpcCablingData()=default
void setMeasPhiAndSide(bool measPhi, bool stripSide)
Sets the measuresPhi & stripSide fields of the cabling data object.
Cabling information shipped around the Digi <-> Rdo conversions.
std::set< NrpcCablOnDataByStrip, std::less<> > NrpcCablOnDataByStripSet
union NrpcCablingOfflineID::@169 m_cache
bool operator<(const NrpcCablingCoolData &) const
Delete the smaller operator.
NrpcCablingCoolData()=default
#define CABLING_OPERATORS(CL_NAME)
Helper macro to define the constructors and comparison operators of the Online & Offline Identifiers ...
NrpcCablOnDataByStrip(const NrpcCablingCoolData &data)
bool operator==(const NrpcCablingData &other) const
Equality operator of all Identifier fields.
bool operator<(const NrpcCablOnDataByTdc &other) const
Equality operator of all Identifier fields.
bool operator<(const NrpcCablOnDataByStrip &a, const NrpcCablingData &b)
Let's define the operator needed to read the cabling sets.
uint8_t firstChannel
First tdc channel.
Depending on whether the cabling map shall convert offline -> online or online -> offline extra infor...
uint8_t lastStrip
Last strip covered by the Tdc chip (inclusive)
std::ostream & operator<<(std::ostream &ostr, const NrpcCablingOfflineID &obj)
Outstream operators.
int16_t & tdcSector
Unique Identifier of the Rpc chamber from an online perspective.
int8_t & doubletPhi
doublet R -> 1,2
bool operator<(const NrpcCablingData &) const
Deactivate the sorting operator here.
static constexpr int8_t stripSideBit
bool operator<(const NrpcTdcStripRange &other) const
Sorting operator. Needed to build consistent sets.
Covered channels by the Online Identifier Object.
Struct to build the offline -> online map.
uint8_t lastChannel
Last tdc channel (inclusive)
Struct summarizing all the Identifier fields to uniquely Identify a Nrpc TDC chip.
int8_t & phi
Eta of the RPC station.
int8_t & doubletR
Phi sector of the RPC station.
bool stripSide() const
: Is the strip readout on the opposite side
bool operator<(const NrpcTdcChannelRange &other) const
Sorting operator. Needed to build consistent sets.
union NrpcCablingOnlineID::@170 m_cache