CMS 3D CMS Logo

HFNoseDetIdToModule.cc
Go to the documentation of this file.
2 
4 
5 std::vector<HFNoseDetId> HFNoseDetIdToModule::getDetIds(HFNoseDetId const& id) const {
6  std::vector<HFNoseDetId> ids;
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;
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 }
static const int HFNoseCoarseN
Definition: HFNoseDetId.h:26
std::vector< HFNoseDetId > getDetIds(HFNoseDetId const &id) const
int32_t waferU(const int32_t index)
int zside(DetId const &)
static const int HFNoseFineN
Definition: HFNoseDetId.h:25
static const int HFNoseFineTrigger
Definition: HFNoseDetId.h:27
std::vector< HFNoseTriggerDetId > getTriggerDetIds(HFNoseDetId const &id) const
ALPAKA_FN_ACC ALPAKA_FN_INLINE void uint32_t const uint32_t CACellT< TrackerTraits > uint32_t * nCells
int32_t waferV(const int32_t index)