test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
HcalZDCDetId.h File Reference
#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)
 

Function Documentation

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

Definition at line 116 of file HcalZDCDetId.cc.

References HcalZDCDetId::EM, HcalZDCDetId::HAD, HcalZDCDetId::LUM, and HcalZDCDetId::RPD.

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 }