#include <HFNoseDetId.h>
Public Types | |
enum | hfNoseWaferType { HFNoseFine = 0, HFNoseCoarseThin = 1, HFNoseCoarseThick = 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 |
HFNoseDetId | geometryCell () const |
HFNoseDetId () | |
HFNoseDetId (uint32_t rawid) | |
HFNoseDetId (DetId::Detector det, int zp, int type, int layer, int waferU, int waferV, int cellU, int cellV) | |
HFNoseDetId (int zp, int type, int layer, int waferU, int waferV, int cellU, int cellV) | |
HFNoseDetId (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... | |
HFNoseDetId | moduleId () const |
HFNoseDetId & | operator= (const DetId &id) |
ForwardSubdetector | 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 | HFNoseCoarseN = 8 |
static const int | HFNoseCoarseTrigger = 2 |
static const int | HFNoseFineN = 12 |
static const int | HFNoseFineTrigger = 3 |
static const int | HFNoseLayerEEmax = 6 |
static const HFNoseDetId | 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 | kHFNoseCellUMask = 0x1F |
static const int | kHFNoseCellUOffset = 0 |
static const int | kHFNoseCellVMask = 0x1F |
static const int | kHFNoseCellVOffset = 5 |
static const int | kHFNoseLayerMask = 0x7 |
static const int | kHFNoseLayerOffset = 20 |
static const int | kHFNoseTypeMask = 0x1 |
static const int | kHFNoseTypeOffset = 24 |
static const int | kHFNoseWaferUMask = 0xF |
static const int | kHFNoseWaferUOffset = 10 |
static const int | kHFNoseWaferUSignMask = 0x1 |
static const int | kHFNoseWaferUSignOffset = 14 |
static const int | kHFNoseWaferVMask = 0xF |
static const int | kHFNoseWaferVOffset = 15 |
static const int | kHFNoseWaferVSignMask = 0x1 |
static const int | kHFNoseWaferVSignOffset = 19 |
static const int | kHFNoseZsideMask = 0x1 |
static const int | kHFNoseZsideOffset = 23 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 22 of file HFNoseDetId.h.
Enumerator | |
---|---|
HFNoseFine | |
HFNoseCoarseThin | |
HFNoseCoarseThick |
Definition at line 24 of file HFNoseDetId.h.
HFNoseDetId::HFNoseDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HFNoseDetId.cc.
Referenced by geometryCell(), and moduleId().
HFNoseDetId::HFNoseDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 10 of file HFNoseDetId.cc.
HFNoseDetId::HFNoseDetId | ( | 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 HFNoseDetId.cc.
References funct::abs(), cellU(), cellV(), DetId::id_, kHFNoseCellUMask, kHFNoseCellUOffset, kHFNoseCellVMask, kHFNoseCellVOffset, kHFNoseLayerMask, kHFNoseLayerOffset, kHFNoseTypeMask, kHFNoseTypeOffset, kHFNoseWaferUMask, kHFNoseWaferUOffset, kHFNoseWaferUSignMask, kHFNoseWaferUSignOffset, kHFNoseWaferVMask, kHFNoseWaferVOffset, kHFNoseWaferVSignMask, kHFNoseWaferVSignOffset, kHFNoseZsideMask, kHFNoseZsideOffset, layer(), SiStripPI::max, waferU(), waferV(), and zside().
HFNoseDetId::HFNoseDetId | ( | int | zp, |
int | type, | ||
int | layer, | ||
int | waferU, | ||
int | waferV, | ||
int | cellU, | ||
int | cellV | ||
) |
Definition at line 28 of file HFNoseDetId.cc.
HFNoseDetId::HFNoseDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 31 of file HFNoseDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, HFNose, DetId::id_, and createfilelist::int.
|
inline |
get the cell #'s in u,v or in x,y
Definition at line 60 of file HFNoseDetId.h.
References DetId::id_, kHFNoseCellUMask, and kHFNoseCellUOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), cellUV(), cellY(), hgcal::RecHitTools::getCell(), HFNoseDetId(), triggerCellU(), and triggerCellV().
|
inline |
Definition at line 62 of file HFNoseDetId.h.
References cellU(), and cellV().
|
inline |
Definition at line 61 of file HFNoseDetId.h.
References DetId::id_, kHFNoseCellVMask, and kHFNoseCellVOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), cellUV(), cellX(), cellY(), hgcal::RecHitTools::getCell(), HFNoseDetId(), triggerCellU(), and triggerCellV().
|
inline |
Definition at line 63 of file HFNoseDetId.h.
References cellV(), HFNoseCoarseN, HFNoseFine, HFNoseFineN, N, and type().
Referenced by cellXY().
|
inline |
|
inline |
Definition at line 67 of file HFNoseDetId.h.
References cellU(), cellV(), HFNoseCoarseN, HFNoseFine, HFNoseFineN, N, and type().
Referenced by cellXY().
|
inline |
Converter for a geometry cell id
Definition at line 47 of file HFNoseDetId.h.
References HFNoseDetId(), layer(), waferU(), waferV(), and zside().
Referenced by HGCalGeometry::getGeometryDetId().
|
inline |
consistency check : no bits left => no overhead
Definition at line 105 of file HFNoseDetId.h.
References HFNoseLayerEEmax, and layer().
Referenced by l1t::HGCalClusterT< l1t::HGCalCluster >::hOverE(), and HGCalTriggerTools::isEm().
|
inline |
Definition at line 107 of file HFNoseDetId.h.
|
inline |
|
inline |
get the layer #
Definition at line 57 of file HFNoseDetId.h.
References DetId::id_, kHFNoseLayerMask, and kHFNoseLayerOffset.
Referenced by HGCalDigiValidation::analyze(), HGCalSimHitStudy::analyzeHits(), geometryCell(), hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getSiThickness(), HGCalGeometry::getSummary(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), HFNoseDetId(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), isEE(), isHE(), HGCalTriggerTools::layer(), HGCalTriggerGeometryV9Imp2::layerWithOffset(), moduleId(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 48 of file HFNoseDetId.h.
References HFNoseDetId(), layer(), type(), waferU(), waferV(), and zside().
Referenced by HFNoseDetIdToModule::getModule().
HFNoseDetId & HFNoseDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 41 of file HFNoseDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, HFNose, DetId::id_, and createfilelist::int.
|
inline |
get the subdetector
Definition at line 44 of file HFNoseDetId.h.
References HFNose.
|
inline |
Definition at line 88 of file HFNoseDetId.h.
References cellU(), cellV(), HFNoseCoarseN, HFNoseCoarseTrigger, HFNoseFine, HFNoseFineN, HFNoseFineTrigger, N, and type().
Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), and triggerCellUV().
|
inline |
|
inline |
Definition at line 95 of file HFNoseDetId.h.
References cellU(), cellV(), HFNoseCoarseN, HFNoseCoarseTrigger, HFNoseFine, HFNoseFineN, HFNoseFineTrigger, N, and type().
Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), and triggerCellUV().
|
inline |
get the type
Definition at line 51 of file HFNoseDetId.h.
References DetId::id_, kHFNoseTypeMask, and kHFNoseTypeOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), cellX(), cellY(), hgcal::RecHitTools::getRadiusToSide(), hgcal::RecHitTools::getSiThickIndex(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), moduleId(), HGCalRecHitWorkerSimple::run(), HGCalTriggerTools::thicknessIndex(), triggerCellU(), triggerCellV(), and HGCalDDDConstants::waferType().
|
inline |
Definition at line 76 of file HFNoseDetId.h.
References DetId::id_, kHFNoseWaferUSignMask, kHFNoseWaferUSignOffset, and waferUAbs().
Referenced by HGCalSimHitStudy::analyzeHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), hgcal::RecHitTools::getWafer(), HFNoseDetId(), moduleId(), HGCalDDDConstants::waferType(), waferUV(), and waferX().
|
inline |
get the wafer #'s in u,v or in x,y
Definition at line 74 of file HFNoseDetId.h.
References DetId::id_, kHFNoseWaferUMask, and kHFNoseWaferUOffset.
Referenced by waferU().
|
inline |
Definition at line 82 of file HFNoseDetId.h.
References waferU(), and waferV().
Referenced by HFNoseSD::setDetUnitId().
|
inline |
Definition at line 79 of file HFNoseDetId.h.
References DetId::id_, kHFNoseWaferVSignMask, kHFNoseWaferVSignOffset, and waferVAbs().
Referenced by HGCalSimHitStudy::analyzeHits(), geometryCell(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), hgcal::RecHitTools::getWafer(), HFNoseDetId(), moduleId(), HGCalDDDConstants::waferType(), waferUV(), waferX(), and waferY().
|
inline |
Definition at line 75 of file HFNoseDetId.h.
References DetId::id_, kHFNoseWaferVMask, and kHFNoseWaferVOffset.
Referenced by waferV().
|
inline |
Definition at line 83 of file HFNoseDetId.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 HFNoseDetId.h.
References DetId::id_, kHFNoseZsideMask, and kHFNoseZsideOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), geometryCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), HFNoseDetId(), moduleId(), hgcal::RecHitTools::zside(), and HGCalTriggerTools::zside().
|
static |
Definition at line 26 of file HFNoseDetId.h.
Referenced by cellX(), cellY(), HFNoseDetIdToModule::getDetIds(), triggerCellU(), and triggerCellV().
|
static |
Definition at line 28 of file HFNoseDetId.h.
Referenced by HFNoseTriggerDetId::cellU(), HFNoseTriggerDetId::cellV(), triggerCellU(), triggerCellV(), HFNoseTriggerDetId::triggerCellX(), and HFNoseTriggerDetId::triggerCellY().
|
static |
Definition at line 25 of file HFNoseDetId.h.
Referenced by cellX(), cellY(), HFNoseDetIdToModule::getDetIds(), HFNoseDetIdToModule::getTriggerDetIds(), triggerCellU(), and triggerCellV().
|
static |
Definition at line 27 of file HFNoseDetId.h.
Referenced by HFNoseTriggerDetId::cellU(), HFNoseTriggerDetId::cellV(), HFNoseDetIdToModule::getTriggerDetIds(), triggerCellU(), triggerCellV(), HFNoseTriggerDetId::triggerCellX(), and HFNoseTriggerDetId::triggerCellY().
|
static |
Definition at line 29 of file HFNoseDetId.h.
Referenced by isEE(), isHE(), HGCalTriggerTools::lastLayerEE(), and hgcal::RecHitTools::lastLayerEE().
|
staticprivate |
Definition at line 113 of file HFNoseDetId.h.
Referenced by cellU(), and HFNoseDetId().
|
staticprivate |
Definition at line 112 of file HFNoseDetId.h.
Referenced by cellU(), and HFNoseDetId().
|
staticprivate |
Definition at line 115 of file HFNoseDetId.h.
Referenced by cellV(), and HFNoseDetId().
|
staticprivate |
Definition at line 114 of file HFNoseDetId.h.
Referenced by cellV(), and HFNoseDetId().
|
staticprivate |
Definition at line 125 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and layer().
|
staticprivate |
Definition at line 124 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and layer().
|
staticprivate |
Definition at line 129 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and type().
|
staticprivate |
Definition at line 128 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and type().
|
staticprivate |
Definition at line 117 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferUAbs().
|
staticprivate |
Definition at line 116 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferUAbs().
|
staticprivate |
Definition at line 119 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferU().
|
staticprivate |
Definition at line 118 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferU().
|
staticprivate |
Definition at line 121 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferVAbs().
|
staticprivate |
Definition at line 120 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferVAbs().
|
staticprivate |
Definition at line 123 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferV().
|
staticprivate |
Definition at line 122 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and waferV().
|
staticprivate |
Definition at line 127 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and zside().
|
staticprivate |
Definition at line 126 of file HFNoseDetId.h.
Referenced by HFNoseDetId(), and zside().
|
static |
Definition at line 109 of file HFNoseDetId.h.