CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
int32_t waferU(const int32_t index)
int zside(DetId const &)
std::vector< HFNoseTriggerDetId > getTriggerDetIds(HFNoseDetId const &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
static const int HFNoseFineN
Definition: HFNoseDetId.h:25
static const int HFNoseFineTrigger
Definition: HFNoseDetId.h:27
std::vector< HFNoseDetId > getDetIds(HFNoseDetId const &id) const
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ nCells
int32_t waferV(const int32_t index)