#include <HGCalDetId.h>
Public Member Functions | |
int | cell () const |
get the absolute value of the cell #'s in x and y More... | |
HGCalDetId | geometryCell () const |
HGCalDetId () | |
HGCalDetId (const DetId &id) | |
HGCalDetId (ForwardSubdetector subdet, int zp, int lay, int wafertype, int wafer, int cell) | |
HGCalDetId (uint32_t rawid) | |
bool | isForward () const |
bool | isHGCal () const |
consistency check : no bits left => no overhead More... | |
int | layer () const |
get the layer # More... | |
HGCalDetId & | operator= (const DetId &id) |
int | wafer () const |
get the wafer # More... | |
int | waferType () const |
get the wafer type More... | |
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 Member Functions | |
static bool | isValid (ForwardSubdetector subdet, int zp, int lay, int wafertype, int wafer, int cell) |
Static Public Attributes | |
static const int | kHGCalCellMask = 0xFF |
static const int | kHGCalCellOffset = 0 |
static const int | kHGCalLayerMask = 0x1F |
static const int | kHGCalLayerOffset = 19 |
static const int | kHGCalMaskCell = 0xFFFBFF00 |
static const int | kHGCalWaferMask = 0x3FF |
static const int | kHGCalWaferOffset = 8 |
static const int | kHGCalWaferTypeMask = 0x1 |
static const int | kHGCalWaferTypeOffset = 18 |
static const int | kHGCalZsideMask = 0x1 |
static const int | kHGCalZsideOffset = 24 |
static const HGCalDetId | 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 | |
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 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 8 of file HGCalDetId.h.
HGCalDetId::HGCalDetId | ( | ) |
HGCalDetId::HGCalDetId | ( | uint32_t | rawid | ) |
HGCalDetId::HGCalDetId | ( | ForwardSubdetector | subdet, |
int | zp, | ||
int | lay, | ||
int | wafertype, | ||
int | wafer, | ||
int | cell | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 10 of file HGCalDetId.cc.
References cell(), gather_cfg::cout, DetId::id_, kHGCalCellMask, kHGCalCellOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalWaferMask, kHGCalWaferOffset, kHGCalWaferTypeMask, kHGCalWaferTypeOffset, kHGCalZsideMask, kHGCalZsideOffset, and wafer().
HGCalDetId::HGCalDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 33 of file HGCalDetId.cc.
References DetId::id_.
|
inline |
get the absolute value of the cell #'s in x and y
Definition at line 37 of file HGCalDetId.h.
References DetId::id_, and kHGCalCellMask.
Referenced by HGCalTBAnalyzer::analyzeRecHits(), HGCalTriggerNtupleHGCTriggerCells::fill(), hgcal::RecHitTools::getCell(), HGCalTriggerGeometryHexLayerBasedImp1::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getCellsFromTriggerCell(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalTriggerGeometryHexLayerBasedImp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellFromCell(), HGCalDetId(), hgcal::RecHitTools::isHalfCell(), and isValid().
|
inline |
Converter for a geometry cell id
Definition at line 34 of file HGCalDetId.h.
References DetId::id_, and kHGCalMaskCell.
|
inline |
Definition at line 53 of file HGCalDetId.h.
|
inline |
consistency check : no bits left => no overhead
Definition at line 52 of file HGCalDetId.h.
|
static |
Definition at line 40 of file HGCalDetId.cc.
References cell(), gather_cfg::cout, HGCEE, HGCHEB, HGCHEF, kHGCalCellMask, kHGCalLayerMask, kHGCalWaferMask, kHGCalWaferTypeMask, convertSQLiteXML::ok, and wafer().
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
get the layer #
Definition at line 46 of file HGCalDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by HGCalRecHitValidation::analyze(), HGCalDigiValidation::analyze(), HGCalTBAnalyzer::analyzeRecHits(), HGCalTBAnalyzer::analyzeSimHits(), HGCalTriggerGeometryHexLayerBasedImp1::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getCellsFromTriggerCell(), hgcal::RecHitTools::getLayer(), HGCalTriggerGeometryHexLayerBasedImp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getModuleFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getSiThickness(), HGCalGeometry::getSummary(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellFromCell(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalTriggerTools::layer(), HGCalTriggerGeometryV9Imp2::layerWithOffset(), HGCalTriggerGeometryHexLayerBasedImp1::layerWithOffset(), and HGCalTriggerGeometryV9Imp1::layerWithOffset().
HGCalDetId & HGCalDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 35 of file HGCalDetId.cc.
References DetId::id_.
|
inline |
get the wafer #
Definition at line 40 of file HGCalDetId.h.
References DetId::id_, kHGCalWaferMask, and kHGCalWaferOffset.
Referenced by HGCalTBAnalyzer::analyzeSimHits(), HGCalTriggerNtupleHGCPanels::fill(), HGCalTriggerNtupleHGCTriggerSums::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerGeometryHexLayerBasedImp1::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getLinksInModule(), HGCalTriggerGeometryV9Imp2::getLinksInModule(), HGCalTriggerGeometryHexLayerBasedImp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getModuleSize(), HGCalTriggerGeometryV9Imp2::getModuleSize(), HGCalTriggerGeometryHexLayerBasedImp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellFromCell(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), hgcal::RecHitTools::getWafer(), HGCalDetId(), and isValid().
|
inline |
get the wafer type
Definition at line 43 of file HGCalDetId.h.
References DetId::id_, kHGCalWaferTypeMask, and kHGCalWaferTypeOffset.
Referenced by HGCalTriggerNtupleHGCTriggerSums::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerGeometryHexLayerBasedImp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getRadiusToSide(), HGCalTriggerGeometryV9Imp1::getTriggerCellsFromModule(), and hgcal::RecHitTools::isHalfCell().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 49 of file HGCalDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalTriggerNtupleHGCPanels::fill(), HGCalTriggerGeometryHexLayerBasedImp1::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getCellsFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getModuleFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getNeighborsFromTriggerCell(), HGCalTriggerGeometryHexLayerBasedImp1::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellFromCell(), HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), hgcal::RecHitTools::zside(), and HGCalTriggerTools::zside().
|
static |
Definition at line 11 of file HGCalDetId.h.
Referenced by cell(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalTriggerGeometryHexLayerBasedImp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp1::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalDetId(), isValid(), HGCalTriggerGeometryV9Imp1::packCellId(), HGCalTriggerGeometryHexLayerBasedImp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCellWithType(), HGCalTriggerGeometryHexLayerBasedImp1::packWaferCellId(), HGCalTriggerGeometryV9Imp1::packWaferCellId(), HGCalTriggerGeometryHexLayerBasedImp1::unpackWaferCellId(), and HGCalTriggerGeometryV9Imp1::unpackWaferCellId().
|
static |
Definition at line 10 of file HGCalDetId.h.
Referenced by HGCalDetId(), HGCalTriggerGeometryV9Imp1::packCellId(), HGCalTriggerGeometryHexLayerBasedImp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCellWithType(), HGCalTriggerGeometryHexLayerBasedImp1::packWaferCellId(), and HGCalTriggerGeometryV9Imp1::packWaferCellId().
|
static |
Definition at line 17 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), layer(), HGCalTriggerGeometryV9Imp2::packLayerModuleId(), HGCalTriggerGeometryV9Imp1::packLayerWaferId(), and HGCalTriggerGeometryV9Imp1::unpackLayerWaferId().
|
static |
Definition at line 16 of file HGCalDetId.h.
Referenced by HGCalDetId(), layer(), HGCalTriggerGeometryV9Imp2::packLayerModuleId(), HGCalTriggerGeometryV9Imp1::packLayerWaferId(), and HGCalTriggerGeometryV9Imp1::unpackLayerWaferId().
|
static |
Definition at line 20 of file HGCalDetId.h.
Referenced by geometryCell().
|
static |
Definition at line 13 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), HGCalTriggerGeometryV9Imp2::packLayerModuleId(), HGCalTriggerGeometryV9Imp1::packLayerWaferId(), HGCalTriggerGeometryHexLayerBasedImp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCellWithType(), HGCalTriggerGeometryHexLayerBasedImp1::packWaferCellId(), HGCalTriggerGeometryV9Imp1::packWaferCellId(), HGCalTriggerGeometryV9Imp1::unpackLayerWaferId(), HGCalTriggerGeometryHexLayerBasedImp1::unpackWaferCellId(), HGCalTriggerGeometryV9Imp1::unpackWaferCellId(), and wafer().
|
static |
Definition at line 12 of file HGCalDetId.h.
Referenced by HGCalDetId(), HGCalTriggerGeometryV9Imp2::packLayerModuleId(), HGCalTriggerGeometryV9Imp1::packLayerWaferId(), HGCalTriggerGeometryHexLayerBasedImp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCell(), HGCalTriggerGeometryV9Imp1::packTriggerCellWithType(), HGCalTriggerGeometryHexLayerBasedImp1::packWaferCellId(), HGCalTriggerGeometryV9Imp1::packWaferCellId(), HGCalTriggerGeometryV9Imp1::unpackLayerWaferId(), HGCalTriggerGeometryHexLayerBasedImp1::unpackWaferCellId(), HGCalTriggerGeometryV9Imp1::unpackWaferCellId(), and wafer().
|
static |
Definition at line 15 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), HGCalTriggerGeometryV9Imp1::packTriggerCellWithType(), and waferType().
|
static |
Definition at line 14 of file HGCalDetId.h.
Referenced by HGCalDetId(), HGCalTriggerGeometryV9Imp1::packTriggerCellWithType(), HGCalTriggerGeometryHexLayerBasedImp1::packWaferCellId(), HGCalTriggerGeometryV9Imp1::packWaferCellId(), and waferType().
|
static |
Definition at line 19 of file HGCalDetId.h.
Referenced by HGCalDetId(), and zside().
|
static |
Definition at line 18 of file HGCalDetId.h.
Referenced by HGCalDetId(), and zside().
|
static |
Definition at line 56 of file HGCalDetId.h.