#include <HGCTriggerDetId.h>
Public Types | |
enum | { Subdet = HGCTrigger } |
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... | |
HGCTriggerDetId () | |
HGCTriggerDetId (const DetId &id) | |
HGCTriggerDetId (ForwardSubdetector subdet, int zp, int lay, int sector, int mod, int cell) | |
HGCTriggerDetId (uint32_t rawid) | |
bool | isEE () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
int | layer () const |
get the layer # More... | |
int | module () const |
get the degree module More... | |
HGCTriggerDetId & | operator= (const DetId &id) |
int | sector () const |
get the sector # More... | |
ForwardSubdetector | subdet () const |
get the subdetector More... | |
int | zside () const |
get the z-side of the cell (1/-1) More... | |
virtual | ~HGCTriggerDetId () |
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 (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. 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 | |
const static uint32_t | UndefinedCell () |
Static Public Attributes | |
static const HGCTriggerDetId | 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 |
Private Member Functions | |
const int | getMaskedId (const uint32_t &shift, const uint32_t &mask) const |
void | setMaskedId (const uint32_t value, const uint32_t &shift, const uint32_t &mask) |
Static Private Attributes | |
const static uint32_t | cell_mask = 0x7F |
const static uint32_t | cell_shift = 0 |
const static uint32_t | layer_mask = 0x1F |
const static uint32_t | layer_shift = 19 |
const static uint32_t | module_mask = 0x3F |
const static uint32_t | module_shift = 7 |
const static uint32_t | sector_mask = 0x3F |
const static uint32_t | sector_shift = 13 |
const static uint32_t | zside_mask = 0x1 |
const static uint32_t | zside_shift = 24 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 8 of file HGCTriggerDetId.h.
anonymous enum |
HGCTriggerDetId::HGCTriggerDetId | ( | ) |
|
inlinevirtual |
Definition at line 37 of file HGCTriggerDetId.h.
HGCTriggerDetId::HGCTriggerDetId | ( | uint32_t | rawid | ) |
HGCTriggerDetId::HGCTriggerDetId | ( | ForwardSubdetector | subdet, |
int | zp, | ||
int | lay, | ||
int | sector, | ||
int | mod, | ||
int | cell | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 23 of file HGCTriggerDetId.cc.
References cell(), cell_mask, cell_shift, layer_mask, layer_shift, mod(), module_mask, module_shift, fileinputsource_cfi::sec, sector_mask, sector_shift, setMaskedId(), zside_mask, and zside_shift.
HGCTriggerDetId::HGCTriggerDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 35 of file HGCTriggerDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, HGCTrigger, DetId::id_, and subdet().
|
inline |
get the absolute value of the cell #'s in x and y
Definition at line 56 of file HGCTriggerDetId.h.
References cell_mask, cell_shift, and getMaskedId().
Referenced by HGCTriggerDetId().
|
inlineprivate |
Definition at line 25 of file HGCTriggerDetId.h.
References DetId::id_, and edm::shift.
Referenced by cell(), layer(), module(), sector(), and zside().
|
inline |
consistency check : no bits left => no overhead
Definition at line 71 of file HGCTriggerDetId.h.
|
inline |
Definition at line 72 of file HGCTriggerDetId.h.
|
inline |
get the layer #
Definition at line 65 of file HGCTriggerDetId.h.
References getMaskedId(), layer_mask, and layer_shift.
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
inline |
get the degree module
Definition at line 62 of file HGCTriggerDetId.h.
References getMaskedId(), module_mask, and module_shift.
HGCTriggerDetId & HGCTriggerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 46 of file HGCTriggerDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, HGCTrigger, DetId::id_, and subdet().
|
inline |
get the sector #
Definition at line 59 of file HGCTriggerDetId.h.
References getMaskedId(), sector_mask, and sector_shift.
Referenced by geometryXMLparser.DTAlignable::index().
|
inlineprivate |
Definition at line 26 of file HGCTriggerDetId.h.
References DetId::id_, and edm::shift.
Referenced by HGCTriggerDetId().
|
inline |
get the subdetector
Converter for a geometry cell id
id | full EKDetId |
Definition at line 53 of file HGCTriggerDetId.h.
References HGCTrigger.
Referenced by HGCTriggerDetId(), and operator=().
|
inlinestatic |
Definition at line 32 of file HGCTriggerDetId.h.
References cell_mask.
Referenced by HGCalTriggerGeometryImp1::buildMaps().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 68 of file HGCTriggerDetId.h.
References getMaskedId(), zside_mask, and zside_shift.
|
staticprivate |
Definition at line 15 of file HGCTriggerDetId.h.
Referenced by cell(), HGCTriggerDetId(), and UndefinedCell().
|
staticprivate |
Definition at line 14 of file HGCTriggerDetId.h.
Referenced by cell(), and HGCTriggerDetId().
|
staticprivate |
Definition at line 21 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and layer().
|
staticprivate |
Definition at line 20 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and layer().
|
staticprivate |
Definition at line 16 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and module().
|
staticprivate |
Definition at line 17 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and module().
|
staticprivate |
Definition at line 19 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and sector().
|
staticprivate |
Definition at line 18 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and sector().
|
static |
Definition at line 74 of file HGCTriggerDetId.h.
|
staticprivate |
Definition at line 23 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and zside().
|
staticprivate |
Definition at line 22 of file HGCTriggerDetId.h.
Referenced by HGCTriggerDetId(), and zside().