CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
HcalCalibDetId.h File Reference
#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"

Go to the source code of this file.

Classes

class  HcalCalibDetId
 

Functions

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

Function Documentation

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

Definition at line 149 of file HcalCalibDetId.cc.

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.

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 }
double sd