Geometry
CaloTopology
src
EcalEndcapHardcodedTopology.cc
Go to the documentation of this file.
1
#include "
Geometry/CaloTopology/interface/EcalEndcapHardcodedTopology.h
"
2
3
EEDetId
EcalEndcapHardcodedTopology::incrementIx
(
const
EEDetId
&
id
)
const
{
4
if
(!(
EEDetId::validDetId
(
id
.ix() + 1,
id
.iy(),
id
.
zside
())))
5
return
EEDetId
(0);
// null det id
6
else
7
return
EEDetId
(
id
.ix() + 1,
id
.iy(),
id
.
zside
());
8
}
9
10
EEDetId
EcalEndcapHardcodedTopology::decrementIx
(
const
EEDetId
&
id
)
const
{
11
if
(!(
EEDetId::validDetId
(
id
.ix() - 1,
id
.iy(),
id
.
zside
())))
12
return
EEDetId
(0);
// null det id
13
else
14
return
EEDetId
(
id
.ix() - 1,
id
.iy(),
id
.
zside
());
15
}
16
17
EEDetId
EcalEndcapHardcodedTopology::incrementIy
(
const
EEDetId
&
id
)
const
{
18
if
(!(
EEDetId::validDetId
(
id
.ix(),
id
.iy() + 1,
id
.
zside
())))
19
return
EEDetId
(0);
// null det id
20
else
21
return
EEDetId
(
id
.ix(),
id
.iy() + 1,
id
.
zside
());
22
}
23
24
EEDetId
EcalEndcapHardcodedTopology::decrementIy
(
const
EEDetId
&
id
)
const
{
25
if
(!(
EEDetId::validDetId
(
id
.ix(),
id
.iy() - 1,
id
.
zside
())))
26
return
EEDetId
(0);
// null det id
27
else
28
return
EEDetId
(
id
.ix(),
id
.iy() - 1,
id
.
zside
());
29
}
ecaldqm::zside
int zside(DetId const &)
Definition:
EcalDQMCommonUtils.cc:189
EcalEndcapHardcodedTopology.h
EcalEndcapHardcodedTopology::decrementIx
EEDetId decrementIx(const EEDetId &) const
move the nagivator to smaller ix
Definition:
EcalEndcapHardcodedTopology.cc:10
EcalEndcapHardcodedTopology::decrementIy
EEDetId decrementIy(const EEDetId &) const
move the nagivator to smaller iy
Definition:
EcalEndcapHardcodedTopology.cc:24
EEDetId
Definition:
EEDetId.h:14
EcalEndcapHardcodedTopology::incrementIy
EEDetId incrementIy(const EEDetId &) const
move the nagivator to larger iy
Definition:
EcalEndcapHardcodedTopology.cc:17
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition:
EEDetId.h:248
EcalEndcapHardcodedTopology::incrementIx
EEDetId incrementIx(const EEDetId &) const
move the nagivator to larger ix
Definition:
EcalEndcapHardcodedTopology.cc:3
Generated for CMSSW Reference Manual by
1.8.16