#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 (uint32_t rawid) | |
HGCSiliconDetId (DetId::Detector det, int zp, int type, int layer, int waferU, int waferV, int cellU, int cellV) | |
HGCSiliconDetId (const DetId &id) | |
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 & | 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 (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 const int | HGCalCoarseN =8 |
static const int | HGCalCoarseTrigger =2 |
static const int | HGCalFineN =12 |
static const int | HGCalFineTrigger =3 |
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 |
Static Private Attributes | |
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 |
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 26 of file HGCSiliconDetId.h.
HGCSiliconDetId::HGCSiliconDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HGCSiliconDetId.cc.
Referenced by geometryCell().
HGCSiliconDetId::HGCSiliconDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 11 of file HGCSiliconDetId.cc.
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 14 of file HGCSiliconDetId.cc.
References funct::abs(), DetId::id_, kHGCalCellUMask, kHGCalCellUOffset, kHGCalCellVMask, kHGCalCellVOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalTypeMask, kHGCalTypeOffset, kHGCalWaferUMask, kHGCalWaferUOffset, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, kHGCalWaferVMask, kHGCalWaferVOffset, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, kHGCalZsideMask, kHGCalZsideOffset, and zside().
HGCSiliconDetId::HGCSiliconDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 33 of file HGCSiliconDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::HGCalEE, DetId::HGCalHSi, DetId::id_, DetId::null(), and DetId::rawId().
|
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 HGCalSimHitValidation::analyzeHits(), cellUV(), cellY(), triggerCellU(), and triggerCellV().
|
inline |
Definition at line 62 of file HGCSiliconDetId.h.
References cellU(), and cellV().
|
inline |
Definition at line 61 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalCellVMask, and kHGCalCellVOffset.
Referenced by HGCalSimHitValidation::analyzeHits(), cellUV(), cellX(), cellY(), triggerCellU(), and triggerCellV().
|
inline |
Definition at line 63 of file HGCSiliconDetId.h.
References cellV(), HGCalFine, N, and type().
Referenced by cellXY().
|
inline |
|
inline |
Definition at line 67 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalFine, N, and type().
Referenced by cellXY().
|
inline |
Converter for a geometry cell id
Definition at line 45 of file HGCSiliconDetId.h.
References DetId::det(), HGCSiliconDetId(), layer(), waferU(), waferV(), and zside().
Referenced by HGCalGeometry::getGeometry(), HGCalGeometry::indexFor(), HGCalGeometry::newCell(), and HGCalGeometry::present().
|
inline |
consistency check : no bits left => no overhead
Definition at line 103 of file HGCSiliconDetId.h.
References DetId::det(), and DetId::HGCalEE.
|
inline |
Definition at line 105 of file HGCSiliconDetId.h.
|
inline |
Definition at line 104 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(), HGCalSimHitValidation::analyzeHits(), geometryCell(), hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getSiThickness(), HGCalGeometry::getSummary(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and HGCalRecHitSimpleAlgo::makeRecHit().
HGCSiliconDetId & HGCSiliconDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 42 of file HGCSiliconDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::HGCalEE, DetId::HGCalHSi, DetId::id_, DetId::null(), and DetId::rawId().
|
inline |
get the subdetector
Definition at line 48 of file HGCSiliconDetId.h.
References DetId::det().
|
inline |
Definition at line 84 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalFine, N, and type().
Referenced by triggerCellUV().
|
inline |
|
inline |
Definition at line 91 of file HGCSiliconDetId.h.
References cellU(), cellV(), HGCalFine, N, and type().
Referenced by triggerCellUV().
|
inline |
get the type
Definition at line 51 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by HGCalSimHitValidation::analyzeHits(), cellX(), cellY(), hgcal::RecHitTools::getRadiusToSide(), hgcal::RecHitTools::getSiThickIndex(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), HGCalRecHitWorkerSimple::run(), triggerCellU(), triggerCellV(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 76 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, and waferUAbs().
Referenced by HGCalSimHitValidation::analyzeHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), 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 HGCalSimHitValidation::analyzeHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), waferUV(), waferX(), and waferY().
|
inline |
Definition at line 75 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.
Referenced by waferV().
|
inline |
Definition at line 79 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 54 of file HGCSiliconDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalSimHitValidation::analyzeHits(), geometryCell(), HGCSiliconDetId(), and hgcal::RecHitTools::zside().
|
static |
Definition at line 28 of file HGCSiliconDetId.h.
|
static |
Definition at line 30 of file HGCSiliconDetId.h.
Referenced by HGCalTriggerDetId::cellU(), HGCalTriggerDetId::cellV(), HGCalTriggerDetId::triggerCellX(), and HGCalTriggerDetId::triggerCellY().
|
static |
Definition at line 27 of file HGCSiliconDetId.h.
|
static |
Definition at line 29 of file HGCSiliconDetId.h.
Referenced by HGCalTriggerDetId::cellU(), HGCalTriggerDetId::cellV(), HGCalTriggerDetId::triggerCellX(), and HGCalTriggerDetId::triggerCellY().
|
staticprivate |
Definition at line 112 of file HGCSiliconDetId.h.
Referenced by cellU(), and HGCSiliconDetId().
|
staticprivate |
Definition at line 111 of file HGCSiliconDetId.h.
Referenced by cellU(), and HGCSiliconDetId().
|
staticprivate |
Definition at line 114 of file HGCSiliconDetId.h.
Referenced by cellV(), and HGCSiliconDetId().
|
staticprivate |
Definition at line 113 of file HGCSiliconDetId.h.
Referenced by cellV(), and HGCSiliconDetId().
|
staticprivate |
Definition at line 124 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and layer().
|
staticprivate |
Definition at line 123 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and layer().
|
staticprivate |
Definition at line 128 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and type().
|
staticprivate |
Definition at line 127 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and type().
|
staticprivate |
Definition at line 116 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferUAbs().
|
staticprivate |
Definition at line 115 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferUAbs().
|
staticprivate |
Definition at line 118 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferU().
|
staticprivate |
Definition at line 117 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferU().
|
staticprivate |
Definition at line 120 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferVAbs().
|
staticprivate |
Definition at line 119 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferVAbs().
|
staticprivate |
Definition at line 122 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferV().
|
staticprivate |
Definition at line 121 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and waferV().
|
staticprivate |
Definition at line 126 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and zside().
|
staticprivate |
Definition at line 125 of file HGCSiliconDetId.h.
Referenced by HGCSiliconDetId(), and zside().
|
static |
Definition at line 107 of file HGCSiliconDetId.h.