CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/DataFormats/HcalDetId/interface/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 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;
  };
}