CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/HcalDetId/src/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 92 of file HcalCalibDetId.cc.

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

                                                               {
  std::string sd;
  switch (id.hcalSubdet()) {
    case(HcalBarrel) : sd="HB"; break;
    case(HcalEndcap) : sd="HE"; break;
    case(HcalOuter) : sd="HO"; break;
    case(HcalForward) : sd="HF"; break;
    default: break;
  }
  switch (id.calibFlavor()) {
  case(HcalCalibDetId::CalibrationBox):
    return s << "(HcalCalibBox " << sd << ' ' << id.ieta() << "," << id.iphi()
             << ' ' << id.cboxChannelString() << ')';
  case(HcalCalibDetId::HOCrosstalk):
    return s << "(HOCrosstalk "  << id.ieta() << "," << id.iphi() 
             << ')';
  default: return s;
  };
}