#include <HGCHEDetId.h>
Public Member Functions | |
int | cell () const |
get the absolute value of the cell #'s in x and y More... | |
HGCHEDetId | geometryCell () const |
HGCHEDetId () | |
HGCHEDetId (uint32_t rawid) | |
HGCHEDetId (ForwardSubdetector subdet, int zp, int lay, int mod, int subsec, int cell) | |
HGCHEDetId (const DetId &id) | |
bool | isForward () const |
bool | isHE () const |
consistency check More... | |
int | layer () const |
get the layer # More... | |
HGCHEDetId & | operator= (const DetId &id) |
int | sector () const |
get the sector # More... | |
ForwardSubdetector | subdet () const |
get the subdetector More... | |
int | subsector () const |
get the degree subsector 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 Attributes | |
static const int | kHGCHECellMask = 0xFFF |
static const int | kHGCHECellOffset = 0 |
static const int | kHGCHELayerMask = 0x1F |
static const int | kHGCHELayerOffset = 19 |
static const int | kHGCHESectorMask = 0x3F |
static const int | kHGCHESectorOffset = 12 |
static const int | kHGCHESubSectorMask = 0x1 |
static const int | kHGCHESubSectorOffset = 18 |
static const int | kHGCHEZsideMask = 0x1 |
static const int | kHGCHEZsideOffset = 24 |
static const HGCHEDetId | 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 HGCHEDetId.h.
HGCHEDetId::HGCHEDetId | ( | ) |
Create a null cellid
Definition at line 7 of file HGCHEDetId.cc.
Referenced by geometryCell().
HGCHEDetId::HGCHEDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 9 of file HGCHEDetId.cc.
HGCHEDetId::HGCHEDetId | ( | ForwardSubdetector | subdet, |
int | zp, | ||
int | lay, | ||
int | mod, | ||
int | subsec, | ||
int | cell | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 11 of file HGCHEDetId.cc.
References DetId::id_, kHGCHECellMask, kHGCHECellOffset, kHGCHELayerMask, kHGCHELayerOffset, kHGCHESectorMask, kHGCHESectorOffset, kHGCHESubSectorMask, kHGCHESubSectorOffset, kHGCHEZsideMask, and kHGCHEZsideOffset.
HGCHEDetId::HGCHEDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 23 of file HGCHEDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Forward, HGCHEB, HGCHEF, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
|
inline |
get the absolute value of the cell #'s in x and y
Definition at line 40 of file HGCHEDetId.h.
References DetId::id_, and kHGCHECellMask.
HGCHEDetId HGCHEDetId::geometryCell | ( | ) | const |
Converter for a geometry cell id
id | full EKDetId |
Definition at line 46 of file HGCHEDetId.cc.
References HGCHEDetId(), HGCHEF, DetId::id_, kHGCHESubSectorMask, kHGCHESubSectorOffset, layer(), sector(), subdet(), and zside().
|
inline |
Definition at line 56 of file HGCHEDetId.h.
|
inline |
|
inline |
get the layer #
Definition at line 49 of file HGCHEDetId.h.
References DetId::id_, and kHGCHELayerMask.
Referenced by geometryCell(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
HGCHEDetId & HGCHEDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 34 of file HGCHEDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Forward, HGCHEB, HGCHEF, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
|
inline |
get the sector #
Definition at line 43 of file HGCHEDetId.h.
References DetId::id_, and kHGCHESectorMask.
Referenced by geometryCell(), and geometryXMLparser.DTAlignable::index().
|
inline |
get the subdetector
Definition at line 37 of file HGCHEDetId.h.
References DetId::subdetId().
Referenced by geometryCell(), HGCHEDetId(), operator<<(), and operator=().
|
inline |
|
inline |
get the z-side of the cell (1/-1)
Definition at line 52 of file HGCHEDetId.h.
References DetId::id_.
Referenced by geometryCell().
|
static |
Definition at line 11 of file HGCHEDetId.h.
Referenced by cell(), and HGCHEDetId().
|
static |
Definition at line 10 of file HGCHEDetId.h.
Referenced by HGCHEDetId().
|
static |
Definition at line 17 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and layer().
|
static |
Definition at line 16 of file HGCHEDetId.h.
Referenced by HGCHEDetId().
|
static |
Definition at line 13 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and sector().
|
static |
Definition at line 12 of file HGCHEDetId.h.
Referenced by HGCHEDetId().
|
static |
Definition at line 15 of file HGCHEDetId.h.
Referenced by geometryCell(), and HGCHEDetId().
|
static |
Definition at line 14 of file HGCHEDetId.h.
Referenced by geometryCell(), and HGCHEDetId().
|
static |
Definition at line 19 of file HGCHEDetId.h.
Referenced by HGCHEDetId().
|
static |
Definition at line 18 of file HGCHEDetId.h.
Referenced by HGCHEDetId().
|
static |
Definition at line 58 of file HGCHEDetId.h.