CMS 3D CMS Logo

Classes | Functions
HcalCastorDetId.h File Reference
#include <ostream>
#include "DataFormats/DetId/interface/DetId.h"

Go to the source code of this file.

Classes

class  HcalCastorDetId
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 78 of file HcalCastorDetId.cc.

78  {
79  s << "(CASTOR" << ((id.zside() == 1) ? ("+") : ("-"));
80 
81  switch (id.section()) {
82  case (HcalCastorDetId::EM):
83  s << " EM ";
84  break;
85  case (HcalCastorDetId::HAD):
86  s << " HAD ";
87  break;
88  default:
89  s << " UNKNOWN ";
90  }
91 
92  return s << id.sector() << ',' << id.module() << ',' << ')';
93 }

References HcalCastorDetId::EM, HcalCastorDetId::HAD, alignCSCRings::s, and hgcalPlots::section.

alignCSCRings.s
s
Definition: alignCSCRings.py:92
hgcalPlots.section
section
Definition: hgcalPlots.py:2679
HcalCastorDetId::HAD
Definition: HcalCastorDetId.h:25
HcalCastorDetId::EM
Definition: HcalCastorDetId.h:25