CMS 3D CMS Logo

Functions
HGCalWaferIndex Namespace Reference

Functions

int32_t waferCopy (const int32_t index)
 
bool waferFormat (const int32_t index)
 
int32_t waferIndex (int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
 
int32_t waferLayer (const int32_t index)
 
int32_t waferU (const int32_t index)
 
int32_t waferV (const int32_t index)
 

Function Documentation

◆ waferCopy()

int32_t HGCalWaferIndex::waferCopy ( const int32_t  index)

◆ waferFormat()

bool HGCalWaferIndex::waferFormat ( const int32_t  index)

Definition at line 41 of file HGCalWaferIndex.cc.

41 { return ((id & HGCalProperty::kHGCalLayerOldMask) == 0); }

References HGCalProperty::kHGCalLayerOldMask.

◆ waferIndex()

int32_t HGCalWaferIndex::waferIndex ( int32_t  layer,
int32_t  waferU,
int32_t  waferV,
bool  old = false 
)

Definition at line 4 of file HGCalWaferIndex.cc.

4  {
5  int32_t id(0);
6  if (old) {
10  } else {
11  int waferUabs(std::abs(waferU)), waferVabs(std::abs(waferV));
12  int waferUsign = (waferU >= 0) ? 0 : 1;
13  int waferVsign = (waferV >= 0) ? 0 : 1;
19  }
20  return id;
21 }

References funct::abs(), triggerObjects_cff::id, HGCalProperty::kHGCalLayerMask, HGCalProperty::kHGCalLayerOffset, HGCalProperty::kHGCalLayerOldMask, HGCalProperty::kHGCalWaferCopyMask, HGCalProperty::kHGCalWaferCopyOffset, HGCalProperty::kHGCalWaferUMask, HGCalProperty::kHGCalWaferUOffset, HGCalProperty::kHGCalWaferUSignMask, HGCalProperty::kHGCalWaferUSignOffset, HGCalProperty::kHGCalWaferVMask, HGCalProperty::kHGCalWaferVOffset, HGCalProperty::kHGCalWaferVSignMask, HGCalProperty::kHGCalWaferVSignOffset, phase1PixelTopology::layer, waferU(), and waferV().

Referenced by HGCalDDDConstants::getTypeHex(), HGCalNumberingScheme::getUnitID(), HGCalDDDConstants::HGCalDDDConstants(), HGCalDDDConstants::isValidHex8(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadWaferHexagon(), HGCalGeomParameters::loadWaferHexagon8(), HGCalDDDConstants::locateCell(), HGCalDDDConstants::maskCell(), HGCalDDDConstants::maxCells(), HGCalDDDConstants::numberCellsHexagon(), DDHGCalEEFileAlgo::positionSensitive(), DDHGCalHEFileAlgo::positionSensitive(), HGCalEEFileAlgo::positionSensitive(), HGCalHEFileAlgo::positionSensitive(), HGCalDDDConstants::waferFromPosition(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferPosition(), HGCalDDDConstants::waferType(), HGCalDDDConstants::waferTypeRotation(), and HGCalDDDConstants::waferVirtual().

◆ waferLayer()

int32_t HGCalWaferIndex::waferLayer ( const int32_t  index)

◆ waferU()

int32_t HGCalWaferIndex::waferU ( const int32_t  index)

Definition at line 27 of file HGCalWaferIndex.cc.

References HGCalProperty::kHGCalWaferUMask, HGCalProperty::kHGCalWaferUOffset, HGCalProperty::kHGCalWaferUSignMask, and HGCalProperty::kHGCalWaferUSignOffset.

Referenced by HGCalTopology::addHGCSiliconId(), HGCGeometryValidation::analyze(), HGCalWaferValidation::analyze(), HGCalDDDConstants::assignCellHex(), HGCalGeometryLoader::build(), HGCalDDDConstants::cellInLayer(), HGCalDDDConstants::cellThickness(), HFNoseNumberingScheme::checkPosition(), HGCalNumberingScheme::checkPosition(), HGCalTriggerGeometryV9Imp2::detIdWaferType(), HGCalTriggerGeometryV9Imp1::detIdWaferType(), HGCMouseBite::exclude(), HGCSiliconDetIdToModule::getDetIds(), HFNoseDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetTriggerIds(), FWGeometry::getHGCSiliconEveShape(), HFNoseDetIdToModule::getTriggerDetIds(), HGCalDDDConstants::getTypeHex(), HFNoseNumberingScheme::getUnitID(), HGCalNumberingScheme::getUnitID(), hgcal::RecHitTools::getWafer(), HGCalDDDConstants::HGCalDDDConstants(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalSiliconModule::initialize(), HGCalDDDConstants::isValidCell8(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadWaferHexagon8(), HGCalDDDConstants::locateCell(), HGCalDDDConstants::maskCell(), HGCalDDDConstants::maxCells(), HGCalDDDConstants::numberCells(), HGCalDDDConstants::numberCellsHexagon(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), DDHGCalMixLayer::positionMix(), HGCalMixLayer::positionMix(), DDHGCalSiliconModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), HGCalConcentratorAutoEncoderImpl::select(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), HGCalDDDConstants::waferFromPosition(), waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInLayerTest(), HGCalDDDConstants::waferPosition(), HGCalDDDConstants::waferType(), HGCalDDDConstants::waferTypeRotation(), and HGCalDDDConstants::waferVirtual().

◆ waferV()

int32_t HGCalWaferIndex::waferV ( const int32_t  index)

Definition at line 32 of file HGCalWaferIndex.cc.

References gpuVertexFinder::iv, HGCalProperty::kHGCalWaferVMask, HGCalProperty::kHGCalWaferVOffset, HGCalProperty::kHGCalWaferVSignMask, and HGCalProperty::kHGCalWaferVSignOffset.

Referenced by HGCalTopology::addHGCSiliconId(), HGCGeometryValidation::analyze(), HGCalWaferValidation::analyze(), HGCalDDDConstants::assignCellHex(), HGCalGeometryLoader::build(), HGCalDDDConstants::cellInLayer(), HGCalDDDConstants::cellThickness(), HFNoseNumberingScheme::checkPosition(), HGCalNumberingScheme::checkPosition(), HGCalTriggerGeometryV9Imp2::detIdWaferType(), HGCalTriggerGeometryV9Imp1::detIdWaferType(), HGCMouseBite::exclude(), HGCSiliconDetIdToModule::getDetIds(), HFNoseDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetTriggerIds(), FWGeometry::getHGCSiliconEveShape(), HFNoseDetIdToModule::getTriggerDetIds(), HGCalDDDConstants::getTypeHex(), HFNoseNumberingScheme::getUnitID(), HGCalNumberingScheme::getUnitID(), hgcal::RecHitTools::getWafer(), HGCalDDDConstants::HGCalDDDConstants(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalSiliconModule::initialize(), HGCalDDDConstants::isValidCell8(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadWaferHexagon8(), HGCalDDDConstants::locateCell(), HGCalDDDConstants::maskCell(), HGCalDDDConstants::maxCells(), HGCalDDDConstants::numberCells(), HGCalDDDConstants::numberCellsHexagon(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), DDHGCalMixLayer::positionMix(), HGCalMixLayer::positionMix(), DDHGCalSiliconModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), HGCalConcentratorAutoEncoderImpl::select(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), HGCalDDDConstants::waferFromPosition(), waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInLayerTest(), HGCalDDDConstants::waferPosition(), HGCalDDDConstants::waferType(), HGCalDDDConstants::waferTypeRotation(), and HGCalDDDConstants::waferVirtual().

HGCalProperty::kHGCalWaferVSignOffset
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:22
HGCalProperty::kHGCalWaferUSignMask
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:19
gpuVertexFinder::iv
int32_t *__restrict__ iv
Definition: gpuClusterTracksDBSCAN.h:42
HGCalProperty::kHGCalWaferVMask
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:21
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:27
HGCalProperty::kHGCalWaferCopyOffset
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:24
HGCalProperty::kHGCalWaferUOffset
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:16
HGCalProperty::kHGCalWaferUSignOffset
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:18
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
HGCalProperty::kHGCalWaferVSignMask
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:23
HGCalProperty::kHGCalWaferCopyMask
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:25
HGCalProperty::kHGCalLayerOldMask
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:26
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
HGCalProperty::kHGCalLayerOffset
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
HGCalProperty::kHGCalWaferVOffset
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:20
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HGCalProperty::kHGCalWaferUMask
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:17
HGCalProperty::kHGCalLayerMask
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29