CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
HGCHEDetId.cc File Reference
#include "DataFormats/ForwardDetId/interface/HGCHEDetId.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 HGCHEDetId &id)
 

Function Documentation

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

Definition at line 51 of file HGCHEDetId.cc.

References TauDecayModes::dec, HGCHEB, and HGCHEF.

51  {
52  if (id.subdet() == HGCHEF || id.subdet() == HGCHEB) {
53  return s << "isHE=" << id.isHE() << " zpos=" << id.zside() << " layer=" << id.layer()
54  << " phi subSector=" << id.subsector() << " sector=" << id.sector() << " cell=" << id.cell();
55  } else {
56  return s << std::hex << id.rawId() << std::dec;
57  }
58 }