#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 | |
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 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 | 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 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 10 of file HGCHEDetId.h.
HGCHEDetId::HGCHEDetId | ( | ) |
HGCHEDetId::HGCHEDetId | ( | uint32_t | rawid | ) |
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 13 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, HGCHET, 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 42 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 58 of file HGCHEDetId.h.
|
inline |
|
inline |
get the layer #
Definition at line 51 of file HGCHEDetId.h.
References DetId::id_, kHGCHELayerMask, and kHGCHELayerOffset.
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, HGCHET, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
|
inline |
get the sector #
Definition at line 45 of file HGCHEDetId.h.
References DetId::id_, kHGCHESectorMask, and kHGCHESectorOffset.
Referenced by geometryCell(), and geometryXMLparser.DTAlignable::index().
|
inline |
get the subdetector
Definition at line 39 of file HGCHEDetId.h.
References DetId::subdetId().
Referenced by geometryCell(), HGCHEDetId(), and operator=().
|
inline |
get the degree subsector
Definition at line 48 of file HGCHEDetId.h.
References DetId::id_, kHGCHESubSectorMask, and kHGCHESubSectorOffset.
|
inline |
get the z-side of the cell (1/-1)
Definition at line 54 of file HGCHEDetId.h.
References DetId::id_, kHGCHEZsideMask, and kHGCHEZsideOffset.
Referenced by geometryCell().
|
static |
Definition at line 13 of file HGCHEDetId.h.
Referenced by cell(), and HGCHEDetId().
|
static |
Definition at line 12 of file HGCHEDetId.h.
Referenced by HGCHEDetId().
|
static |
Definition at line 19 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and layer().
|
static |
Definition at line 18 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and layer().
|
static |
Definition at line 15 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and sector().
|
static |
Definition at line 14 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and sector().
|
static |
Definition at line 17 of file HGCHEDetId.h.
Referenced by geometryCell(), HGCHEDetId(), and subsector().
|
static |
Definition at line 16 of file HGCHEDetId.h.
Referenced by geometryCell(), HGCHEDetId(), and subsector().
|
static |
Definition at line 21 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and zside().
|
static |
Definition at line 20 of file HGCHEDetId.h.
Referenced by HGCHEDetId(), and zside().
|
static |
Definition at line 60 of file HGCHEDetId.h.