#include <CaloOnlineTools/HcalOnlineDb/interface/HcalQIEManager.h>
Public Member Functions | |
HcalChannelId () | |
bool | operator< (const HcalChannelId &other) const |
~HcalChannelId () | |
Public Attributes | |
int | depth |
int | eta |
int | phi |
std::string | subdetector |
Definition at line 23 of file HcalQIEManager.h.
HcalChannelId::HcalChannelId | ( | ) | [inline] |
HcalChannelId::~HcalChannelId | ( | ) | [inline] |
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 }
std::string HcalChannelId::subdetector |