CMS 3D CMS Logo

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::HcalChannelId ( )
inline

Definition at line 22 of file HcalQIEManager.h.

22 {};

◆ ~HcalChannelId()

HcalChannelId::~HcalChannelId ( )
inline

Definition at line 23 of file HcalQIEManager.h.

23 {};

Member Function Documentation

◆ operator<()

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

Definition at line 26 of file HcalQIEManager.cc.

26  {
27  long long int _res_this, _res_other;
28  int _sub_this, _sub_other;
29 
30  if (this->subdetector == "HE")
31  _sub_this = 1;
32  else if (this->subdetector == "HF")
33  _sub_this = 2;
34  else if (this->subdetector == "HO")
35  _sub_this = 3;
36  else
37  _sub_this = 4;
38 
39  if (other.subdetector == "HE")
40  _sub_other = 1;
41  else if (other.subdetector == "HF")
42  _sub_other = 2;
43  else if (other.subdetector == "HO")
44  _sub_other = 3;
45  else
46  _sub_other = 4;
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 }

References LEDCalibrationChannels::depth, PVValHelper::eta, trackingPlots::other, phi, and subdetector.

Member Data Documentation

◆ depth

int HcalChannelId::depth

◆ eta

int HcalChannelId::eta

◆ phi

int HcalChannelId::phi

◆ subdetector

std::string HcalChannelId::subdetector
HcalChannelId::eta
int eta
Definition: HcalQIEManager.h:23
HcalChannelId::phi
int phi
Definition: HcalQIEManager.h:23
trackingPlots.other
other
Definition: trackingPlots.py:1464
HcalChannelId::subdetector
std::string subdetector
Definition: HcalQIEManager.h:26
HcalChannelId::depth
int depth
Definition: HcalQIEManager.h:23