CMS 3D CMS Logo

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

◆ HBHEChannelId() [1/2]

HBHELinearMap::HBHEChannelId::HBHEChannelId ( )
inline

◆ HBHEChannelId() [2/2]

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

Definition at line 45 of file HBHELinearMap.h.

Member Function Documentation

◆ depth()

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

Definition at line 49 of file HBHELinearMap.h.

References depth_.

49 { return depth_; }

◆ ieta()

int HBHELinearMap::HBHEChannelId::ieta ( ) const
inline

Definition at line 50 of file HBHELinearMap.h.

References ieta_.

50 { return ieta_; }

◆ iphi()

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

Definition at line 51 of file HBHELinearMap.h.

References iphi_.

51 { return iphi_; }

◆ operator!=()

bool HBHELinearMap::HBHEChannelId::operator!= ( const HBHEChannelId r) const
inline

Definition at line 69 of file HBHELinearMap.h.

References alignCSCRings::r.

69 { return !(*this == r); }

◆ operator<()

bool HBHELinearMap::HBHEChannelId::operator< ( const HBHEChannelId r) const
inline

Definition at line 53 of file HBHELinearMap.h.

References depth_, ieta_, iphi_, and alignCSCRings::r.

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  }

◆ operator==()

bool HBHELinearMap::HBHEChannelId::operator== ( const HBHEChannelId r) const
inline

Definition at line 65 of file HBHELinearMap.h.

References depth_, ieta_, iphi_, and alignCSCRings::r.

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

Member Data Documentation

◆ depth_

unsigned HBHELinearMap::HBHEChannelId::depth_
private

Definition at line 72 of file HBHELinearMap.h.

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

◆ ieta_

int HBHELinearMap::HBHEChannelId::ieta_
private

Definition at line 73 of file HBHELinearMap.h.

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

◆ iphi_

unsigned HBHELinearMap::HBHEChannelId::iphi_
private

Definition at line 74 of file HBHELinearMap.h.

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