CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
HGCSiliconDetIdToModule Class Reference

#include <HGCSiliconDetIdToModule.h>

Public Member Functions

std::vector< HGCSiliconDetIdgetDetIds (HGCSiliconDetId const &id) const
 
std::vector< HGCalTriggerDetIdgetDetTriggerIds (HGCSiliconDetId const &id) const
 
 HGCSiliconDetIdToModule ()
 

Static Public Member Functions

static const HGCSiliconDetId getModule (HGCalTriggerDetId const &id)
 
static const HGCSiliconDetId getModule (HGCSiliconDetId const &id)
 

Detailed Description

Definition at line 8 of file HGCSiliconDetIdToModule.h.

Constructor & Destructor Documentation

◆ HGCSiliconDetIdToModule()

HGCSiliconDetIdToModule::HGCSiliconDetIdToModule ( )

This translated TriggerDetId to Module and viceversa for HGCSilicon

Definition at line 3 of file HGCSiliconDetIdToModule.cc.

3 {}

Member Function Documentation

◆ getDetIds()

std::vector< HGCSiliconDetId > HGCSiliconDetIdToModule::getDetIds ( HGCSiliconDetId const &  id) const

Definition at line 5 of file HGCSiliconDetIdToModule.cc.

References HGCSiliconDetId::HGCalHighDensityN, HGCSiliconDetId::HGCalLowDensityN, nano_mu_digi_cff::layer, caHitNtupletGeneratorKernels::nCells, findQualityFiles::v, HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and ecaldqm::zside().

5  {
6  std::vector<HGCSiliconDetId> 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  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 }
int32_t waferU(const int32_t index)
int zside(DetId const &)
static constexpr int32_t HGCalLowDensityN
static constexpr int32_t HGCalHighDensityN
TupleMultiplicity< TrackerTraits > const HitToTuple< TrackerTraits > const cms::cuda::AtomicPairCounter GPUCACellT< TrackerTraits > const *__restrict__ uint32_t const *__restrict__ nCells
int32_t waferV(const int32_t index)

◆ getDetTriggerIds()

std::vector< HGCalTriggerDetId > HGCSiliconDetIdToModule::getDetTriggerIds ( HGCSiliconDetId const &  id) const

Definition at line 19 of file HGCSiliconDetIdToModule.cc.

References DetId::HGCalEE, HGCalEETrigger, HGCSiliconDetId::HGCalFineTrigger, HGCSiliconDetId::HGCalHighDensityN, HGCalHSiTrigger, nano_mu_digi_cff::layer, caHitNtupletGeneratorKernels::nCells, findQualityFiles::v, HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and ecaldqm::zside().

19  {
20  std::vector<HGCalTriggerDetId> ids;
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 }
int32_t waferU(const int32_t index)
int zside(DetId const &)
static constexpr int32_t HGCalHighDensityN
static constexpr int32_t HGCalFineTrigger
TupleMultiplicity< TrackerTraits > const HitToTuple< TrackerTraits > const cms::cuda::AtomicPairCounter GPUCACellT< TrackerTraits > const *__restrict__ uint32_t const *__restrict__ nCells
int32_t waferV(const int32_t index)

◆ getModule() [1/2]

static const HGCSiliconDetId HGCSiliconDetIdToModule::getModule ( HGCalTriggerDetId const &  id)
inlinestatic

Definition at line 13 of file HGCSiliconDetIdToModule.h.

References HGCSiliconDetId::moduleId().

13 { return id.moduleId(); }

◆ getModule() [2/2]

static const HGCSiliconDetId HGCSiliconDetIdToModule::getModule ( HGCSiliconDetId const &  id)
inlinestatic

Definition at line 14 of file HGCSiliconDetIdToModule.h.

References HGCSiliconDetId::moduleId().

14 { return id.moduleId(); }