#include <HGCSiliconDetId.h>
Public Types | |
enum | waferType { HGCalFine = 0, HGCalCoarseThin = 1, HGCalCoarseThick = 2 } |
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 | |
int | cellU () const |
get the cell #'s in u,v or in x,y More... | |
std::pair< int, int > | cellUV () const |
int | cellV () const |
int | cellX () const |
std::pair< int, int > | cellXY () const |
int | cellY () const |
HGCSiliconDetId | geometryCell () const |
HGCSiliconDetId () | |
HGCSiliconDetId (const DetId &id) | |
HGCSiliconDetId (DetId::Detector det, int zp, int type, int layer, int waferU, int waferV, int cellU, int cellV) | |
HGCSiliconDetId (uint32_t rawid) | |
bool | isEE () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
bool | isHE () const |
int | layer () const |
get the layer # More... | |
HGCSiliconDetId | moduleId () const |
HGCSiliconDetId & | operator= (const DetId &id) |
DetId::Detector | subdet () const |
get the subdetector More... | |
int | triggerCellU () const |
std::pair< int, int > | triggerCellUV () const |
int | triggerCellV () const |
int | type () const |
get the type More... | |
int | waferU () const |
int | waferUAbs () const |
get the wafer #'s in u,v or in x,y More... | |
std::pair< int, int > | waferUV () const |
int | waferV () const |
int | waferVAbs () const |
int | waferX () const |
std::pair< int, int > | waferXY () const |
int | waferY () const |
int | 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 (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. 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 const int | HGCalCoarseN = 8 |
static const int | HGCalCoarseTrigger = 2 |
static const int | HGCalFineN = 12 |
static const int | HGCalFineTrigger = 3 |
static const int | kHGCalCellUMask = 0x1F |
static const int | kHGCalCellUOffset = 0 |
static const int | kHGCalCellVMask = 0x1F |
static const int | kHGCalCellVOffset = 5 |
static const int | kHGCalLayerMask = 0x1F |
static const int | kHGCalLayerOffset = 20 |
static const int | kHGCalTypeMask = 0x3 |
static const int | kHGCalTypeOffset = 26 |
static const int | kHGCalWaferUMask = 0xF |
static const int | kHGCalWaferUOffset = 10 |
static const int | kHGCalWaferUSignMask = 0x1 |
static const int | kHGCalWaferUSignOffset = 14 |
static const int | kHGCalWaferVMask = 0xF |
static const int | kHGCalWaferVOffset = 15 |
static const int | kHGCalWaferVSignMask = 0x1 |
static const int | kHGCalWaferVSignOffset = 19 |
static const int | kHGCalZsideMask = 0x1 |
static const int | 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 22 of file HGCSiliconDetId.h.
Enumerator | |
---|---|
HGCalFine | |
HGCalCoarseThin | |
HGCalCoarseThick |
Definition at line 24 of file HGCSiliconDetId.h.
HGCSiliconDetId::HGCSiliconDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HGCSiliconDetId.cc.
Referenced by geometryCell(), and moduleId().
HGCSiliconDetId::HGCSiliconDetId | ( | uint32_t | rawid | ) |
HGCSiliconDetId::HGCSiliconDetId | ( | DetId::Detector | det, |
int | zp, | ||
int | type, | ||
int | layer, | ||
int | waferU, | ||
int | waferV, | ||
int | cellU, | ||
int | cellV | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 12 of file HGCSiliconDetId.cc.
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().
HGCSiliconDetId::HGCSiliconDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 28 of file HGCSiliconDetId.cc.
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 60 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalCellUMask, and kHGCalCellUOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), cellUV(), cellY(), hgcal::RecHitTools::getCell(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCSiliconDetId(), triggerCellU(), and triggerCellV().
|
inline |
|
inline |
Definition at line 61 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalCellVMask, and kHGCalCellVOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), cellUV(), cellX(), cellY(), hgcal::RecHitTools::getCell(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCSiliconDetId(), triggerCellU(), and triggerCellV().
|
inline |
Definition at line 63 of file HGCSiliconDetId.h.
References cellV(), HGCalCoarseN, HGCalFine, HGCalFineN, N, and type().
Referenced by cellXY().
|
inline |
|
inline |
Definition at line 67 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalCoarseN, HGCalFine, HGCalFineN, N, and type().
Referenced by cellXY().
|
inline |
Converter for a geometry cell id
Definition at line 42 of file HGCSiliconDetId.h.
References DetId::det(), HGCSiliconDetId(), layer(), waferU(), waferV(), and zside().
|
inline |
consistency check : no bits left => no overhead
Definition at line 101 of file HGCSiliconDetId.h.
References DetId::det(), and DetId::HGCalEE.
|
inline |
Definition at line 103 of file HGCSiliconDetId.h.
|
inline |
Definition at line 102 of file HGCSiliconDetId.h.
References DetId::det(), and DetId::HGCalHSi.
|
inline |
get the layer #
Definition at line 57 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by HGCalRecHitValidation::analyze(), HGCalDigiValidation::analyze(), HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), geometryCell(), hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getSiThickness(), HGCalGeometry::getSummary(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCSiliconDetId(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalTriggerTools::layer(), moduleId(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 43 of file HGCSiliconDetId.h.
References DetId::det(), HGCSiliconDetId(), layer(), type(), waferU(), waferV(), and zside().
Referenced by HGCSiliconDetIdToModule::getModule().
HGCSiliconDetId & HGCSiliconDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 38 of file HGCSiliconDetId.cc.
References TauDecayModes::dec, Exception, DetId::HGCalEE, DetId::HGCalHSi, and DetId::id_.
|
inline |
|
inline |
Definition at line 84 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalCoarseN, HGCalCoarseTrigger, HGCalFine, HGCalFineN, HGCalFineTrigger, N, and type().
Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), and triggerCellUV().
|
inline |
|
inline |
Definition at line 91 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalCoarseN, HGCalCoarseTrigger, HGCalFine, HGCalFineN, HGCalFineTrigger, N, and type().
Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), and triggerCellUV().
|
inline |
get the type
Definition at line 51 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), cellX(), cellY(), hgcal::RecHitTools::getRadiusToSide(), hgcal::RecHitTools::getSiThickIndex(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), moduleId(), HGCalRecHitWorkerSimple::run(), HGCalTriggerTools::thicknessIndex(), triggerCellU(), triggerCellV(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 76 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, and waferUAbs().
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), hgcal::RecHitTools::getWafer(), HGCSiliconDetId(), moduleId(), HGCalDDDConstants::waferType(), waferUV(), and waferX().
|
inline |
get the wafer #'s in u,v or in x,y
Definition at line 74 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferUMask, and kHGCalWaferUOffset.
Referenced by waferU().
|
inline |
Definition at line 78 of file HGCSiliconDetId.h.
References waferU(), and waferV().
Referenced by HGCalSD::setDetUnitId().
|
inline |
Definition at line 77 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, and waferVAbs().
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), hgcal::RecHitTools::getWafer(), HGCSiliconDetId(), moduleId(), HGCalDDDConstants::waferType(), waferUV(), waferX(), and waferY().
|
inline |
Definition at line 75 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.
Referenced by waferV().
|
inline |
|
inline |
|
inline |
|
inline |
get the z-side of the cell (1/-1)
Definition at line 54 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), geometryCell(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCSiliconDetId(), moduleId(), hgcal::RecHitTools::zside(), and HGCalTriggerTools::zside().
|
static |
Definition at line 26 of file HGCSiliconDetId.h.
Referenced by cellX(), cellY(), HGCSiliconDetIdToModule::getDetIds(), HGCalMouseBite::HGCalMouseBite(), triggerCellU(), and triggerCellV().
|
static |
Definition at line 28 of file HGCSiliconDetId.h.
Referenced by HGCalTriggerDetId::cellU(), HGCalTriggerDetId::cellV(), triggerCellU(), triggerCellV(), HGCalTriggerDetId::triggerCellX(), and HGCalTriggerDetId::triggerCellY().
|
static |
Definition at line 25 of file HGCSiliconDetId.h.
Referenced by cellX(), cellY(), HGCSiliconDetIdToModule::getDetIds(), HGCSiliconDetIdToModule::getDetTriggerIds(), HGCalMouseBite::HGCalMouseBite(), triggerCellU(), and triggerCellV().
|
static |
Definition at line 27 of file HGCSiliconDetId.h.
Referenced by HGCalTriggerDetId::cellU(), HGCalTriggerDetId::cellV(), HGCSiliconDetIdToModule::getDetTriggerIds(), triggerCellU(), triggerCellV(), HGCalTriggerDetId::triggerCellX(), and HGCalTriggerDetId::triggerCellY().
|
static |
Definition at line 109 of file HGCSiliconDetId.h.
Referenced by cellU(), HGCSiliconDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), and HGCalTriggerGeometryV9Imp1::unpackCellId().
|
static |
Definition at line 108 of file HGCSiliconDetId.h.
Referenced by cellU(), HGCSiliconDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), and HGCalTriggerGeometryV9Imp1::unpackCellId().
|
static |
Definition at line 111 of file HGCSiliconDetId.h.
Referenced by cellV(), HGCSiliconDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), and HGCalTriggerGeometryV9Imp1::unpackCellId().
|
static |
Definition at line 110 of file HGCSiliconDetId.h.
Referenced by cellV(), HGCSiliconDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), and HGCalTriggerGeometryV9Imp1::unpackCellId().
|
static |
Definition at line 121 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), layer(), and HGCalTriggerGeometryV9Imp2::packLayerWaferId().
|
static |
Definition at line 120 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), layer(), and HGCalTriggerGeometryV9Imp2::packLayerWaferId().
|
static |
Definition at line 125 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), and type().
|
static |
Definition at line 124 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), and type().
|
static |
Definition at line 113 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferUAbs().
|
static |
Definition at line 112 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferUAbs().
|
static |
Definition at line 115 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferU().
|
static |
Definition at line 114 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferU().
|
static |
Definition at line 117 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferVAbs().
|
static |
Definition at line 116 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferVAbs().
|
static |
Definition at line 119 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferV().
|
static |
Definition at line 118 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), HGCalTriggerGeometryV9Imp2::packLayerWaferId(), HGCalTriggerGeometryV9Imp2::packWaferId(), HGCalTriggerGeometryV9Imp1::packWaferId(), HGCalTriggerGeometryV9Imp2::unpackWaferId(), HGCalTriggerGeometryV9Imp1::unpackWaferId(), and waferV().
|
static |
Definition at line 123 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and zside().
|
static |
Definition at line 122 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and zside().
|
static |
Definition at line 105 of file HGCSiliconDetId.h.