CMS 3D CMS Logo

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 124 of file HcalCalibDetId.cc.

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

124  {
125  std::string sd;
126  switch (id.hcalSubdet()) {
127  case(HcalBarrel) : sd="HB"; break;
128  case(HcalEndcap) : sd="HE"; break;
129  case(HcalOuter) : sd="HO"; break;
130  case(HcalForward) : sd="HF"; break;
131  default: break;
132  }
133  switch (id.calibFlavor()) {
135  return s << "(HcalCalibBox " << sd << ' ' << id.ieta() << "," << id.iphi()
136  << ' ' << id.cboxChannelString() << ')';
138  return s << "(HOCrosstalk " << id.ieta() << "," << id.iphi()
139  << ')';
140  case (HcalCalibDetId::uMNqie):
141  return s << "(uMNqie " << id.channel() << ')';
143  return s << "(LASERMON" << id.channel() << ')';
145  return s << "(CastorRadFacility " << id.rm() << " / " << id.fiber() << " / " << id.channel() << ')';
146  case (HcalCalibDetId::HBX):
147  return s << "(HBX " << id.ieta() << "," << id.iphi() << ")";
148  case (HcalCalibDetId::HEX):
149  return s << "(HEX " << id.ieta() << "," << id.iphi() << ")";
150  default: return s;
151  };
152 }
double sd