CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DataFormats/HcalDetId/src/HcalDcsDetId.cc File Reference

#include "DataFormats/HcalDetId/interface/HcalDcsDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <ostream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 59 of file HcalDcsDetId.cc.

References HcalDcsDetId::DYN8, HcalDcsBarrel, HcalDcsEndcap, HcalDcsForward, and HcalDcsOuter.

                                                             {
  switch (id.subdet()) {
  case(HcalDcsBarrel) : return s << "(HB" << id.zside() << ' ' 
                                 << id.slice() << ' ' << id.typeString(id.type())
                                 << id.subchannel()
                                 << ')';
  case(HcalDcsEndcap) : return s << "(HE" << id.zside() << ' '
                                 << id.slice() << ' ' << id.typeString(id.type())
                                 << id.subchannel()
                                 << ')';
  case(HcalDcsOuter) : return s << "(HO" << id.ring() << " " 
                                << id.slice() << ' ' << id.typeString(id.type())
                                << id.subchannel()
                                << ')';
  case(HcalDcsForward) : return s << "(HF" << id.zside() << ' '
                                  << ((id.type()<=HcalDcsDetId::DYN8)? "Q" : "")
                                  << id.slice() << ' ' << id.typeString(id.type())
                                  << id.subchannel()
                                  << ')';
  default : return s << id.rawId();
  }
}