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

◆ operator<<()

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

Definition at line 66 of file HcalDcsDetId.cc.

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 }

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

HcalDcsEndcap
Definition: HcalSubdetector.h:18
HcalDcsDetId::DYN8
Definition: HcalDcsDetId.h:34
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalDcsOuter
Definition: HcalSubdetector.h:19
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
HcalDcsBarrel
Definition: HcalSubdetector.h:17
HcalDcsForward
Definition: HcalSubdetector.h:20