Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CondFormats
HcalObjects
src
HcalDetIdRelationship.cc
Go to the documentation of this file.
1
#include "
CondFormats/HcalObjects/interface/HcalDetIdRelationship.h
"
2
3
bool
hcalEqualDetId
(uint32_t
id
,
const
DetId
& fId) {
4
return
((fId.
det
() ==
DetId::Hcal
&&
HcalDetId
(
id
) ==
HcalDetId
(fId)) ||
5
(fId.
det
() ==
DetId::Calo
&& fId.
subdetId
() ==
HcalZDCDetId::SubdetectorId
&&
6
HcalZDCDetId
(
id
) ==
HcalZDCDetId
(fId)) ||
7
(fId.
det
() !=
DetId::Hcal
&& (fId.
det
() ==
DetId::Calo
&& fId.
subdetId
() !=
HcalZDCDetId::SubdetectorId
) &&
8
(
id
== fId.
rawId
())));
9
}
10
11
DetId
hcalTransformedId
(
const
DetId
& aid) {
12
DetId
id
;
13
if
(aid.
det
() ==
DetId::Hcal
) {
14
HcalDetId
hcid(aid);
15
id
=
HcalDetId
(hcid.
subdet
(), hcid.
ieta
(), hcid.
iphi
(), hcid.
depth
());
16
}
else
if
(aid.
det
() ==
DetId::Calo
&& aid.
subdetId
() ==
HcalZDCDetId::SubdetectorId
) {
17
HcalZDCDetId
hcid(aid);
18
id
=
HcalZDCDetId
(hcid.
section
(), (hcid.
zside
() > 0), hcid.
channel
());
19
}
else
{
20
id
= aid;
21
}
22
return
id
;
23
}
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition:
HcalDetId.h:157
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition:
DetId.h:46
DetId::Hcal
Definition:
DetId.h:28
HcalZDCDetId::channel
int channel() const
get the channel
Definition:
HcalZDCDetId.cc:63
hcalEqualDetId
bool hcalEqualDetId(uint32_t id, const DetId &fId)
Definition:
HcalDetIdRelationship.cc:3
HcalDetId::depth
constexpr int depth() const
get the tower depth
Definition:
HcalDetId.h:164
DetId::Calo
Definition:
DetId.h:29
DetId
Definition:
DetId.h:17
HcalZDCDetId
Definition:
HcalZDCDetId.h:16
HcalZDCDetId::SubdetectorId
static const int SubdetectorId
Definition:
HcalZDCDetId.h:25
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition:
DetId.h:48
HcalZDCDetId::zside
int zside() const
get the z-side of the cell (1/-1)
Definition:
HcalZDCDetId.h:39
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition:
HcalDetId.h:155
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition:
HcalDetId.h:138
HcalDetId
Definition:
HcalDetId.h:12
HcalDetIdRelationship.h
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition:
DetId.h:57
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
hcalTransformedId
DetId hcalTransformedId(const DetId &aid)
Definition:
HcalDetIdRelationship.cc:11
HcalZDCDetId::section
Section section() const
get the section
Definition:
HcalZDCDetId.cc:44
Generated for CMSSW Reference Manual by
1.8.16