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;
7  int nCells = (id.type() == 0) ? HFNoseDetId::HFNoseFineN : HFNoseDetId::HFNoseCoarseN;
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, findQualityFiles::v, 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, findQualityFiles::v, and ecaldqm::zside().

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

ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
findQualityFiles.v
v
Definition: findQualityFiles.py:179
HFNoseDetId
Definition: HFNoseDetId.h:22
HFNoseTriggerDetId
Definition: HFNoseTriggerDetId.h:26
HFNoseDetId::HFNoseFineN
static const int HFNoseFineN
Definition: HFNoseDetId.h:25
HFNoseDetId::HFNoseFineTrigger
static const int HFNoseFineTrigger
Definition: HFNoseDetId.h:27
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
HFNoseTrigger
Definition: ForwardSubdetector.h:14
HFNoseDetId::HFNoseCoarseN
static const int HFNoseCoarseN
Definition: HFNoseDetId.h:26