#include <HGCEEDetId.h>
Public Types | |
enum | { Subdet =HGCEE } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5, Forward =6 } |
Public Member Functions | |
int | cell () const |
get the absolute value of the cell #'s in x and y More... | |
HGCEEDetId | geometryCell () const |
HGCEEDetId () | |
HGCEEDetId (uint32_t rawid) | |
HGCEEDetId (ForwardSubdetector subdet, int zp, int lay, int mod, int subsec, int cell) | |
HGCEEDetId (const DetId &id) | |
bool | isEE () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
int | layer () const |
get the layer # More... | |
HGCEEDetId & | 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 | kHGCEECellMask = 0xFFF |
static const int | kHGCEECellOffset = 0 |
static const int | kHGCEELayerMask = 0x1F |
static const int | kHGCEELayerOffset = 19 |
static const int | kHGCEESectorMask = 0x3F |
static const int | kHGCEESectorOffset = 12 |
static const int | kHGCEESubSectorMask = 0x1 |
static const int | kHGCEESubSectorOffset = 18 |
static const int | kHGCEEZsideMask = 0x1 |
static const int | kHGCEEZsideOffset = 24 |
static const HGCEEDetId | Undefined |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 9 of file HGCEEDetId.h.
anonymous enum |
Enumerator | |
---|---|
Subdet |
Definition at line 21 of file HGCEEDetId.h.
HGCEEDetId::HGCEEDetId | ( | ) |
HGCEEDetId::HGCEEDetId | ( | uint32_t | rawid | ) |
HGCEEDetId::HGCEEDetId | ( | ForwardSubdetector | subdet, |
int | zp, | ||
int | lay, | ||
int | mod, | ||
int | subsec, | ||
int | cell | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 14 of file HGCEEDetId.cc.
References DetId::id_, kHGCEECellMask, kHGCEECellOffset, kHGCEELayerMask, kHGCEELayerOffset, kHGCEESectorMask, kHGCEESectorOffset, kHGCEESubSectorMask, kHGCEESubSectorOffset, kHGCEEZsideMask, and kHGCEEZsideOffset.
HGCEEDetId::HGCEEDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 24 of file HGCEEDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Forward, HGCEE, 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 HGCEEDetId.h.
References DetId::id_, and kHGCEECellMask.
|
inline |
Converter for a geometry cell id
Definition at line 34 of file HGCEEDetId.h.
References HGCEEDetId(), layer(), sector(), subdet(), and zside().
|
inline |
consistency check : no bits left => no overhead
Definition at line 55 of file HGCEEDetId.h.
|
inline |
Definition at line 56 of file HGCEEDetId.h.
|
inline |
get the layer #
Definition at line 49 of file HGCEEDetId.h.
References DetId::id_, kHGCEELayerMask, and kHGCEELayerOffset.
Referenced by geometryCell(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
HGCEEDetId & HGCEEDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 34 of file HGCEEDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Forward, HGCEE, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
|
inline |
get the sector #
Definition at line 43 of file HGCEEDetId.h.
References DetId::id_, kHGCEESectorMask, and kHGCEESectorOffset.
Referenced by geometryCell(), and geometryXMLparser.DTAlignable::index().
|
inline |
get the subdetector
Definition at line 37 of file HGCEEDetId.h.
References HGCEE.
Referenced by geometryCell(), HGCEEDetId(), and operator=().
|
inline |
get the degree subsector
Definition at line 46 of file HGCEEDetId.h.
References DetId::id_, kHGCEESubSectorMask, and kHGCEESubSectorOffset.
|
inline |
get the z-side of the cell (1/-1)
Definition at line 52 of file HGCEEDetId.h.
References DetId::id_, kHGCEEZsideMask, and kHGCEEZsideOffset.
Referenced by geometryCell().
|
static |
Definition at line 12 of file HGCEEDetId.h.
Referenced by cell(), and HGCEEDetId().
|
static |
Definition at line 11 of file HGCEEDetId.h.
Referenced by HGCEEDetId().
|
static |
Definition at line 18 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and layer().
|
static |
Definition at line 17 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and layer().
|
static |
Definition at line 14 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and sector().
|
static |
Definition at line 13 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and sector().
|
static |
Definition at line 16 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and subsector().
|
static |
Definition at line 15 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and subsector().
|
static |
Definition at line 20 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and zside().
|
static |
Definition at line 19 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and zside().
|
static |
Definition at line 58 of file HGCEEDetId.h.