CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
DTCELinkId Class Reference

#include <CondFormats/Phase2TrackerDTC/src/DTCELinkId.cc>

Public Member Functions

auto dtc_id () const noexcept
 
 DTCELinkId () noexcept
 
 DTCELinkId (DTCELinkId &&) noexcept
 
 DTCELinkId (DTCELinkId const &) noexcept
 
 DTCELinkId (uint16_t, uint8_t, uint8_t) noexcept
 
auto elink_id () const noexcept
 
auto gbtlink_id () const noexcept
 
DTCELinkIdoperator= (DTCELinkId &&) noexcept
 
DTCELinkIdoperator= (DTCELinkId const &) noexcept
 
 ~DTCELinkId () noexcept
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

uint16_t dtc_id_
 
uint8_t elink_id_
 
uint8_t gbtlink_id_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Description: DTCELinkId identifies a specific eLink in the interface of a specific GBT link instance in the firmware of a specific DTC of the tracker back-end.

Implementation: [Notes on implementation]

Definition at line 28 of file DTCELinkId.h.

Constructor & Destructor Documentation

◆ DTCELinkId() [1/4]

DTCELinkId::DTCELinkId ( )
noexcept

Definition at line 7 of file DTCELinkId.cc.

8  : elink_id_(std::numeric_limits<decltype(elink_id())>::max()),
9  gbtlink_id_(std::numeric_limits<decltype(gbtlink_id())>::max()),
10  dtc_id_(std::numeric_limits<decltype(dtc_id())>::max()) {}

◆ DTCELinkId() [2/4]

DTCELinkId::DTCELinkId ( DTCELinkId const &  rhs)
noexcept

Definition at line 12 of file DTCELinkId.cc.

13  : elink_id_(rhs.elink_id_), gbtlink_id_(rhs.gbtlink_id_), dtc_id_(rhs.dtc_id_) {}

◆ DTCELinkId() [3/4]

DTCELinkId::DTCELinkId ( DTCELinkId &&  rhs)
noexcept

Definition at line 15 of file DTCELinkId.cc.

◆ ~DTCELinkId()

DTCELinkId::~DTCELinkId ( )
noexcept

Definition at line 34 of file DTCELinkId.cc.

34 {}

◆ DTCELinkId() [4/4]

DTCELinkId::DTCELinkId ( uint16_t  dtc_id,
uint8_t  gbtlink_id,
uint8_t  elink_id 
)
noexcept

Definition at line 36 of file DTCELinkId.cc.

Member Function Documentation

◆ dtc_id()

auto DTCELinkId::dtc_id ( ) const
inlinenoexcept

Definition at line 42 of file DTCELinkId.h.

42 { return dtc_id_; }

References dtc_id_.

Referenced by operator!=(), operator<(), operator==(), and operator>().

◆ elink_id()

auto DTCELinkId::elink_id ( ) const
inlinenoexcept

Definition at line 40 of file DTCELinkId.h.

40 { return elink_id_; }

References elink_id_.

Referenced by operator!=(), operator<(), operator==(), and operator>().

◆ gbtlink_id()

auto DTCELinkId::gbtlink_id ( ) const
inlinenoexcept

Definition at line 41 of file DTCELinkId.h.

41 { return gbtlink_id_; }

References gbtlink_id_.

Referenced by operator!=(), operator<(), operator==(), and operator>().

◆ operator=() [1/2]

DTCELinkId & DTCELinkId::operator= ( DTCELinkId &&  rhs)
noexcept

Definition at line 26 of file DTCELinkId.cc.

26  {
27  elink_id_ = rhs.elink_id_;
29  dtc_id_ = rhs.dtc_id_;
30 
31  return *this;
32 }

References elink_id_.

◆ operator=() [2/2]

DTCELinkId & DTCELinkId::operator= ( DTCELinkId const &  rhs)
noexcept

Definition at line 18 of file DTCELinkId.cc.

18  {
19  elink_id_ = rhs.elink_id_;
20  gbtlink_id_ = rhs.gbtlink_id_;
21  dtc_id_ = rhs.dtc_id_;
22 
23  return *this;
24 }

References elink_id_.

◆ serialize()

template<class Archive >
void DTCELinkId::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 54 of file DTCELinkId.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 54 of file DTCELinkId.h.

Member Data Documentation

◆ dtc_id_

uint16_t DTCELinkId::dtc_id_
private

Definition at line 52 of file DTCELinkId.h.

Referenced by dtc_id().

◆ elink_id_

uint8_t DTCELinkId::elink_id_
private

Definition at line 50 of file DTCELinkId.h.

Referenced by elink_id(), and operator=().

◆ gbtlink_id_

uint8_t DTCELinkId::gbtlink_id_
private

Definition at line 51 of file DTCELinkId.h.

Referenced by gbtlink_id().

DTCELinkId::elink_id
auto elink_id() const noexcept
Definition: DTCELinkId.h:40
DTCELinkId::elink_id_
uint8_t elink_id_
Definition: DTCELinkId.h:50
DTCELinkId::dtc_id
auto dtc_id() const noexcept
Definition: DTCELinkId.h:42
DTCELinkId::gbtlink_id_
uint8_t gbtlink_id_
Definition: DTCELinkId.h:51
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
DTCELinkId::gbtlink_id
auto gbtlink_id() const noexcept
Definition: DTCELinkId.h:41
DTCELinkId::dtc_id_
uint16_t dtc_id_
Definition: DTCELinkId.h:52