#include <ostream>
#include "DataFormats/DetId/interface/DetId.h"
Go to the source code of this file.
Classes | |
class | HcalZDCDetId |
Contents of the HcalZDCDetId : [6] Z position (true for positive) [5:4] Section (EM/HAD/Lumi) [3:0] Channel (depth). More... | |
Defines | |
#define | HcalZDCDetId_h_included 1 |
Functions | |
std::ostream & | operator<< (std::ostream &, const HcalZDCDetId &id) |
#define HcalZDCDetId_h_included 1 |
Definition at line 2 of file HcalZDCDetId.h.
std::ostream& operator<< | ( | std::ostream & | , | |
const HcalZDCDetId & | id | |||
) |
Definition at line 73 of file HcalZDCDetId.cc.
References HcalZDCDetId::EM, HcalZDCDetId::HAD, HcalZDCDetId::LUM, and HcalZDCDetId::section().
00073 { 00074 s << "(ZDC" << ((id.zside()==1)?("+"):("-")); 00075 switch (id.section()) { 00076 case(HcalZDCDetId::EM) : s << " EM "; break; 00077 case(HcalZDCDetId::HAD) : s << " HAD "; break; 00078 case(HcalZDCDetId::LUM) : s << " LUM "; break; 00079 default : s <<" UNKNOWN "; 00080 } 00081 return s << id.depth() << ')'; 00082 }