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.

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 }

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

◆ getModule() [1/2]

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

Definition at line 13 of file HFNoseDetIdToModule.h.

13 { return id.moduleId(); }

References HFNoseDetId::moduleId().

Referenced by HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell().

◆ getModule() [2/2]

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

Definition at line 14 of file HFNoseDetIdToModule.h.

14 { return id.moduleId(); }

References HFNoseDetId::moduleId().

◆ getTriggerDetIds()

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

Definition at line 19 of file HFNoseDetIdToModule.cc.

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 }

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

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

ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
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:33
HFNoseDetId
Definition: HFNoseDetId.h:22
HFNoseTriggerDetId
Definition: HFNoseTriggerDetId.h:26
HFNoseDetId::HFNoseFineN
static const int HFNoseFineN
Definition: HFNoseDetId.h:25
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
HFNoseDetId::HFNoseFineTrigger
static const int HFNoseFineTrigger
Definition: HFNoseDetId.h:27
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
HFNoseTrigger
Definition: ForwardSubdetector.h:14
HFNoseDetId::HFNoseCoarseN
static const int HFNoseCoarseN
Definition: HFNoseDetId.h:26