CMS 3D CMS Logo

Public Member Functions | Public Attributes

L1RPCDevCoords Struct Reference

#include <L1RPCHwConfig.h>

List of all members.

Public Member Functions

int getPAC ()
int getSector ()
int getSegment ()
int getTower ()
 L1RPCDevCoords (int tower, int sector, int segment)
 L1RPCDevCoords ()
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

Detailed Description

Definition at line 33 of file L1RPCHwConfig.h.


Constructor & Destructor Documentation

L1RPCDevCoords::L1RPCDevCoords ( ) [inline]

Definition at line 35 of file L1RPCHwConfig.h.

: m_tower(-255), m_PAC(-255) {};
L1RPCDevCoords::L1RPCDevCoords ( int  tower,
int  sector,
int  segment 
) [inline]

Definition at line 36 of file L1RPCHwConfig.h.

: m_tower(tower), m_PAC(sector*12+segment) {};

Member Function Documentation

int L1RPCDevCoords::getPAC ( ) [inline]

Definition at line 38 of file L1RPCHwConfig.h.

References m_PAC.

{return m_PAC;};
int L1RPCDevCoords::getSector ( ) [inline]

Definition at line 39 of file L1RPCHwConfig.h.

References m_PAC.

{return m_PAC/12;};
int L1RPCDevCoords::getSegment ( ) [inline]

Definition at line 40 of file L1RPCHwConfig.h.

References m_PAC.

{return m_PAC%12;};
int L1RPCDevCoords::getTower ( ) [inline]

Definition at line 37 of file L1RPCHwConfig.h.

References m_tower.

{return m_tower;};
bool L1RPCDevCoords::operator< ( const L1RPCDevCoords l2) const [inline]

Definition at line 48 of file L1RPCHwConfig.h.

References m_PAC, and m_tower.

                                                  {
    if (this->m_tower != l2.m_tower)
       return this->m_tower < l2.m_tower;
    return this->m_PAC < l2.m_PAC;
  }
bool L1RPCDevCoords::operator== ( const L1RPCDevCoords l2) const [inline]

Definition at line 54 of file L1RPCHwConfig.h.

References m_PAC, and m_tower.

                                                  {
    return (this->m_tower == l2.m_tower) && (this->m_PAC == l2.m_PAC);
  }
std::string L1RPCDevCoords::toString ( ) const [inline]

Definition at line 42 of file L1RPCHwConfig.h.

References m_PAC, and m_tower.

                             { 
      std::stringstream ss;
      ss << m_tower << " " << m_PAC;  
      return ss.str();
  };

Member Data Documentation

signed short L1RPCDevCoords::m_PAC

Definition at line 61 of file L1RPCHwConfig.h.

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

Definition at line 60 of file L1RPCHwConfig.h.

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