CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
HBHELinearMap::HBHEChannelId Class Reference

Public Member Functions

unsigned depth () const
 
 HBHEChannelId ()
 
 HBHEChannelId (const unsigned i_depth, const int i_ieta, const unsigned i_iphi)
 
int ieta () const
 
unsigned iphi () const
 
bool operator!= (const HBHEChannelId &r) const
 
bool operator< (const HBHEChannelId &r) const
 
bool operator== (const HBHEChannelId &r) const
 

Private Attributes

unsigned depth_
 
int ieta_
 
unsigned iphi_
 

Detailed Description

Definition at line 41 of file HBHELinearMap.h.

Constructor & Destructor Documentation

HBHELinearMap::HBHEChannelId::HBHEChannelId ( )
inline

Definition at line 43 of file HBHELinearMap.h.

HBHELinearMap::HBHEChannelId::HBHEChannelId ( const unsigned  i_depth,
const int  i_ieta,
const unsigned  i_iphi 
)
inline

Definition at line 45 of file HBHELinearMap.h.

46  : depth_(i_depth), ieta_(i_ieta), iphi_(i_iphi) {}

Member Function Documentation

unsigned HBHELinearMap::HBHEChannelId::depth ( ) const
inline

Definition at line 49 of file HBHELinearMap.h.

References depth_.

Referenced by HBHELinearMap::getChannelTriple().

49 { return depth_; }
int HBHELinearMap::HBHEChannelId::ieta ( ) const
inline

Definition at line 50 of file HBHELinearMap.h.

References ieta_.

50 { return ieta_; }
unsigned HBHELinearMap::HBHEChannelId::iphi ( ) const
inline

Definition at line 51 of file HBHELinearMap.h.

References iphi_.

51 { return iphi_; }
bool HBHELinearMap::HBHEChannelId::operator!= ( const HBHEChannelId r) const
inline

Definition at line 69 of file HBHELinearMap.h.

References alignCSCRings::r.

69 { return !(*this == r); }
bool HBHELinearMap::HBHEChannelId::operator< ( const HBHEChannelId r) const
inline

Definition at line 53 of file HBHELinearMap.h.

References depth_, ieta_, and iphi_.

53  {
54  if (depth_ < r.depth_)
55  return true;
56  if (r.depth_ < depth_)
57  return false;
58  if (ieta_ < r.ieta_)
59  return true;
60  if (r.ieta_ < ieta_)
61  return false;
62  return iphi_ < r.iphi_;
63  }
bool HBHELinearMap::HBHEChannelId::operator== ( const HBHEChannelId r) const
inline

Definition at line 65 of file HBHELinearMap.h.

References depth_, ieta_, and iphi_.

65  {
66  return depth_ == r.depth_ && ieta_ == r.ieta_ && iphi_ == r.iphi_;
67  }

Member Data Documentation

unsigned HBHELinearMap::HBHEChannelId::depth_
private

Definition at line 72 of file HBHELinearMap.h.

Referenced by depth(), operator<(), and operator==().

int HBHELinearMap::HBHEChannelId::ieta_
private

Definition at line 73 of file HBHELinearMap.h.

Referenced by ieta(), operator<(), and operator==().

unsigned HBHELinearMap::HBHEChannelId::iphi_
private

Definition at line 74 of file HBHELinearMap.h.

Referenced by iphi(), operator<(), and operator==().