CMS 3D CMS Logo

Classes | Functions

/data/git/CMSSW_5_3_11_patch5/src/DataFormats/HcalDetId/interface/HcalDcsDetId.h File Reference

#include <iosfwd>
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"

Go to the source code of this file.

Classes

class  HcalDcsDetId

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
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();
  }
}