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(), l1ctLayer2EG_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, nano_mu_digi_cff::layer, waferU(), and waferV().

Referenced by HGCalTestPartialWaferRecHits::analyze(), HGCalTestPartialWaferHits::analyze(), HGCalDDDConstants::cassetteShiftSilicon(), HGCalDDDConstants::cellInLayer(), HGCGuardRing::exclude(), HGCGuardRingPartial::exclude(), HGCalDDDConstants::getTypeHex(), HGCalNumberingScheme::getUnitID(), HGCalDDDConstants::HGCalDDDConstants(), HGCalNumberingScheme::HGCalNumberingScheme(), HGCalDDDConstants::isValidHex8(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalTBGeomParameters::loadWaferHexagon(), HGCalGeomParameters::loadWaferHexagon(), HGCalGeomParameters::loadWaferHexagon8(), HGCalDDDConstants::localToGlobal8(), HGCalDDDConstants::locateCell(), HGCalDDDConstants::maskCell(), HGCalDDDConstants::maxCells(), HGCalDDDConstants::numberCellsHexagon(), DDHGCalEEFileAlgo::positionSensitive(), DDHGCalHEFileAlgo::positionSensitive(), HGCalEEFileAlgo::positionSensitive(), HGCalHEFileAlgo::positionSensitive(), HGCalSD::setDetUnitId(), HGCalDDDConstants::waferFromPosition(), HGCalTBDDDConstants::waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInfo(), HGCalDDDConstants::waferPosition(), HGCalDDDConstants::waferType(), HGCalDDDConstants::waferTypeRotation(), HGCalTBDDDConstants::waferVirtual(), 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 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)

Definition at line 23 of file HGCalWaferIndex.cc.

References HGCalProperty::kHGCalLayerMask, and HGCalProperty::kHGCalLayerOffset.

Referenced by HGCalWaferValidation::analyze(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalMixRotatedCassette::HGCalMixRotatedCassette(), HGCalMixRotatedLayer::HGCalMixRotatedLayer(), HGCalSiliconModule::HGCalSiliconModule(), HGCalSiliconRotatedCassette::HGCalSiliconRotatedCassette(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalSiliconModule::initialize(), DDHGCalMixRotatedCassette::initialize(), DDHGCalMixRotatedLayer::initialize(), DDHGCalSiliconRotatedCassette::initialize(), DDHGCalSiliconRotatedModule::initialize(), HGCalGeomParameters::loadSpecParsHexagon8(), HGCalGeomParameters::loadWaferHexagon8(), DDHGCalMixLayer::positionMix(), DDHGCalMixRotatedLayer::positionMix(), DDHGCalMixRotatedCassette::positionMix(), HGCalMixLayer::positionMix(), HGCalMixRotatedLayer::positionMix(), HGCalMixRotatedCassette::positionMix(), DDHGCalSiliconRotatedCassette::positionPassive(), HGCalSiliconRotatedCassette::positionPassive(), DDHGCalSiliconModule::positionSensitive(), DDHGCalSiliconRotatedCassette::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconRotatedCassette::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), and HGCalDDDConstants::waferInLayerTest().

23  {
25 }
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:29
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:30

◆ 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(), HGcalHitCheck::analyze(), HGCGeometryValidation::analyze(), HGCalTestGuardRing::analyze(), HGCalWaferValidation::analyze(), HGCalDDDConstants::assignCellHex(), HGCalGeometryLoader::build(), HGCalDDDConstants::cassetteShiftSilicon(), HGCalDDDConstants::cellInLayer(), HGCalDDDConstants::cellThickness(), HFNoseNumberingScheme::checkPosition(), HGCalNumberingScheme::checkPosition(), HGCalTriggerGeometryV9Imp2::detIdWaferType(), HGCalTriggerGeometryV9Imp3::detIdWaferType(), HGCGuardRing::exclude(), HGCMouseBite::exclude(), HGCGuardRingPartial::exclude(), HGCalCalibrationCell::findCell(), HFNoseDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetTriggerIds(), HFNoseDetIdToModule::getTriggerDetIds(), HGCalDDDConstants::getTypeHex(), HFNoseNumberingScheme::getUnitID(), HGCalNumberingScheme::getUnitID(), hgcal::RecHitTools::getWafer(), HGCalDDDConstants::HGCalDDDConstants(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalMixRotatedCassette::HGCalMixRotatedCassette(), HGCalMixRotatedLayer::HGCalMixRotatedLayer(), HGCalNumberingScheme::HGCalNumberingScheme(), HGCalSiliconModule::HGCalSiliconModule(), HGCalSiliconRotatedCassette::HGCalSiliconRotatedCassette(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalSiliconModule::initialize(), DDHGCalMixRotatedCassette::initialize(), DDHGCalMixRotatedLayer::initialize(), DDHGCalSiliconRotatedModule::initialize(), DDHGCalSiliconRotatedCassette::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(), DDHGCalMixRotatedCassette::positionMix(), DDHGCalMixRotatedLayer::positionMix(), HGCalMixLayer::positionMix(), HGCalMixRotatedLayer::positionMix(), HGCalMixRotatedCassette::positionMix(), DDHGCalSiliconRotatedCassette::positionPassive(), HGCalSiliconRotatedCassette::positionPassive(), DDHGCalSiliconModule::positionSensitive(), DDHGCalSiliconRotatedCassette::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconRotatedCassette::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), HGCalConcentratorAutoEncoderImpl::select(), HGCalTriggerGeometryV9Imp3::unpackLayerSubdetWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalDDDConstants::waferFromPosition(), waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInfo(), 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(), HGcalHitCheck::analyze(), HGCGeometryValidation::analyze(), HGCalTestGuardRing::analyze(), HGCalWaferValidation::analyze(), HGCalDDDConstants::assignCellHex(), HGCalGeometryLoader::build(), HGCalDDDConstants::cassetteShiftSilicon(), HGCalDDDConstants::cellInLayer(), HGCalDDDConstants::cellThickness(), HFNoseNumberingScheme::checkPosition(), HGCalNumberingScheme::checkPosition(), HGCalTriggerGeometryV9Imp2::detIdWaferType(), HGCalTriggerGeometryV9Imp3::detIdWaferType(), HGCGuardRing::exclude(), HGCMouseBite::exclude(), HGCGuardRingPartial::exclude(), HGCalCalibrationCell::findCell(), HFNoseDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetTriggerIds(), HFNoseDetIdToModule::getTriggerDetIds(), HGCalDDDConstants::getTypeHex(), HFNoseNumberingScheme::getUnitID(), HGCalNumberingScheme::getUnitID(), hgcal::RecHitTools::getWafer(), HGCalDDDConstants::HGCalDDDConstants(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalMixRotatedCassette::HGCalMixRotatedCassette(), HGCalMixRotatedLayer::HGCalMixRotatedLayer(), HGCalNumberingScheme::HGCalNumberingScheme(), HGCalSiliconModule::HGCalSiliconModule(), HGCalSiliconRotatedCassette::HGCalSiliconRotatedCassette(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), DDHGCalHEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalSiliconModule::initialize(), DDHGCalMixRotatedCassette::initialize(), DDHGCalMixRotatedLayer::initialize(), DDHGCalSiliconRotatedModule::initialize(), DDHGCalSiliconRotatedCassette::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(), DDHGCalMixRotatedCassette::positionMix(), DDHGCalMixRotatedLayer::positionMix(), HGCalMixLayer::positionMix(), HGCalMixRotatedLayer::positionMix(), HGCalMixRotatedCassette::positionMix(), DDHGCalSiliconRotatedCassette::positionPassive(), HGCalSiliconRotatedCassette::positionPassive(), DDHGCalSiliconModule::positionSensitive(), DDHGCalSiliconRotatedCassette::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconRotatedCassette::positionSensitive(), HGCalWaferValidation::ProcessWaferLayer(), HGCalConcentratorAutoEncoderImpl::select(), HGCalTriggerGeometryV9Imp3::unpackLayerSubdetWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalDDDConstants::waferFromPosition(), waferIndex(), HGCalDDDConstants::waferIndex(), HGCalDDDConstants::waferInfo(), 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