#include "DataFormats/HcalDetId/interface/HcalDetId.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 HcalDetId &id) |
std::ostream& operator<< | ( | std::ostream & | s, |
const HcalDetId & | id | ||
) |
Definition at line 59 of file HcalDetId.cc.
References HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.
{ switch (id.subdet()) { case(HcalBarrel) : return s << "(HB " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')'; case(HcalEndcap) : return s << "(HE " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')'; case(HcalForward) : return s << "(HF " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')'; case(HcalOuter) : return s << "(HO " << id.ieta() << ',' << id.iphi() << ')'; default : return s << id.rawId(); } }