#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, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
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 | |
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 | 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 | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 8 of file HGCEEDetId.h.
anonymous enum |
Enumerator | |
---|---|
Subdet |
Definition at line 20 of file HGCEEDetId.h.
HGCEEDetId::HGCEEDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HGCEEDetId.cc.
Referenced by geometryCell().
HGCEEDetId::HGCEEDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 10 of file HGCEEDetId.cc.
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 12 of file HGCEEDetId.cc.
References cell(), DetId::id_, kHGCEECellMask, kHGCEECellOffset, kHGCEELayerMask, kHGCEELayerOffset, kHGCEESectorMask, kHGCEESectorOffset, kHGCEESubSectorMask, kHGCEESubSectorOffset, kHGCEEZsideMask, kHGCEEZsideOffset, and fileinputsource_cfi::sec.
HGCEEDetId::HGCEEDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 24 of file HGCEEDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, HGCEE, DetId::id_, and subdet().
|
inline |
get the absolute value of the cell #'s in x and y
Definition at line 39 of file HGCEEDetId.h.
References DetId::id_, and kHGCEECellMask.
Referenced by HGCEEDetId().
|
inline |
Converter for a geometry cell id
Definition at line 33 of file HGCEEDetId.h.
References HGCEEDetId(), layer(), sector(), subdet(), and zside().
|
inline |
consistency check : no bits left => no overhead
Definition at line 54 of file HGCEEDetId.h.
|
inline |
Definition at line 55 of file HGCEEDetId.h.
|
inline |
get the layer #
Definition at line 48 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 35 of file HGCEEDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, HGCEE, DetId::id_, and subdet().
|
inline |
get the sector #
Definition at line 42 of file HGCEEDetId.h.
References DetId::id_, kHGCEESectorMask, and kHGCEESectorOffset.
Referenced by geometryCell(), and geometryXMLparser.DTAlignable::index().
|
inline |
get the subdetector
Definition at line 36 of file HGCEEDetId.h.
References HGCEE.
Referenced by geometryCell(), HGCEEDetId(), and operator=().
|
inline |
get the degree subsector
Definition at line 45 of file HGCEEDetId.h.
References DetId::id_, kHGCEESubSectorMask, and kHGCEESubSectorOffset.
|
inline |
get the z-side of the cell (1/-1)
Definition at line 51 of file HGCEEDetId.h.
References DetId::id_, kHGCEEZsideMask, and kHGCEEZsideOffset.
Referenced by geometryCell().
|
static |
Definition at line 11 of file HGCEEDetId.h.
Referenced by cell(), and HGCEEDetId().
|
static |
Definition at line 10 of file HGCEEDetId.h.
Referenced by HGCEEDetId().
|
static |
Definition at line 17 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and layer().
|
static |
Definition at line 16 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and layer().
|
static |
Definition at line 13 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and sector().
|
static |
Definition at line 12 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and sector().
|
static |
Definition at line 15 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and subsector().
|
static |
Definition at line 14 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and subsector().
|
static |
Definition at line 19 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and zside().
|
static |
Definition at line 18 of file HGCEEDetId.h.
Referenced by HGCEEDetId(), and zside().
|
static |
Definition at line 57 of file HGCEEDetId.h.