CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/HcalDetId/interface/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 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() << ')';
}