CMS 3D CMS Logo

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

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

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