CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
L1RPCDevCoords Struct Reference

#include <L1RPCHwConfig.h>

Public Member Functions

int getPAC ()
 
int getSector ()
 
int getSegment ()
 
int getTower ()
 
 L1RPCDevCoords ()
 
 L1RPCDevCoords (int tower, int sector, int segment)
 
bool operator< (const L1RPCDevCoords &l2) const
 
bool operator== (const L1RPCDevCoords &l2) const
 
std::string toString () const
 

Public Attributes

signed short m_PAC
 
signed short m_tower
 

Private Member Functions

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

Friends

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

Detailed Description

Definition at line 35 of file L1RPCHwConfig.h.

Constructor & Destructor Documentation

◆ L1RPCDevCoords() [1/2]

L1RPCDevCoords::L1RPCDevCoords ( )
inline

Definition at line 37 of file L1RPCHwConfig.h.

37 : m_tower(-255), m_PAC(-255){};
signed short m_tower
Definition: L1RPCHwConfig.h:59
signed short m_PAC
Definition: L1RPCHwConfig.h:60

◆ L1RPCDevCoords() [2/2]

L1RPCDevCoords::L1RPCDevCoords ( int  tower,
int  sector,
int  segment 
)
inline

Definition at line 38 of file L1RPCHwConfig.h.

Member Function Documentation

◆ getPAC()

int L1RPCDevCoords::getPAC ( )
inline

Definition at line 40 of file L1RPCHwConfig.h.

References m_PAC.

40 { return m_PAC; };
signed short m_PAC
Definition: L1RPCHwConfig.h:60

◆ getSector()

int L1RPCDevCoords::getSector ( )
inline

Definition at line 41 of file L1RPCHwConfig.h.

References m_PAC.

41 { return m_PAC / 12; };
signed short m_PAC
Definition: L1RPCHwConfig.h:60

◆ getSegment()

int L1RPCDevCoords::getSegment ( )
inline

Definition at line 42 of file L1RPCHwConfig.h.

References m_PAC.

42 { return m_PAC % 12; };
signed short m_PAC
Definition: L1RPCHwConfig.h:60

◆ getTower()

int L1RPCDevCoords::getTower ( )
inline

Definition at line 39 of file L1RPCHwConfig.h.

References m_tower.

39 { return m_tower; };
signed short m_tower
Definition: L1RPCHwConfig.h:59

◆ operator<()

bool L1RPCDevCoords::operator< ( const L1RPCDevCoords l2) const
inline

Definition at line 50 of file L1RPCHwConfig.h.

References m_PAC, and m_tower.

50  {
51  if (this->m_tower != l2.m_tower)
52  return this->m_tower < l2.m_tower;
53  return this->m_PAC < l2.m_PAC;
54  }
signed short m_tower
Definition: L1RPCHwConfig.h:59
signed short m_PAC
Definition: L1RPCHwConfig.h:60

◆ operator==()

bool L1RPCDevCoords::operator== ( const L1RPCDevCoords l2) const
inline

Definition at line 56 of file L1RPCHwConfig.h.

References m_PAC, and m_tower.

56 { return (this->m_tower == l2.m_tower) && (this->m_PAC == l2.m_PAC); }
signed short m_tower
Definition: L1RPCHwConfig.h:59
signed short m_PAC
Definition: L1RPCHwConfig.h:60

◆ serialize()

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

◆ toString()

std::string L1RPCDevCoords::toString ( ) const
inline

Definition at line 44 of file L1RPCHwConfig.h.

References m_PAC, m_tower, and contentValuesCheck::ss.

44  {
45  std::stringstream ss;
46  ss << m_tower << " " << m_PAC;
47  return ss.str();
48  };
signed short m_tower
Definition: L1RPCHwConfig.h:59
signed short m_PAC
Definition: L1RPCHwConfig.h:60

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 62 of file L1RPCHwConfig.h.

◆ cond::serialization::access

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

Definition at line 62 of file L1RPCHwConfig.h.

Member Data Documentation

◆ m_PAC

signed short L1RPCDevCoords::m_PAC

Definition at line 60 of file L1RPCHwConfig.h.

Referenced by getPAC(), getSector(), getSegment(), operator<(), operator==(), and toString().

◆ m_tower

signed short L1RPCDevCoords::m_tower

Definition at line 59 of file L1RPCHwConfig.h.

Referenced by getTower(), operator<(), operator==(), and toString().