CMS 3D CMS Logo

Classes | Functions
HcalDcsDetId.h File Reference
#include <iosfwd>
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"

Go to the source code of this file.

Classes

class  HcalDcsDetId
 

Functions

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

Function Documentation

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

Definition at line 66 of file HcalDcsDetId.cc.

References HcalDcsDetId::DYN8, HcalDcsBarrel, HcalDcsEndcap, HcalDcsForward, HcalDcsOuter, HcalOtherDetId::subdet(), and HcalDcsDetId::type().

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 }
type
Definition: HCALResponse.h:21