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

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

92  {
94  switch (id.hcalSubdet()) {
95  case(HcalBarrel) : sd="HB"; break;
96  case(HcalEndcap) : sd="HE"; break;
97  case(HcalOuter) : sd="HO"; break;
98  case(HcalForward) : sd="HF"; break;
99  default: break;
100  }
101  switch (id.calibFlavor()) {
103  return s << "(HcalCalibBox " << sd << ' ' << id.ieta() << "," << id.iphi()
104  << ' ' << id.cboxChannelString() << ')';
106  return s << "(HOCrosstalk " << id.ieta() << "," << id.iphi()
107  << ')';
108  default: return s;
109  };
110 }
double sd