Main Page
Namespaces
Classes
Package Documentation
DataFormats
HcalDetId
src
HcalDetId.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
2
#include <ostream>
3
#include <iostream>
4
5
const
HcalDetId
HcalDetId::Undefined
(
HcalEmpty
,0,0,0);
6
7
std::ostream&
operator<<
(std::ostream&
s
,
const
HcalDetId
&
id
) {
8
switch
(
id
.subdet()) {
9
case
(
HcalBarrel
) :
return
s <<
"(HB "
<<
id
.ieta() <<
','
<<
id
.iphi() <<
','
<<
id
.depth() <<
')'
;
10
case
(
HcalEndcap
) :
return
s <<
"(HE "
<<
id
.ieta() <<
','
<<
id
.iphi() <<
','
<<
id
.depth() <<
')'
;
11
case
(
HcalForward
) :
return
s <<
"(HF "
<<
id
.ieta() <<
','
<<
id
.iphi() <<
','
<<
id
.depth() <<
')'
;
12
case
(
HcalOuter
) :
return
s <<
"(HO "
<<
id
.ieta() <<
','
<<
id
.iphi() <<
')'
;
13
case
(
HcalTriggerTower
) :
return
s <<
"(HT "
<<
id
.ieta() <<
','
<<
id
.iphi() <<
')'
;
14
default
:
return
s << std::hex <<
id
.rawId() <<
std::dec
;
15
}
16
}
17
18
HcalTriggerTower
Definition:
HcalAssistant.h:31
HcalDetId::Undefined
static const HcalDetId Undefined
Definition:
HcalDetId.h:268
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
HcalEndcap
Definition:
HcalAssistant.h:31
HcalDetId
Definition:
HcalDetId.h:13
HcalDetId.h
HcalBarrel
Definition:
HcalAssistant.h:31
HcalForward
Definition:
HcalAssistant.h:31
HcalOuter
Definition:
HcalAssistant.h:31
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
operator<<
std::ostream & operator<<(std::ostream &s, const HcalDetId &id)
Definition:
HcalDetId.cc:7
HcalEmpty
Definition:
HcalAssistant.h:31
Generated for CMSSW Reference Manual by
1.8.11