CMS 3D CMS Logo

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

#include <HFNoseDetIdToModule.h>

Public Member Functions

std::vector< HFNoseDetIdgetDetIds (HFNoseDetId const &id) const
 
std::vector< HFNoseTriggerDetIdgetTriggerDetIds (HFNoseDetId const &id) const
 
 HFNoseDetIdToModule ()
 

Static Public Member Functions

static const HFNoseDetId getModule (HFNoseDetId const &id)
 
static const HFNoseDetId getModule (HFNoseTriggerDetId const &id)
 

Detailed Description

Definition at line 8 of file HFNoseDetIdToModule.h.

Constructor & Destructor Documentation

◆ HFNoseDetIdToModule()

HFNoseDetIdToModule::HFNoseDetIdToModule ( )

This translated TriggerDetId to Module and viceversa for HFNose

Definition at line 3 of file HFNoseDetIdToModule.cc.

3 {}

Member Function Documentation

◆ getDetIds()

std::vector< HFNoseDetId > HFNoseDetIdToModule::getDetIds ( HFNoseDetId const &  id) const

Definition at line 5 of file HFNoseDetIdToModule.cc.

References HFNoseDetId::HFNoseCoarseN, HFNoseDetId::HFNoseFineN, nano_mu_digi_cff::layer, caHitNtupletGeneratorKernels::nCells, findQualityFiles::v, HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and ecaldqm::zside().

5  {
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 }
static const int HFNoseCoarseN
Definition: HFNoseDetId.h:26
int32_t waferU(const int32_t index)
int zside(DetId const &)
static const int HFNoseFineN
Definition: HFNoseDetId.h:25
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 HFNoseDetId HFNoseDetIdToModule::getModule ( HFNoseDetId const &  id)
inlinestatic

Definition at line 13 of file HFNoseDetIdToModule.h.

References HFNoseDetId::moduleId().

Referenced by HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell().

13 { return id.moduleId(); }

◆ getModule() [2/2]

static const HFNoseDetId HFNoseDetIdToModule::getModule ( HFNoseTriggerDetId const &  id)
inlinestatic

Definition at line 14 of file HFNoseDetIdToModule.h.

References HFNoseDetId::moduleId().

14 { return id.moduleId(); }

◆ getTriggerDetIds()

std::vector< HFNoseTriggerDetId > HFNoseDetIdToModule::getTriggerDetIds ( HFNoseDetId const &  id) const

Definition at line 19 of file HFNoseDetIdToModule.cc.

References HFNoseDetId::HFNoseFineN, HFNoseDetId::HFNoseFineTrigger, HFNoseTrigger, nano_mu_digi_cff::layer, caHitNtupletGeneratorKernels::nCells, findQualityFiles::v, HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and ecaldqm::zside().

Referenced by HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp3::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), and HGCalTriggerGeometryV9Imp3::getTriggerCellsFromModule().

19  {
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 }
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
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)