CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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.

124  {
125  m_Tower = 0;
126  m_LogSector = 0;
127  m_LogSegment = 0;
128  }
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.

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

Member Function Documentation

int RPCConst::l1RpcConeCrdnts::getSegmentNum ( )
inline

Definition at line 136 of file RPCConst.h.

References m_LogSector, and m_LogSegment.

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

Definition at line 267 of file RPCConst.cc.

References m_LogSector, m_LogSegment, and m_Tower.

267  {
268  if(m_Tower != cone.m_Tower)
269  return (m_Tower < cone.m_Tower);
270  if(m_LogSector != cone.m_LogSector)
271  return (m_LogSector < cone.m_LogSector);
272  if(m_LogSegment != cone.m_LogSegment)
273  return (m_LogSegment < cone.m_LogSegment);
274 
275  return false;
276 }
bool RPCConst::l1RpcConeCrdnts::operator== ( const l1RpcConeCrdnts cone) const

Definition at line 278 of file RPCConst.cc.

References m_LogSector, m_LogSegment, and m_Tower.

278  {
279  if(m_Tower != cone.m_Tower)
280  return false;
281  if(m_LogSector != cone.m_LogSector)
282  return false;
283  if(m_LogSegment != cone.m_LogSegment)
284  return false;
285 
286  return true;
287 }

Member Data Documentation

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