CMS 3D CMS Logo

Functions
HcalDetId.cc File Reference
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include <ostream>
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 7 of file HcalDetId.cc.

7  {
8  switch (id.subdet()) {
9  case (HcalBarrel):
10  return s << "(HB " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
11  case (HcalEndcap):
12  return s << "(HE " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
13  case (HcalForward):
14  return s << "(HF " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
15  case (HcalOuter):
16  return s << "(HO " << id.ieta() << ',' << id.iphi() << ')';
17  case (HcalTriggerTower):
18  return s << "(HT " << id.ieta() << ',' << id.iphi() << ')';
19  default:
20  return s << std::hex << id.rawId() << std::dec;
21  }
22 }

References TauDecayModes::dec, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalTriggerTower, and alignCSCRings::s.

HcalBarrel
Definition: HcalAssistant.h:33
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalOuter
Definition: HcalAssistant.h:35
HcalForward
Definition: HcalAssistant.h:36
HcalEndcap
Definition: HcalAssistant.h:34
HcalTriggerTower
Definition: HcalAssistant.h:37
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142