CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
HGCHEDetId.h File Reference
#include <iosfwd>
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h"

Go to the source code of this file.

Classes

class  HGCHEDetId
 

Functions

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

Function Documentation

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

Definition at line 51 of file HGCHEDetId.cc.

References TauDecayModes::dec, HGCHEB, HGCHEF, and HGCHET.

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