CMS 3D CMS Logo

HcalZDCDetId.cc
Go to the documentation of this file.
2 
3 std::ostream& operator<<(std::ostream& s, const HcalZDCDetId& id) {
4  s << "(Det " << id.det() << ":" << DetId::Calo << " subdet " << id.subdetId() << ":" << HcalZDCDetId::SubdetectorId
5  << " ZDC" << ((id.zside() == 1) ? ("+") : ("-"));
6  switch (id.section()) {
7  case (HcalZDCDetId::EM):
8  s << " EM ";
9  break;
10  case (HcalZDCDetId::HAD):
11  s << " HAD ";
12  break;
13  case (HcalZDCDetId::LUM):
14  s << " LUM ";
15  break;
16  case (HcalZDCDetId::RPD):
17  s << " RPD ";
18  break;
19  default:
20  s << " UNKNOWN ";
21  }
22  return s << id.channel() << "," << id.depth() << ')';
23 }
std::ostream & operator<<(std::ostream &s, const HcalZDCDetId &id)
Definition: HcalZDCDetId.cc:3
static constexpr int32_t SubdetectorId
Definition: HcalZDCDetId.h:35