CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
RPCConst::l1RpcConeCrdnts Struct Reference

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

#include <RPCConst.h>

Public Member Functions

int getSegmentNum ()
 
 l1RpcConeCrdnts ()
 
 l1RpcConeCrdnts (int m_tower, int logSector, int logSegment)
 
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 118 of file RPCConst.h.

Constructor & Destructor Documentation

RPCConst::l1RpcConeCrdnts::l1RpcConeCrdnts ( )
inline

Definition at line 123 of file RPCConst.h.

123  {
124  m_Tower = 0;
125  m_LogSector = 0;
126  m_LogSegment = 0;
127  }
RPCConst::l1RpcConeCrdnts::l1RpcConeCrdnts ( int  m_tower,
int  logSector,
int  logSegment 
)
inline

Definition at line 129 of file RPCConst.h.

129  {
130  m_Tower = m_tower;
131  m_LogSector = logSector;
132  m_LogSegment = logSegment;
133  }

Member Function Documentation

int RPCConst::l1RpcConeCrdnts::getSegmentNum ( )
inline

Definition at line 135 of file RPCConst.h.

References m_LogSegment, operator<(), and operator==().

bool RPCConst::l1RpcConeCrdnts::operator< ( const l1RpcConeCrdnts cone) const

Definition at line 279 of file RPCConst.cc.

References m_LogSector, m_LogSegment, and m_Tower.

Referenced by getSegmentNum().

279  {
280  if (m_Tower != cone.m_Tower)
281  return (m_Tower < cone.m_Tower);
282  if (m_LogSector != cone.m_LogSector)
283  return (m_LogSector < cone.m_LogSector);
284  if (m_LogSegment != cone.m_LogSegment)
285  return (m_LogSegment < cone.m_LogSegment);
286 
287  return false;
288 }
bool RPCConst::l1RpcConeCrdnts::operator== ( const l1RpcConeCrdnts cone) const

Definition at line 290 of file RPCConst.cc.

References m_LogSector, m_LogSegment, and m_Tower.

Referenced by getSegmentNum().

290  {
291  if (m_Tower != cone.m_Tower)
292  return false;
293  if (m_LogSector != cone.m_LogSector)
294  return false;
295  if (m_LogSegment != cone.m_LogSegment)
296  return false;
297 
298  return true;
299 }

Member Data Documentation

int RPCConst::l1RpcConeCrdnts::m_LogSector
int RPCConst::l1RpcConeCrdnts::m_LogSegment
int RPCConst::l1RpcConeCrdnts::m_Tower