#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 (uint32_t rawid) | |
HGCalDetId (ForwardSubdetector subdet, int zp, int lay, int wafertype, int wafer, int cell) | |
HGCalDetId (const DetId &id) | |
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 | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
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 = 0xFFFFFF00 |
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 | kDetOffset = 28 |
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 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 9 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 12 of file HGCalDetId.cc.
References gather_cfg::cout, DetId::id_, kHGCalCellMask, kHGCalCellOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalWaferMask, kHGCalWaferOffset, kHGCalWaferTypeMask, kHGCalWaferTypeOffset, kHGCalZsideMask, and kHGCalZsideOffset.
HGCalDetId::HGCalDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 36 of file HGCalDetId.cc.
References DetId::id_, and DetId::rawId().
|
inline |
get the absolute value of the cell #'s in x and y
Definition at line 39 of file HGCalDetId.h.
References DetId::id_, and kHGCalCellMask.
Referenced by HGCalTBAnalyzer::analyzeRecHits(), hgcal::RecHitTools::getCell(), HGCalTriggerGeometryHexImp2::getCellsFromTriggerCell(), HGCalTriggerGeometryHexImp2::getTriggerCellFromCell(), and hgcal::RecHitTools::isHalfCell().
|
inline |
Converter for a geometry cell id
Definition at line 36 of file HGCalDetId.h.
References DetId::id_, and kHGCalMaskCell.
Referenced by HGCalGeometry::getGeometry(), HGCalGeometry::indexFor(), and HGCalGeometry::newCell().
|
inline |
Definition at line 55 of file HGCalDetId.h.
|
inline |
consistency check : no bits left => no overhead
Definition at line 54 of file HGCalDetId.h.
|
static |
Definition at line 45 of file HGCalDetId.cc.
References gather_cfg::cout, HGCEE, HGCHEB, HGCHEF, kHGCalCellMask, kHGCalLayerMask, kHGCalWaferMask, kHGCalWaferTypeMask, and convertSQLiteXML::ok.
Referenced by ntuple._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
get the layer #
Definition at line 48 of file HGCalDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by HGCalTBAnalyzer::analyzeRecHits(), HGCalTriggerGeometryHexImp1::fillMaps(), HGCalTriggerGeometryHexImp2::getCellsFromModule(), HGCalTriggerGeometryHexImp2::getCellsFromTriggerCell(), hgcal::RecHitTools::getLayer(), HGCalTriggerGeometryHexImp2::getModuleFromCell(), HGCalTriggerGeometryHexImp2::getModuleFromTriggerCell(), HGCalTriggerGeometryHexImp2::getOrderedCellsFromModule(), HGCalTriggerGeometryHexImp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryHexImp2::getTriggerCellFromCell(), HGCalTriggerGeometryHexImp2::getTriggerCellsFromModule(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalRecHitSimpleAlgo::makeRecHit(), and SingleCellClusterAlgo::run().
HGCalDetId & HGCalDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 40 of file HGCalDetId.cc.
References DetId::id_, and DetId::rawId().
|
inline |
get the wafer #
Definition at line 42 of file HGCalDetId.h.
References DetId::id_, kHGCalWaferMask, and kHGCalWaferOffset.
Referenced by HGCalTriggerGeometryHexImp1::fillMaps(), HGCalTriggerGeometryHexImp2::getCellsFromModule(), HGCalTriggerGeometryHexImp2::getCellsFromTriggerCell(), HGCalTriggerGeometryHexImp2::getModuleFromCell(), HGCalTriggerGeometryHexImp2::getModuleFromTriggerCell(), HGCalTriggerGeometryHexImp2::getOrderedCellsFromModule(), HGCalTriggerGeometryHexImp2::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getSiThickness(), HGCalTriggerGeometryHexImp2::getTriggerCellFromCell(), HGCalTriggerGeometryHexImp2::getTriggerCellsFromModule(), hgcal::RecHitTools::getWafer(), SingleCellClusterAlgo::run(), and HGCalRecHitWorkerSimple::run().
|
inline |
get the wafer type
Definition at line 45 of file HGCalDetId.h.
References DetId::id_, kHGCalWaferTypeMask, and kHGCalWaferTypeOffset.
Referenced by HGCalTriggerGeometryHexImp1::fillMaps(), HGCalTriggerGeometryHexImp2::getCellsFromModule(), HGCalTriggerGeometryHexImp2::getCellsFromTriggerCell(), HGCalTriggerGeometryHexImp2::getModuleFromCell(), HGCalTriggerGeometryHexImp2::getModuleFromTriggerCell(), HGCalTriggerGeometryHexImp2::getOrderedCellsFromModule(), HGCalTriggerGeometryHexImp2::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getRadiusToSide(), HGCalTriggerGeometryHexImp2::getTriggerCellFromCell(), HGCalTriggerGeometryHexImp2::getTriggerCellsFromModule(), and hgcal::RecHitTools::isHalfCell().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 51 of file HGCalDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalTriggerGeometryHexImp1::fillMaps(), HGCalTriggerGeometryHexImp2::getCellsFromModule(), HGCalTriggerGeometryHexImp2::getCellsFromTriggerCell(), HGCalTriggerGeometryHexImp2::getModuleFromCell(), HGCalTriggerGeometryHexImp2::getModuleFromTriggerCell(), HGCalTriggerGeometryHexImp2::getOrderedCellsFromModule(), HGCalTriggerGeometryHexImp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryHexImp2::getTriggerCellFromCell(), and HGCalTriggerGeometryHexImp2::getTriggerCellsFromModule().
|
static |
Definition at line 13 of file HGCalDetId.h.
Referenced by cell(), HGCalTriggerGeometryHexImp1::fillMaps(), HGCalTriggerGeometryHexImp2::getModuleFromCell(), HGCalTriggerGeometryHexImp2::getModuleFromTriggerCell(), HGCalDetId(), and isValid().
|
static |
Definition at line 12 of file HGCalDetId.h.
Referenced by HGCalDetId().
|
static |
Definition at line 19 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), and layer().
|
static |
Definition at line 18 of file HGCalDetId.h.
Referenced by HGCalDetId(), and layer().
|
static |
Definition at line 22 of file HGCalDetId.h.
Referenced by geometryCell().
|
static |
Definition at line 15 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), and wafer().
|
static |
Definition at line 14 of file HGCalDetId.h.
Referenced by HGCalDetId(), and wafer().
|
static |
Definition at line 17 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), and waferType().
|
static |
Definition at line 16 of file HGCalDetId.h.
Referenced by HGCalDetId(), and waferType().
|
static |
Definition at line 21 of file HGCalDetId.h.
Referenced by HGCalDetId(), and zside().
|
static |
Definition at line 20 of file HGCalDetId.h.
Referenced by HGCalDetId(), and zside().
|
static |
Definition at line 59 of file HGCalDetId.h.