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 32 of file HcalQIEManager.cc.

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

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

Member Data Documentation

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