#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) |
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.
{ switch (id.subdet()) { case(HcalDcsBarrel) : return s << "(HB" << id.zside() << ' ' << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')'; case(HcalDcsEndcap) : return s << "(HE" << id.zside() << ' ' << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')'; case(HcalDcsOuter) : return s << "(HO" << id.ring() << " " << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')'; case(HcalDcsForward) : return s << "(HF" << id.zside() << ' ' << ((id.type()<=HcalDcsDetId::DYN8)? "Q" : "") << id.slice() << ' ' << id.typeString(id.type()) << id.subchannel() << ')'; default : return s << id.rawId(); } }