test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 111 of file HcalCalibDetId.cc.

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

111  {
112  std::string sd;
113  switch (id.hcalSubdet()) {
114  case(HcalBarrel) : sd="HB"; break;
115  case(HcalEndcap) : sd="HE"; break;
116  case(HcalOuter) : sd="HO"; break;
117  case(HcalForward) : sd="HF"; break;
118  default: break;
119  }
120  switch (id.calibFlavor()) {
122  return s << "(HcalCalibBox " << sd << ' ' << id.ieta() << "," << id.iphi()
123  << ' ' << id.cboxChannelString() << ')';
125  return s << "(HOCrosstalk " << id.ieta() << "," << id.iphi()
126  << ')';
127  case (HcalCalibDetId::uMNqie):
128  return s << "(uMNqie " << id.channel() << ')';
130  return s << "(CastorRadFacility " << id.rm() << " / " << id.fiber() << " / " << id.channel() << ')';
131  default: return s;
132  };
133 }
double sd