CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  HcalGenericDetId
 

Functions

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

Function Documentation

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

Definition at line 74 of file HcalGenericDetId.cc.

References TauDecayModes::dec, HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenCalibration, HcalGenericDetId::HcalGenCastor, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenTriggerTower, HcalGenericDetId::HcalGenZDC, DetId::null(), and alignCSCRings::s.

Referenced by HcalGenericDetId::HcalGenericDetId().

74  {
75  if (id.null()) s << "(Null Id)";
76  else
77  switch (id.genericSubdet()) {
81  case HcalGenericDetId::HcalGenForward: s << HcalDetId(id); break;
83  case HcalGenericDetId::HcalGenZDC: s << HcalZDCDetId(id); break;
86  default: s << "(Hcal Unknown Id: 0x" << std::hex << id.rawId() << std::dec << ')';
87  }
88  return s;
89 }