CMS 3D CMS Logo

HcalChannelId Class Reference

#include <CaloOnlineTools/HcalOnlineDb/interface/HcalQIEManager.h>

List of all members.

Public Member Functions

 HcalChannelId ()
bool operator< (const HcalChannelId &other) const
 ~HcalChannelId ()

Public Attributes

int depth
int eta
int phi
std::string subdetector


Detailed Description

Definition at line 23 of file HcalQIEManager.h.


Constructor & Destructor Documentation

HcalChannelId::HcalChannelId (  )  [inline]

Definition at line 27 of file HcalQIEManager.h.

00027 {};

HcalChannelId::~HcalChannelId (  )  [inline]

Definition at line 28 of file HcalQIEManager.h.

00028 {};


Member Function Documentation

bool HcalChannelId::operator< ( const HcalChannelId other  )  const

Definition at line 27 of file HcalQIEManager.cc.

References depth, eta, phi, HLT_VtxMuL3::result, and subdetector.

00027                                                                {
00028   bool result=false;
00029   long long int _res_this, _res_other;
00030   int _sub_this, _sub_other;
00031 
00032   if (this->subdetector == "HE") _sub_this=1;
00033   else if (this->subdetector == "HF") _sub_this=2;
00034   else if (this->subdetector == "HO") _sub_this=3;
00035   else  _sub_this=4;
00036   
00037   if (other.subdetector == "HE") _sub_other=1;
00038   else if (other.subdetector == "HF") _sub_other=2;
00039   else if (other.subdetector == "HO") _sub_other=3;
00040   else  _sub_other=4;
00041   
00042 
00043   _res_this = 100+eta + (phi+100)*1000 + (depth+10)*1000000 + _sub_this*1000000000;
00044   _res_other = 100+other.eta + (other.phi+100)*1000 + (other.depth+10)*1000000 + _sub_other*1000000000;
00045 
00046   return _res_this < _res_other;
00047 }


Member Data Documentation

int HcalChannelId::depth

Definition at line 28 of file HcalQIEManager.h.

Referenced by operator<().

int HcalChannelId::eta

Definition at line 28 of file HcalQIEManager.h.

Referenced by operator<().

int HcalChannelId::phi

Definition at line 28 of file HcalQIEManager.h.

Referenced by operator<().

std::string HcalChannelId::subdetector

Definition at line 31 of file HcalQIEManager.h.

Referenced by operator<().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:30 2009 for CMSSW by  doxygen 1.5.4