src
DataFormats
HcalDetId
src
HcalZDCDetId.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDetId/interface/HcalZDCDetId.h
"
2
3
std::ostream&
operator<<
(std::ostream&
s
,
const
HcalZDCDetId
&
id
) {
4
s
<<
"(Det "
<<
id
.det() <<
":"
<<
DetId::Calo
<<
" subdet "
<<
id
.subdetId() <<
":"
<<
HcalZDCDetId::SubdetectorId
5
<<
" ZDC"
<< ((
id
.zside() == 1) ? (
"+"
) : (
"-"
));
6
switch
(
id
.
section
()) {
7
case
(
HcalZDCDetId::EM
):
8
s
<<
" EM "
;
9
break
;
10
case
(
HcalZDCDetId::HAD
):
11
s
<<
" HAD "
;
12
break
;
13
case
(
HcalZDCDetId::LUM
):
14
s
<<
" LUM "
;
15
break
;
16
case
(
HcalZDCDetId::RPD
):
17
s
<<
" RPD "
;
18
break
;
19
default
:
20
s
<<
" UNKNOWN "
;
21
}
22
return
s
<<
id
.channel() <<
","
<<
id
.depth() <<
')'
;
23
}
DetId::Calo
Definition:
DetId.h:29
HcalZDCDetId::EM
Definition:
HcalZDCDetId.h:33
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
HcalZDCDetId::RPD
Definition:
HcalZDCDetId.h:33
HcalZDCDetId::LUM
Definition:
HcalZDCDetId.h:33
HcalZDCDetId
Definition:
HcalZDCDetId.h:24
hgcalPlots.section
section
Definition:
hgcalPlots.py:2715
HcalZDCDetId.h
operator<<
std::ostream & operator<<(std::ostream &s, const HcalZDCDetId &id)
Definition:
HcalZDCDetId.cc:3
HcalZDCDetId::HAD
Definition:
HcalZDCDetId.h:33
HcalZDCDetId::SubdetectorId
static constexpr int32_t SubdetectorId
Definition:
HcalZDCDetId.h:35
Generated for CMSSW Reference Manual by
1.8.14