#include <ostream>
#include "DataFormats/DetId/interface/DetId.h"
Go to the source code of this file.
Classes | |
class | HcalZDCDetId |
Functions | |
std::ostream & | operator<< (std::ostream &, const HcalZDCDetId &id) |
std::ostream& operator<< | ( | std::ostream & | , |
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() << ')'; }