CMS 3D CMS Logo

Functions
HcalCastorDetId.cc File Reference
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
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:2049
HcalCastorDetId::HAD
Definition: HcalCastorDetId.h:25
HcalCastorDetId::EM
Definition: HcalCastorDetId.h:25