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 117 of file RPCConst.h.

Constructor & Destructor Documentation

◆ l1RpcConeCrdnts() [1/2]

RPCConst::l1RpcConeCrdnts::l1RpcConeCrdnts ( )
inline

Definition at line 122 of file RPCConst.h.

References m_LogSector, m_LogSegment, and m_Tower.

122  {
123  m_Tower = 0;
124  m_LogSector = 0;
125  m_LogSegment = 0;
126  }

◆ l1RpcConeCrdnts() [2/2]

RPCConst::l1RpcConeCrdnts::l1RpcConeCrdnts ( int  m_tower,
int  logSector,
int  logSegment 
)
inline

Definition at line 128 of file RPCConst.h.

References m_LogSector, m_LogSegment, and m_Tower.

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

Member Function Documentation

◆ getSegmentNum()

int RPCConst::l1RpcConeCrdnts::getSegmentNum ( )
inline

Definition at line 134 of file RPCConst.h.

References m_LogSector, and m_LogSegment.

◆ operator<()

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

Definition at line 279 of file RPCConst.cc.

References hltPFPuppi_cfi::cone, m_LogSector, m_LogSegment, and m_Tower.

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 }

◆ operator==()

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

Definition at line 290 of file RPCConst.cc.

References hltPFPuppi_cfi::cone.

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

◆ m_LogSector

int RPCConst::l1RpcConeCrdnts::m_LogSector

◆ m_LogSegment

int RPCConst::l1RpcConeCrdnts::m_LogSegment

◆ m_Tower

int RPCConst::l1RpcConeCrdnts::m_Tower