DataFormats
ForwardDetId
src
HFNoseDetIdToModule.cc
Go to the documentation of this file.
1
#include "
DataFormats/ForwardDetId/interface/HFNoseDetIdToModule.h
"
2
3
HFNoseDetIdToModule::HFNoseDetIdToModule
() {}
4
5
std::vector<HFNoseDetId>
HFNoseDetIdToModule::getDetIds
(
HFNoseDetId
const
&
id
)
const
{
6
std::vector<HFNoseDetId> ids;
7
int
nCells = (
id
.type() == 0) ?
HFNoseDetId::HFNoseFineN
:
HFNoseDetId::HFNoseCoarseN
;
8
for
(
int
u = 0; u < 2 * nCells; ++u) {
9
for
(
int
v
= 0;
v
< 2 * nCells; ++
v
) {
10
if
(((
v
- u) < nCells) && (u -
v
) <= nCells) {
11
HFNoseDetId
newId(
id
.
zside
(),
id
.
type
(),
id
.layer(),
id
.waferU(),
id
.waferV(), u,
v
);
12
ids.emplace_back(newId);
13
}
14
}
15
}
16
return
ids;
17
}
18
19
std::vector<HFNoseTriggerDetId>
HFNoseDetIdToModule::getTriggerDetIds
(
HFNoseDetId
const
&
id
)
const
{
20
std::vector<HFNoseTriggerDetId> ids;
21
int
nCells =
HFNoseDetId::HFNoseFineN
/
HFNoseDetId::HFNoseFineTrigger
;
22
for
(
int
u = 0; u < 2 * nCells; ++u) {
23
for
(
int
v
= 0;
v
< 2 * nCells; ++
v
) {
24
if
(((
v
- u) < nCells) && (u -
v
) <= nCells) {
25
HFNoseTriggerDetId
newId(
HFNoseTrigger
,
id
.
zside
(),
id
.
type
(),
id
.layer(),
id
.waferU(),
id
.waferV(), u,
v
);
26
ids.emplace_back(newId);
27
}
28
}
29
}
30
return
ids;
31
}
ecaldqm::zside
int zside(DetId const &)
Definition:
EcalDQMCommonUtils.cc:189
HFNoseDetIdToModule.h
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
HFNoseDetId
Definition:
HFNoseDetId.h:22
HFNoseTriggerDetId
Definition:
HFNoseTriggerDetId.h:26
HFNoseDetIdToModule::getDetIds
std::vector< HFNoseDetId > getDetIds(HFNoseDetId const &id) const
Definition:
HFNoseDetIdToModule.cc:5
HFNoseDetId::HFNoseFineN
static const int HFNoseFineN
Definition:
HFNoseDetId.h:25
HFNoseDetId::HFNoseFineTrigger
static const int HFNoseFineTrigger
Definition:
HFNoseDetId.h:27
HFNoseTrigger
Definition:
ForwardSubdetector.h:14
HFNoseDetIdToModule::HFNoseDetIdToModule
HFNoseDetIdToModule()
Definition:
HFNoseDetIdToModule.cc:3
type
type
Definition:
HCALResponse.h:21
HFNoseDetIdToModule::getTriggerDetIds
std::vector< HFNoseTriggerDetId > getTriggerDetIds(HFNoseDetId const &id) const
Definition:
HFNoseDetIdToModule.cc:19
HFNoseDetId::HFNoseCoarseN
static const int HFNoseCoarseN
Definition:
HFNoseDetId.h:26
Generated for CMSSW Reference Manual by
1.8.16