DataFormats
ForwardDetId
src
HGCSiliconDetIdToModule.cc
Go to the documentation of this file.
1
#include "
DataFormats/ForwardDetId/interface/HGCSiliconDetIdToModule.h
"
2
3
HGCSiliconDetIdToModule::HGCSiliconDetIdToModule
() {}
4
5
std::vector<HGCSiliconDetId>
HGCSiliconDetIdToModule::getDetIds
(
HGCSiliconDetId
const
&
id
)
const
{
6
std::vector<HGCSiliconDetId> ids;
7
int
nCells
= (
id
.type() == 0) ?
HGCSiliconDetId::HGCalFineN
:
HGCSiliconDetId::HGCalCoarseN
;
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
HGCSiliconDetId
newId(
id
.det(),
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<HGCalTriggerDetId>
HGCSiliconDetIdToModule::getDetTriggerIds
(
HGCSiliconDetId
const
&
id
)
const
{
20
std::vector<HGCalTriggerDetId> ids;
21
int
nCells
=
HGCSiliconDetId::HGCalFineN
/
HGCSiliconDetId::HGCalFineTrigger
;
22
int
subdet = (
id
.det() ==
DetId::HGCalEE
) ?
HGCalEETrigger
:
HGCalHSiTrigger
;
23
for
(
int
u = 0; u < 2 *
nCells
; ++u) {
24
for
(
int
v
= 0;
v
< 2 *
nCells
; ++
v
) {
25
if
(((
v
- u) <
nCells
) && (u -
v
) <=
nCells
) {
26
HGCalTriggerDetId
newId(subdet,
id
.
zside
(),
id
.
type
(),
id
.
layer
(),
id
.
waferU
(),
id
.
waferV
(), u,
v
);
27
ids.emplace_back(newId);
28
}
29
}
30
}
31
return
ids;
32
}
HGCSiliconDetIdToModule::HGCSiliconDetIdToModule
HGCSiliconDetIdToModule()
Definition:
HGCSiliconDetIdToModule.cc:3
ecaldqm::zside
int zside(DetId const &)
Definition:
EcalDQMCommonUtils.cc:189
HGCSiliconDetId::HGCalCoarseN
static const int HGCalCoarseN
Definition:
HGCSiliconDetId.h:26
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition:
HGCalWaferIndex.cc:27
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
nCells
const caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple cms::cuda::AtomicPairCounter const GPUCACell *__restrict__ const uint32_t *__restrict__ nCells
Definition:
CAHitNtupletGeneratorKernelsImpl.h:43
HGCSiliconDetId::HGCalFineN
static const int HGCalFineN
Definition:
HGCSiliconDetId.h:25
HGCalHSiTrigger
Definition:
ForwardSubdetector.h:14
HGCSiliconDetId
Definition:
HGCSiliconDetId.h:22
HGCSiliconDetIdToModule.h
DetId::HGCalEE
Definition:
DetId.h:32
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition:
HGCalWaferIndex.cc:32
HGCalEETrigger
Definition:
ForwardSubdetector.h:14
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition:
phase1PixelTopology.h:99
HGCalTriggerDetId
Definition:
HGCalTriggerDetId.h:26
HGCSiliconDetIdToModule::getDetTriggerIds
std::vector< HGCalTriggerDetId > getDetTriggerIds(HGCSiliconDetId const &id) const
Definition:
HGCSiliconDetIdToModule.cc:19
gainCalibHelper::gainCalibPI::type
type
Definition:
SiPixelGainCalibHelper.h:40
HGCSiliconDetId::HGCalFineTrigger
static const int HGCalFineTrigger
Definition:
HGCSiliconDetId.h:27
HGCSiliconDetIdToModule::getDetIds
std::vector< HGCSiliconDetId > getDetIds(HGCSiliconDetId const &id) const
Definition:
HGCSiliconDetIdToModule.cc:5
Generated for CMSSW Reference Manual by
1.8.16