CMS 3D CMS Logo

Functions
HcalGenericDetId.cc File Reference
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDetId/interface/HcalCalibDetId.h"
#include <iostream>
#include <cstdlib>

Go to the source code of this file.

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
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 }