#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 | |
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 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 | ( | ) |
Create a null cellid
Definition at line 6 of file HGCalDetId.cc.
Referenced by geometryCell().
HGCalDetId::HGCalDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 8 of file HGCalDetId.cc.
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(), hgcal::RecHitTools::getCell(), HGCalDetId(), hgcal::RecHitTools::isHalfCell(), and isValid().
|
inline |
Converter for a geometry cell id
Definition at line 34 of file HGCalDetId.h.
References HGCalDetId(), DetId::id_, and kHGCalMaskCell.
Referenced by HGCalTBGeometry::getGeometryDetId(), and HGCalGeometry::getGeometryDetId().
|
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 HGCalTBAnalyzer::analyzeRecHits(), HGCalTBAnalyzer::analyzeSimHits(), hgcal::RecHitTools::getLayer(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getSiThickness(), HGCalTBGeometry::getSummary(), HGCalGeometry::getSummary(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalTriggerGeometryV9Imp2::layerWithOffset(), and HGCalTriggerGeometryV9Imp3::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(), HGCalTriggerGeometryV9Imp2::getLinksInModule(), HGCalTriggerGeometryV9Imp2::getModuleSize(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), hgcal::RecHitTools::getSiThickness(), 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 hgcal::RecHitTools::getRadiusToSide(), 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 HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), and hgcal::RecHitTools::zside().
|
static |
Definition at line 11 of file HGCalDetId.h.
Referenced by cell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalDetId(), and isValid().
|
static |
Definition at line 10 of file HGCalDetId.h.
Referenced by HGCalDetId().
|
static |
Definition at line 17 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), layer(), and HGCalTriggerGeometryV9Imp2::packLayerModuleId().
|
static |
Definition at line 16 of file HGCalDetId.h.
Referenced by HGCalDetId(), layer(), and HGCalTriggerGeometryV9Imp2::packLayerModuleId().
|
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(), and wafer().
|
static |
Definition at line 12 of file HGCalDetId.h.
Referenced by HGCalDetId(), HGCalTriggerGeometryV9Imp2::packLayerModuleId(), and wafer().
|
static |
Definition at line 15 of file HGCalDetId.h.
Referenced by HGCalDetId(), isValid(), and waferType().
|
static |
Definition at line 14 of file HGCalDetId.h.
Referenced by HGCalDetId(), 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.