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.

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 }

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

HcalCalibDetId
Definition: HcalCalibDetId.h:45
HcalGenericDetId::HcalGenEndcap
Definition: HcalGenericDetId.h:20
HcalGenericDetId::HcalGenCastor
Definition: HcalGenericDetId.h:26
HcalGenericDetId::HcalGenZDC
Definition: HcalGenericDetId.h:24
HcalZDCDetId
Definition: HcalZDCDetId.h:16
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalCastorDetId
Definition: HcalCastorDetId.h:23
HcalGenericDetId::HcalGenTriggerTower
Definition: HcalGenericDetId.h:23
HcalDetId
Definition: HcalDetId.h:12
HcalGenericDetId::HcalGenBarrel
Definition: HcalGenericDetId.h:19
HcalGenericDetId::HcalGenOuter
Definition: HcalGenericDetId.h:21
HcalGenericDetId::HcalGenForward
Definition: HcalGenericDetId.h:22
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
HcalGenericDetId::HcalGenCalibration
Definition: HcalGenericDetId.h:25
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14