#include <HGCSiliconDetId.h>
Public Types | |
enum | waferType { HGCalHD120 = 0, HGCalLD200 = 1, HGCalLD300 = 2, HGCalHD200 = 3 } |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Public Member Functions | |
constexpr int32_t | cellU () const |
get the cell #'s in u,v or in x,y More... | |
constexpr std::pair< int32_t, int32_t > | cellUV () const |
constexpr int32_t | cellV () const |
constexpr int32_t | cellX () const |
constexpr std::pair< int32_t, int32_t > | cellXY () const |
constexpr int32_t | cellY () const |
constexpr int32_t | depletion () const |
constexpr HGCSiliconDetId | geometryCell () const |
constexpr | HGCSiliconDetId () |
constexpr | HGCSiliconDetId (uint32_t rawid) |
constexpr | HGCSiliconDetId (DetId::Detector det, int32_t zp, int32_t type, int32_t layer, int32_t waferU, int32_t waferV, int32_t cellU, int32_t cellV) |
constexpr | HGCSiliconDetId (const DetId &gen) |
constexpr bool | highDensity () const |
constexpr bool | isEE () const |
consistency check : no bits left => no overhead More... | |
constexpr bool | isForward () const |
constexpr bool | isHE () const |
constexpr int32_t | layer () const |
get the layer # More... | |
constexpr bool | lowDensity () const |
constexpr HGCSiliconDetId | moduleId () const |
constexpr HGCSiliconDetId & | operator= (const DetId &gen) |
constexpr DetId::Detector | subdet () const |
get the subdetector More... | |
constexpr int32_t | triggerCellU () const |
constexpr std::pair< int32_t, int32_t > | triggerCellUV () const |
constexpr int32_t | triggerCellV () const |
constexpr int32_t | type () const |
get the type More... | |
constexpr void | unpack (int32_t &ty, int32_t &zs, int32_t &ly, int32_t &wU, int32_t &wV, int32_t &cU, int32_t &cV) const |
constexpr int32_t | waferU () const |
constexpr int32_t | waferUAbs () const |
get the wafer #'s in u,v or in x,y More... | |
constexpr std::pair< int32_t, int32_t > | waferUV () const |
constexpr int32_t | waferV () const |
constexpr int32_t | waferVAbs () const |
constexpr int32_t | waferX () const |
constexpr std::pair< int32_t, int32_t > | waferXY () const |
constexpr int32_t | waferY () const |
constexpr int32_t | zside () const |
get the z-side of the cell (1/-1) More... | |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Attributes | |
static constexpr int32_t | HGCal0Depletion = 120 |
static constexpr int32_t | HGCal1Depletion = 200 |
static constexpr int32_t | HGCal2Depletion = 300 |
static constexpr int32_t | HGCalCoarseTrigger = 2 |
static constexpr int32_t | HGCalFineTrigger = 3 |
static constexpr int32_t | HGCalHighDensityN = 12 |
static constexpr int32_t | HGCalLowDensityN = 8 |
static constexpr uint32_t | kHGCalCellUMask = 0x1F |
static constexpr uint32_t | kHGCalCellUOffset = 0 |
static constexpr uint32_t | kHGCalCellVMask = 0x1F |
static constexpr uint32_t | kHGCalCellVOffset = 5 |
static constexpr uint32_t | kHGCalLayerMask = 0x1F |
static constexpr uint32_t | kHGCalLayerOffset = 20 |
static constexpr uint32_t | kHGCalTypeMask = 0x3 |
static constexpr uint32_t | kHGCalTypeOffset = 26 |
static constexpr uint32_t | kHGCalWaferUMask = 0xF |
static constexpr uint32_t | kHGCalWaferUOffset = 10 |
static constexpr uint32_t | kHGCalWaferUSignMask = 0x1 |
static constexpr uint32_t | kHGCalWaferUSignOffset = 14 |
static constexpr uint32_t | kHGCalWaferVMask = 0xF |
static constexpr uint32_t | kHGCalWaferVOffset = 15 |
static constexpr uint32_t | kHGCalWaferVSignMask = 0x1 |
static constexpr uint32_t | kHGCalWaferVSignOffset = 19 |
static constexpr uint32_t | kHGCalZsideMask = 0x1 |
static constexpr uint32_t | kHGCalZsideOffset = 25 |
static const HGCSiliconDetId | Undefined |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 24 of file HGCSiliconDetId.h.
Enumerator | |
---|---|
HGCalHD120 | |
HGCalLD200 | |
HGCalLD300 | |
HGCalHD200 |
Definition at line 26 of file HGCSiliconDetId.h.
|
inline |
Create a null cellid
Definition at line 36 of file HGCSiliconDetId.h.
Referenced by geometryCell(), and moduleId().
|
inline |
Create cellid from raw id (0=invalid tower id)
Definition at line 38 of file HGCSiliconDetId.h.
|
inline |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 40 of file HGCSiliconDetId.h.
References funct::abs(), cellU(), cellV(), DetId::id_, kHGCalCellUMask, kHGCalCellUOffset, kHGCalCellVMask, kHGCalCellVOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalTypeMask, kHGCalTypeOffset, kHGCalWaferUMask, kHGCalWaferUOffset, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, kHGCalWaferVMask, kHGCalWaferVOffset, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, kHGCalZsideMask, kHGCalZsideOffset, layer(), waferU(), waferV(), and zside().
|
inline |
Constructor from a generic cell id
Definition at line 63 of file HGCSiliconDetId.h.
References TauDecayModes::dec, Exception, DetId::HGCalEE, DetId::HGCalHSi, and DetId::id_.
|
inline |
get the cell #'s in u,v or in x,y
Definition at line 111 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalCellUMask, and kHGCalCellUOffset.
Referenced by HGCalTestPartialWaferRecHits::analyze(), cellUV(), cellY(), hgcal::RecHitTools::getCell(), hgcal::mappingtools::getModuleCellIndicesForSiCell(), HGCSiliconDetId(), HGCalSD::setDetUnitId(), triggerCellU(), triggerCellV(), and unpack().
|
inline |
Definition at line 113 of file HGCSiliconDetId.h.
References cellU(), and cellV().
|
inline |
Definition at line 112 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalCellVMask, and kHGCalCellVOffset.
Referenced by HGCalTestPartialWaferRecHits::analyze(), cellUV(), cellX(), cellY(), hgcal::RecHitTools::getCell(), hgcal::mappingtools::getModuleCellIndicesForSiCell(), HGCSiliconDetId(), HGCalSD::setDetUnitId(), triggerCellU(), triggerCellV(), and unpack().
|
inline |
Definition at line 114 of file HGCSiliconDetId.h.
References cellV(), HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().
Referenced by cellXY().
|
inline |
|
inline |
Definition at line 118 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().
Referenced by cellXY().
|
inline |
Definition at line 100 of file HGCSiliconDetId.h.
References HGCal0Depletion, HGCal1Depletion, HGCal2Depletion, HGCalHD120, HGCalLD300, and type().
|
inline |
Converter for a geometry cell id
Definition at line 86 of file HGCSiliconDetId.h.
References DetId::det(), HGCSiliconDetId(), layer(), waferU(), waferV(), and zside().
Referenced by HGCalGeometry::getGeometryDetId().
|
inline |
Definition at line 99 of file HGCSiliconDetId.h.
References HGCalHD120, HGCalHD200, and type().
|
inline |
consistency check : no bits left => no overhead
Definition at line 168 of file HGCSiliconDetId.h.
References DetId::det(), and DetId::HGCalEE.
|
inline |
Definition at line 170 of file HGCSiliconDetId.h.
|
inline |
Definition at line 169 of file HGCSiliconDetId.h.
References DetId::det(), and DetId::HGCalHSi.
|
inline |
get the layer #
Definition at line 108 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by HGCalTestPartialWaferRecHits::analyze(), HGCalDigiValidation::analyze(), HGCalRecHitValidation::analyze(), HGCalTB23Analyzer::analyzeSimHits(), geometryCell(), hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getSiThickness(), HGCalGeometry::getSummary(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), HGCSiliconDetId(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalTriggerTools::layer(), moduleId(), HGCalSD::setDetUnitId(), unpack(), HGCalDDDConstants::waferLocal2Global(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 98 of file HGCSiliconDetId.h.
References HGCalLD200, HGCalLD300, and type().
|
inline |
Definition at line 89 of file HGCSiliconDetId.h.
References DetId::det(), HGCSiliconDetId(), layer(), type(), waferU(), waferV(), and zside().
Referenced by HGCSiliconDetIdToModule::getModule(), and hgcal::mappingtools::getModuleCellIndicesForSiCell().
|
inline |
Assignment from a generic cell id
Definition at line 74 of file HGCSiliconDetId.h.
References TauDecayModes::dec, Exception, DetId::HGCalEE, DetId::HGCalHSi, and DetId::id_.
|
inline |
get the subdetector
Definition at line 94 of file HGCSiliconDetId.h.
References DetId::det().
|
inline |
Definition at line 149 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalCoarseTrigger, HGCalFineTrigger, HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().
Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), and triggerCellUV().
|
inline |
Definition at line 163 of file HGCSiliconDetId.h.
References triggerCellU(), and triggerCellV().
|
inline |
Definition at line 156 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalCoarseTrigger, HGCalFineTrigger, HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().
Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), and triggerCellUV().
|
inline |
get the type
Definition at line 97 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by cellX(), cellY(), depletion(), hgcal::RecHitTools::getRadiusToSide(), hgcal::RecHitTools::getSiThickIndex(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), highDensity(), lowDensity(), moduleId(), HGCalRecHitWorkerSimple::run(), HGCalTriggerTools::thicknessIndex(), triggerCellU(), triggerCellV(), unpack(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 137 of file HGCSiliconDetId.h.
References cellU(), cellV(), layer(), type(), waferU(), waferV(), and zside().
Referenced by HGCalTB23Analyzer::analyzeSimHits(), and HGCalSD::calibCell().
|
inline |
Definition at line 127 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, and waferUAbs().
Referenced by HGCalTestPartialWaferRecHits::analyze(), HGCalTB23Analyzer::analyzeSimHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), hgcal::RecHitTools::getWafer(), HGCSiliconDetId(), moduleId(), HGCalSD::setDetUnitId(), unpack(), HGCalDDDConstants::waferLocal2Global(), HGCalDDDConstants::waferType(), waferUV(), and waferX().
|
inline |
get the wafer #'s in u,v or in x,y
Definition at line 125 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferUMask, and kHGCalWaferUOffset.
Referenced by waferU().
|
inline |
Definition at line 133 of file HGCSiliconDetId.h.
References waferU(), and waferV().
Referenced by HGCalSD::setDetUnitId().
|
inline |
Definition at line 130 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, and waferVAbs().
Referenced by HGCalTestPartialWaferRecHits::analyze(), HGCalTB23Analyzer::analyzeSimHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), hgcal::RecHitTools::getWafer(), HGCSiliconDetId(), moduleId(), HGCalSD::setDetUnitId(), unpack(), HGCalDDDConstants::waferLocal2Global(), HGCalDDDConstants::waferType(), waferUV(), waferX(), and waferY().
|
inline |
Definition at line 126 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.
Referenced by waferV().
|
inline |
Definition at line 134 of file HGCSiliconDetId.h.
References waferU(), and waferV().
Referenced by waferXY().
|
inline |
|
inline |
|
inline |
get the z-side of the cell (1/-1)
Definition at line 105 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by geometryCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), HGCSiliconDetId(), moduleId(), HGCalSD::setDetUnitId(), unpack(), HGCalDDDConstants::waferLocal2Global(), hgcal::RecHitTools::zside(), and HGCalTriggerTools::zside().
|
static |
Definition at line 31 of file HGCSiliconDetId.h.
Referenced by depletion().
|
static |
Definition at line 32 of file HGCSiliconDetId.h.
Referenced by depletion().
|
static |
Definition at line 33 of file HGCSiliconDetId.h.
Referenced by depletion().
|
static |
Definition at line 30 of file HGCSiliconDetId.h.
Referenced by HGCalTriggerDetId::cellU(), HGCalTriggerDetId::cellV(), triggerCellU(), triggerCellV(), HGCalTriggerDetId::triggerCellX(), and HGCalTriggerDetId::triggerCellY().
|
static |
Definition at line 29 of file HGCSiliconDetId.h.
Referenced by HGCalTriggerDetId::cellU(), HGCalTriggerDetId::cellV(), HGCSiliconDetIdToModule::getDetTriggerIds(), triggerCellU(), triggerCellV(), HGCalTriggerDetId::triggerCellX(), and HGCalTriggerDetId::triggerCellY().
|
static |
Definition at line 27 of file HGCSiliconDetId.h.
Referenced by cellX(), cellY(), HGCSiliconDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetTriggerIds(), HGCalMouseBite::HGCalMouseBite(), triggerCellU(), and triggerCellV().
|
static |
Definition at line 28 of file HGCSiliconDetId.h.
Referenced by cellX(), cellY(), HGCSiliconDetIdToModule::getDetIds(), HGCalMouseBite::HGCalMouseBite(), triggerCellU(), and triggerCellV().
|
static |
Definition at line 176 of file HGCSiliconDetId.h.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), cellU(), and HGCSiliconDetId().
|
static |
Definition at line 175 of file HGCSiliconDetId.h.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), cellU(), and HGCSiliconDetId().
|
static |
Definition at line 178 of file HGCSiliconDetId.h.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), cellV(), and HGCSiliconDetId().
|
static |
Definition at line 177 of file HGCSiliconDetId.h.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), cellV(), and HGCSiliconDetId().
|
static |
Definition at line 188 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), layer(), and HGCalTriggerGeometryV9Imp2::packLayerWaferId().
|
static |
Definition at line 187 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), layer(), and HGCalTriggerGeometryV9Imp2::packLayerWaferId().
|
static |
Definition at line 192 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and type().
|
static |
Definition at line 191 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and type().
|
static |
Definition at line 180 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferUAbs().
|
static |
Definition at line 179 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferUAbs().
|
static |
Definition at line 182 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferU().
|
static |
Definition at line 181 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferU().
|
static |
Definition at line 184 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferVAbs().
|
static |
Definition at line 183 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferVAbs().
|
static |
Definition at line 186 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferV().
|
static |
Definition at line 185 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), and waferV().
|
static |
Definition at line 190 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and zside().
|
static |
Definition at line 189 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and zside().
|
static |
Definition at line 172 of file HGCSiliconDetId.h.