|
LDMX Software
|
Implements detector ids for HCal subdetector. More...
#include <HcalID.h>
Public Types | |
| enum | HcalSection { BACK = 0 , TOP = 1 , BOTTOM = 2 , RIGHT = 3 , LEFT = 4 } |
| Encodes the section of the HCal based on the 'section' field value. More... | |
Public Types inherited from ldmx::HcalAbstractID | |
| enum | HcalBarType { Global = 0 , Digi = 1 , Trigger = 2 , Special = 7 } |
| Encodes whether the side of the strips of the HCal is saved. More... | |
Public Types inherited from ldmx::DetectorID | |
| typedef uint32_t | RawValue |
Public Member Functions | |
| HcalID () | |
| Empty HCAL id (but not null!) | |
| HcalID (RawValue rawid) | |
| Create from raw number. | |
| HcalID (const HcalAbstractID id) | |
| Create from a DetectorID, but check. | |
| HcalID (unsigned int section, unsigned int layer, unsigned int strip) | |
| Create from pieces. | |
| unsigned int | getSection () const |
| unsigned int | section () const |
| unsigned int | layer () const |
| Get the value of the layer field from the ID. | |
| unsigned int | getLayerID () const |
| Get the value of the layer field from the ID. | |
| unsigned int | getStrip () const |
| Get the value of the 'strip' field from the ID. | |
| unsigned int | strip () const |
| Get the value of the 'strip' field from the ID. | |
Public Member Functions inherited from ldmx::HcalAbstractID | |
| HcalAbstractID () | |
| Empty HCAL id (but not null!) | |
| HcalAbstractID (RawValue rawid) | |
| Create from raw number. | |
| HcalAbstractID (const DetectorID id) | |
| Create from a DetectorID, but check. | |
| HcalAbstractID (unsigned int bar_type, unsigned int payload) | |
| Create from pieces. | |
| int | barType () const |
| Get the value of the bar field from the ID. | |
| int | payload () const |
| Get the value of the payload field from the ID. | |
Public Member Functions inherited from ldmx::DetectorID | |
| DetectorID () | |
| Class constructor for a null DetectorID. | |
| DetectorID (RawValue rawid) | |
| Class constructor from a raw 32-bit integer. | |
| DetectorID (SubdetectorIDType sdtype, RawValue raw_subpayload) | |
| Class constructor from a subdetector id and a subdetector-specific section (masked to. | |
| bool | null () const |
| SubdetectorIDType | subdet () const |
| RawValue | raw () const |
| void | setRawValue (RawValue rawValue) |
| Set the raw value of the detector ID. | |
| bool | operator< (const DetectorID &id) const |
| bool | operator== (const DetectorID &id) const |
| bool | operator!= (const DetectorID &id) const |
Static Public Member Functions | |
| static void | createInterpreters () |
Static Public Attributes | |
| static const RawValue | SECTION_MASK {0x7} |
| static const RawValue | SECTION_SHIFT {18} |
| static const RawValue | LAYER_MASK {0xFF} |
| static const RawValue | LAYER_SHIFT {10} |
| static const RawValue | STRIP_MASK {0xFF} |
| static const RawValue | STRIP_SHIFT {0} |
Static Public Attributes inherited from ldmx::HcalAbstractID | |
| static const RawValue | BAR_TYPE_MASK {0x7} |
| static const RawValue | BAR_TYPE_SHIFT {23} |
| static const RawValue | HCAL_PAYLOAD_MASK {0x007FFFFF} |
Static Public Attributes inherited from ldmx::DetectorID | |
| static const RawValue | SUBDETECTORID_MASK {0x3F} |
| static const RawValue | SUBDETECTORID_SHIFT {26} |
| static const RawValue | SUBDETECTOR_PAYLOAD_MASK {0x3FFFFFF} |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const ldmx::HcalID &d) |
Additional Inherited Members | |
Protected Attributes inherited from ldmx::DetectorID | |
| RawValue | id_ |
| The raw, packed value of the ID. | |
|
inline |
Empty HCAL id (but not null!)
Definition at line 36 of file HcalID.h.
|
inline |
Create from raw number.
Definition at line 41 of file HcalID.h.
References ldmx::HcalAbstractID::barType(), and ldmx::DetectorID::null().
|
inline |
Create from a DetectorID, but check.
Definition at line 53 of file HcalID.h.
References ldmx::HcalAbstractID::barType(), and ldmx::DetectorID::null().
|
inline |
Create from pieces.
Definition at line 65 of file HcalID.h.
References ldmx::DetectorID::id_, layer(), and strip().
|
static |
Definition at line 12 of file HcalID.cxx.
|
inline |
Get the value of the layer field from the ID.
Definition at line 96 of file HcalID.h.
References ldmx::DetectorID::id_.
Referenced by dqm::VisiblesCutflow::analyze(), dqm::VisiblesFeatureProducer::analyze(), hcal::VisiblesVetoProcessor::produce(), and TEST_CASE().
|
inline |
|
inline |
Get the value of the 'strip' field from the ID.
Definition at line 102 of file HcalID.h.
References ldmx::DetectorID::id_.
Referenced by TEST_CASE().
|
inline |
Get the value of the layer field from the ID.
Definition at line 90 of file HcalID.h.
References ldmx::DetectorID::id_.
Referenced by HcalID(), hcal::HcalDigiProducer::produce(), and TEST_CASE().
|
inline |
|
inline |
Get the value of the 'strip' field from the ID.
Definition at line 108 of file HcalID.h.
References ldmx::DetectorID::id_.
Referenced by HcalID(), hcal::HcalDigiProducer::produce(), and TEST_CASE().
|
friend |
Definition at line 7 of file HcalID.cxx.
|
static |
|
static |
|
static |
|
static |
|
static |