CMS 3D CMS Logo

Public Member Functions | Public Attributes

RPCConst::l1RpcConeCrdnts Struct Reference

The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment. More...

#include <RPCConst.h>

List of all members.

Public Member Functions

int getSegmentNum ()
 l1RpcConeCrdnts (int m_tower, int logSector, int logSegment)
 l1RpcConeCrdnts ()
bool operator< (const l1RpcConeCrdnts &cone) const
bool operator== (const l1RpcConeCrdnts &cone) const

Public Attributes

int m_LogSector
int m_LogSegment
int m_Tower

Detailed Description

The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.

Definition at line 119 of file RPCConst.h.


Constructor & Destructor Documentation

RPCConst::l1RpcConeCrdnts::l1RpcConeCrdnts ( ) [inline]

Definition at line 124 of file RPCConst.h.

References m_LogSector, m_LogSegment, and m_Tower.

                        {
        m_Tower = 0;
        m_LogSector = 0;
        m_LogSegment = 0;
      }
RPCConst::l1RpcConeCrdnts::l1RpcConeCrdnts ( int  m_tower,
int  logSector,
int  logSegment 
) [inline]

Definition at line 130 of file RPCConst.h.

References m_LogSector, m_LogSegment, and m_Tower.

                                                                   {
        m_Tower = m_tower;
        m_LogSector = logSector ;
        m_LogSegment = logSegment;
      }

Member Function Documentation

int RPCConst::l1RpcConeCrdnts::getSegmentNum ( ) [inline]

Definition at line 136 of file RPCConst.h.

References m_LogSector, and m_LogSegment.

                          {
        return m_LogSector * 12 + m_LogSegment;
      }
bool RPCConst::l1RpcConeCrdnts::operator< ( const l1RpcConeCrdnts cone) const

Definition at line 267 of file RPCConst.cc.

References m_LogSector, m_LogSegment, and m_Tower.

                                                                          {
  if(m_Tower != cone.m_Tower)
    return (m_Tower < cone.m_Tower);
  if(m_LogSector != cone.m_LogSector)
    return (m_LogSector < cone.m_LogSector);
  if(m_LogSegment != cone.m_LogSegment)
    return (m_LogSegment < cone.m_LogSegment);

  return false;
}
bool RPCConst::l1RpcConeCrdnts::operator== ( const l1RpcConeCrdnts cone) const

Definition at line 278 of file RPCConst.cc.

References m_LogSector, m_LogSegment, and m_Tower.

                                                                           {
  if(m_Tower != cone.m_Tower)
    return false;
  if(m_LogSector != cone.m_LogSector)
    return false;
  if(m_LogSegment != cone.m_LogSegment)
    return false;

  return true;
}

Member Data Documentation