#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const HcalZDCDetId &id) |
std::ostream& operator<< | ( | std::ostream & | s, |
const HcalZDCDetId & | id | ||
) |
Definition at line 75 of file HcalZDCDetId.cc.
References HcalZDCDetId::EM, HcalZDCDetId::HAD, and HcalZDCDetId::LUM.
{ s << "(ZDC" << ((id.zside()==1)?("+"):("-")); switch (id.section()) { case(HcalZDCDetId::EM) : s << " EM "; break; case(HcalZDCDetId::HAD) : s << " HAD "; break; case(HcalZDCDetId::LUM) : s << " LUM "; break; default : s <<" UNKNOWN "; } return s << id.channel() << "," << id.depth() << ')'; }