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)

Definition at line 37 of file HGCalWaferIndex.cc.

References HGCalProperty::kHGCalWaferCopyMask, and HGCalProperty::kHGCalWaferCopyOffset.

37  {
39 }
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:25
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:26

◆ waferFormat()

bool HGCalWaferIndex::waferFormat ( const int32_t  index)

Definition at line 41 of file HGCalWaferIndex.cc.

References HGCalProperty::kHGCalLayerOldMask.

41 { return ((id & HGCalProperty::kHGCalLayerOldMask) == 0); }
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:27

◆ 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.

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().

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 }
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:21
int32_t waferU(const int32_t index)
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:23
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:25
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:22
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:20
constexpr std::array< uint8_t, layerIndexSize > layer
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:17
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:19
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:26
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:24
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:27
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:29
int32_t waferV(const int32_t index)
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:30
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:18

◆ 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(), HGCalTriggerGeometryV9Imp3::detIdWaferType(), HGCMouseBite::exclude(), HFNoseDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalSiliconModule::initialize(), DDHGCalMixRotatedLayer::initialize(), DDHGCalSiliconRotatedModule::initialize(), HGCalDDDConstants::isValidCell8(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadWaferHexagon8(), HGCalDDDConstants::localToGlobal8(), HGCalDDDConstants::locateCell(), HGCalDDDConstants::maskCell(), HGCalDDDConstants::maxCells(), HGCalDDDConstants::numberCells(), HGCalDDDConstants::numberCellsHexagon(), HGCalTriggerGeometryV9Imp3::packLayerSubdetWaferId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), DDHGCalMixLayer::positionMix(), DDHGCalMixRotatedLayer::positionMix(), HGCalMixLayer::positionMix(), DDHGCalSiliconModule::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), HGCalConcentratorAutoEncoderImpl::select(), HGCalTriggerGeometryV9Imp3::unpackLayerSubdetWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalDDDConstants::waferFromPosition(), waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInLayerTest(), HGCalDDDConstants::waferPosition(), HGCalDDDConstants::waferPositionNoRot(), HGCalDDDConstants::waferType(), HGCalDDDConstants::waferTypeRotation(), and HGCalDDDConstants::waferVirtual().

27  {
30 }
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:20
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:17
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:19
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:18

◆ 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(), HGCalTriggerGeometryV9Imp3::detIdWaferType(), HGCMouseBite::exclude(), HFNoseDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalSiliconModule::initialize(), DDHGCalMixRotatedLayer::initialize(), DDHGCalSiliconRotatedModule::initialize(), HGCalDDDConstants::isValidCell8(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadWaferHexagon8(), HGCalDDDConstants::localToGlobal8(), HGCalDDDConstants::locateCell(), HGCalDDDConstants::maskCell(), HGCalDDDConstants::maxCells(), HGCalDDDConstants::numberCells(), HGCalDDDConstants::numberCellsHexagon(), HGCalTriggerGeometryV9Imp3::packLayerSubdetWaferId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), DDHGCalMixLayer::positionMix(), DDHGCalMixRotatedLayer::positionMix(), HGCalMixLayer::positionMix(), DDHGCalSiliconModule::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), HGCalConcentratorAutoEncoderImpl::select(), HGCalTriggerGeometryV9Imp3::unpackLayerSubdetWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalDDDConstants::waferFromPosition(), waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInLayerTest(), HGCalDDDConstants::waferPosition(), HGCalDDDConstants::waferPositionNoRot(), HGCalDDDConstants::waferType(), HGCalDDDConstants::waferTypeRotation(), and HGCalDDDConstants::waferVirtual().

32  {
35 }
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:21
int32_t *__restrict__ iv
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:23
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:22
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:24