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

◆ operator<<()

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

Definition at line 89 of file HcalGenericDetId.cc.

References TauDecayModes::dec, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenCalibration, HcalGenericDetId::HcalGenCastor, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenTriggerTower, HcalGenericDetId::HcalGenZDC, and alignCSCRings::s.

89  {
90  if (id.null())
91  s << "(Null Id)";
92  else
93  switch (id.genericSubdet()) {
98  s << HcalDetId(id);
99  break;
101  s << HcalTrigTowerDetId(id);
102  break;
104  s << HcalZDCDetId(id);
105  break;
107  s << HcalCastorDetId(id);
108  break;
110  s << HcalCalibDetId(id);
111  break;
112  default:
113  s << "(Hcal Unknown Id: 0x" << std::hex << id.rawId() << std::dec << ')';
114  }
115  return s;
116 }