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 43 of file HBHELinearMap.h.

Constructor & Destructor Documentation

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

Definition at line 48 of file HBHELinearMap.h.

Member Function Documentation

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

Definition at line 54 of file HBHELinearMap.h.

References depth_.

Referenced by HBHELinearMap::getChannelTriple().

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

Definition at line 55 of file HBHELinearMap.h.

References ieta_.

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

Definition at line 56 of file HBHELinearMap.h.

References iphi_.

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

Definition at line 70 of file HBHELinearMap.h.

References alignCSCRings::r.

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

Definition at line 58 of file HBHELinearMap.h.

References depth_, ieta_, and iphi_.

59  {
60  if (depth_ < r.depth_) return true;
61  if (r.depth_ < depth_) return false;
62  if (ieta_ < r.ieta_) return true;
63  if (r.ieta_ < ieta_) return false;
64  return iphi_ < r.iphi_;
65  }
bool HBHELinearMap::HBHEChannelId::operator== ( const HBHEChannelId r) const
inline

Definition at line 67 of file HBHELinearMap.h.

References depth_, ieta_, and iphi_.

68  {return depth_ == r.depth_ && ieta_ == r.ieta_ && iphi_ == r.iphi_;}

Member Data Documentation

unsigned HBHELinearMap::HBHEChannelId::depth_
private

Definition at line 74 of file HBHELinearMap.h.

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

int HBHELinearMap::HBHEChannelId::ieta_
private

Definition at line 75 of file HBHELinearMap.h.

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

unsigned HBHELinearMap::HBHEChannelId::iphi_
private

Definition at line 76 of file HBHELinearMap.h.

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