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

References HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::CastorRadFacility, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalCalibDetId::hcalSubdet(), HcalCalibDetId::HOCrosstalk, HcalCalibDetId::LASERMON, 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 << "(LASERMON" << id.channel() << ')';
132  return s << "(CastorRadFacility " << id.rm() << " / " << id.fiber() << " / " << id.channel() << ')';
133  default: return s;
134  };
135 }
double sd