CMS 3D CMS Logo

Functions
HcalZDCDetId.cc File Reference
#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)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HcalZDCDetId id 
)

Definition at line 116 of file HcalZDCDetId.cc.

References HcalZDCDetId::EM, HcalZDCDetId::HAD, HcalZDCDetId::LUM, HcalZDCDetId::RPD, and HcalZDCDetId::section().

116  {
117  s << "(ZDC" << ((id.zside()==1)?("+"):("-"));
118  switch (id.section()) {
119  case(HcalZDCDetId::EM) : s << " EM "; break;
120  case(HcalZDCDetId::HAD) : s << " HAD "; break;
121  case(HcalZDCDetId::LUM) : s << " LUM "; break;
122  case(HcalZDCDetId::RPD) : s << " RPD "; break;
123  default : s << " UNKNOWN ";
124  }
125  return s << id.channel() << "," << id.depth() << ')';
126 }