CMS 3D CMS Logo

Functions
HcalCalibDetId.cc File Reference
#include "DataFormats/HcalDetId/interface/HcalCalibDetId.h"
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HcalCalibDetId &id)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const HcalCalibDetId id 
)

Definition at line 149 of file HcalCalibDetId.cc.

149  {
150  std::string sd;
151  switch (id.hcalSubdet()) {
152  case (HcalBarrel):
153  sd = "HB";
154  break;
155  case (HcalEndcap):
156  sd = "HE";
157  break;
158  case (HcalOuter):
159  sd = "HO";
160  break;
161  case (HcalForward):
162  sd = "HF";
163  break;
164  default:
165  break;
166  }
167  switch (id.calibFlavor()) {
169  return s << "(HcalCalibBox " << sd << ' ' << id.ieta() << "," << id.iphi() << ' ' << id.cboxChannelString()
170  << ')';
172  return s << "(HOCrosstalk " << id.ieta() << "," << id.iphi() << ')';
173  case (HcalCalibDetId::uMNqie):
174  return s << "(uMNqie " << id.channel() << ')';
176  return s << "(LASERMON" << id.channel() << ')';
178  return s << "(CastorRadFacility " << id.rm() << " / " << id.fiber() << " / " << id.channel() << ')';
179  case (HcalCalibDetId::HBX):
180  return s << "(HBX " << id.ieta() << "," << id.iphi() << ")";
181  case (HcalCalibDetId::HEX):
182  return s << "(HEX " << id.ieta() << "," << id.iphi() << ")";
183  default:
184  return s;
185  };
186 }

References HcalCalibDetId::CalibrationBox, HcalCalibDetId::CastorRadFacility, HcalCalibDetId::HBX, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalCalibDetId::HEX, HcalCalibDetId::HOCrosstalk, HcalCalibDetId::LASERMON, alignCSCRings::s, sd, AlCaHLTBitMon_QueryRunRegistry::string, and HcalCalibDetId::uMNqie.

HcalCalibDetId::uMNqie
Definition: HcalCalibDetId.h:51
HcalBarrel
Definition: HcalAssistant.h:33
HcalCalibDetId::HEX
Definition: HcalCalibDetId.h:55
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalCalibDetId::HBX
Definition: HcalCalibDetId.h:54
HcalOuter
Definition: HcalAssistant.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalCalibDetId::CastorRadFacility
Definition: HcalCalibDetId.h:52
HcalCalibDetId::LASERMON
Definition: HcalCalibDetId.h:53
HcalForward
Definition: HcalAssistant.h:36
HcalCalibDetId::HOCrosstalk
Definition: HcalCalibDetId.h:50
HcalEndcap
Definition: HcalAssistant.h:34
sd
double sd
Definition: CascadeWrapper.h:113
HcalCalibDetId::CalibrationBox
Definition: HcalCalibDetId.h:49