CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
HcalChannelId Class Reference

#include <HcalQIEManager.h>

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 20 of file HcalQIEManager.h.

Constructor & Destructor Documentation

HcalChannelId::HcalChannelId ( )
inline

Definition at line 24 of file HcalQIEManager.h.

24 {};
HcalChannelId::~HcalChannelId ( )
inline

Definition at line 25 of file HcalQIEManager.h.

25 {};

Member Function Documentation

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

Definition at line 36 of file HcalQIEManager.cc.

References depth, eta, eta(), phi, phi, and subdetector.

37 {
38  long long int _res_this, _res_other;
39  int _sub_this, _sub_other;
40 
41  if (this->subdetector == "HE") _sub_this=1;
42  else if (this->subdetector == "HF") _sub_this=2;
43  else if (this->subdetector == "HO") _sub_this=3;
44  else _sub_this=4;
45 
46  if (other.subdetector == "HE") _sub_other=1;
47  else if (other.subdetector == "HF") _sub_other=2;
48  else if (other.subdetector == "HO") _sub_other=3;
49  else _sub_other=4;
50 
51 
52  _res_this = 100+eta + (phi+100)*1000 + (depth+10)*1000000 + _sub_this*1000000000;
53  _res_other = 100+other.eta + (other.phi+100)*1000 + (other.depth+10)*1000000 + _sub_other*1000000000;
54 
55  return _res_this < _res_other;
56 }
std::string subdetector

Member Data Documentation

int HcalChannelId::depth
int HcalChannelId::eta
int HcalChannelId::phi
std::string HcalChannelId::subdetector