CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
HcalDcsDetId.cc File Reference
#include "DataFormats/HcalDetId/interface/HcalDcsDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <ostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HcalDcsDetId &id)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HcalDcsDetId id 
)

Definition at line 66 of file HcalDcsDetId.cc.

References HcalDcsDetId::DYN8, HcalDcsBarrel, HcalDcsEndcap, HcalDcsForward, and HcalDcsOuter.

66  {
67  switch (id.subdet()) {
68  case (HcalDcsBarrel):
69  return s << "(HB" << id.zside() << ' ' << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')';
70  case (HcalDcsEndcap):
71  return s << "(HE" << id.zside() << ' ' << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')';
72  case (HcalDcsOuter):
73  return s << "(HO" << id.ring() << " " << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')';
74  case (HcalDcsForward):
75  return s << "(HF" << id.zside() << ' ' << ((id.type() <= HcalDcsDetId::DYN8) ? "Q" : "") << id.slice() << ' '
76  << id.typeString(id.type()) << id.subchannel() << ')';
77  default:
78  return s << id.rawId();
79  }
80 }