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

◆ l1RpcConeCrdnts() [1/2]

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  }

References m_LogSector, m_LogSegment, and m_Tower.

◆ l1RpcConeCrdnts() [2/2]

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  }

References m_LogSector, m_LogSegment, and m_Tower.

Member Function Documentation

◆ getSegmentNum()

int RPCConst::l1RpcConeCrdnts::getSegmentNum ( )
inline

Definition at line 135 of file RPCConst.h.

135 { return m_LogSector * 12 + m_LogSegment; }

References m_LogSector, and m_LogSegment.

◆ operator<()

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

Definition at line 279 of file RPCConst.cc.

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 }

References m_LogSector, m_LogSegment, and m_Tower.

◆ operator==()

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

Definition at line 290 of file RPCConst.cc.

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 }

References m_LogSector, m_LogSegment, and m_Tower.

Member Data Documentation

◆ m_LogSector

int RPCConst::l1RpcConeCrdnts::m_LogSector

◆ m_LogSegment

int RPCConst::l1RpcConeCrdnts::m_LogSegment

◆ m_Tower

int RPCConst::l1RpcConeCrdnts::m_Tower
RPCConst::l1RpcConeCrdnts::m_Tower
int m_Tower
Definition: RPCConst.h:119
RPCConst::l1RpcConeCrdnts::m_LogSegment
int m_LogSegment
Definition: RPCConst.h:121
RPCConst::l1RpcConeCrdnts::m_LogSector
int m_LogSector
Definition: RPCConst.h:120