test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 vertexPlots::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 }
string section
Definition: vertexPlots.py:305