CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 92 of file HcalCalibDetId.cc.

References HcalCalibDetId::CalibrationBox, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalCalibDetId::HOCrosstalk, and asciidump::s.

92  {
93  std::string sd;
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 }
string s
Definition: asciidump.py:422