LDMX Software
|
Extension of DetectorID providing access to HCal trigger cell. More...
#include <HcalTriggerID.h>
Public Types | |
enum | HcalSection { BACK = 0 , TOP = 1 , BOTTOM = 2 , LEFT = 4 , RIGHT = 3 } |
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 | |
HcalTriggerID () | |
Empty HCAL trigger id (but not null!) | |
HcalTriggerID (RawValue rawid) | |
Create from raw number. | |
HcalTriggerID (const HcalAbstractID id) | |
Create from a DetectorID, but check. | |
HcalTriggerID (unsigned int section, unsigned int layer, unsigned int superstrip, unsigned int end) | |
Create from pieces. | |
int | getSection () const |
int | section () const |
int | layer () const |
Get the value of the layer field from the ID. | |
int | getLayerID () const |
Get the value of the layer field from the ID. | |
int | getSuperstrip () const |
Get the value of the 'superstrip' field from the ID. | |
int | superstrip () const |
Get the value of the 'superstrip' field from the ID. | |
int | end () const |
Get the value of the 'end' field from the ID. | |
bool | isNegativeEnd () const |
Get whether the 'end' field from the ID is negative. | |
bool | isComposite () const |
Get whether the ID is the composite of two bar ends. | |
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 | bar_type () 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 | END_MASK {0x3} |
static const RawValue | END_SHIFT {20} |
static const RawValue | SECTION_MASK {0x7} |
static const RawValue | SECTION_SHIFT {16} |
static const RawValue | LAYER_MASK {0xFF} |
static const RawValue | LAYER_SHIFT {8} |
static const RawValue | SUPERSTRIP_MASK {0xFF} |
static const RawValue | SUPERSTRIP_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} |
Additional Inherited Members | |
Protected Attributes inherited from ldmx::DetectorID | |
RawValue | id_ |
The raw, packed value of the ID. | |
Extension of DetectorID providing access to HCal trigger cell.
Definition at line 19 of file HcalTriggerID.h.
Encodes the section of the HCal based on the 'section' field value.
Definition at line 24 of file HcalTriggerID.h.
|
inline |
Empty HCAL trigger id (but not null!)
Definition at line 38 of file HcalTriggerID.h.
|
inline |
Create from raw number.
Definition at line 43 of file HcalTriggerID.h.
References ldmx::HcalAbstractID::bar_type(), and ldmx::DetectorID::null().
|
inline |
Create from a DetectorID, but check.
Definition at line 55 of file HcalTriggerID.h.
References ldmx::HcalAbstractID::bar_type(), and ldmx::DetectorID::null().
|
inline |
Create from pieces.
Definition at line 67 of file HcalTriggerID.h.
References end(), ldmx::DetectorID::id_, layer(), and superstrip().
|
static |
Definition at line 13 of file HcalTriggerID.cxx.
|
inline |
Get the value of the 'end' field from the ID.
Definition at line 118 of file HcalTriggerID.h.
References ldmx::DetectorID::id_.
Referenced by hcal::HcalTriggerGeometry::contentsOfQuad(), HcalTriggerID(), isComposite(), isNegativeEnd(), and hcal::HcalTrigPrimDigiProducer::produce().
|
inline |
Get the value of the layer field from the ID.
Definition at line 98 of file HcalTriggerID.h.
References ldmx::DetectorID::id_.
|
inline |
Definition at line 80 of file HcalTriggerID.h.
|
inline |
Get the value of the 'superstrip' field from the ID.
Definition at line 104 of file HcalTriggerID.h.
References ldmx::DetectorID::id_.
|
inline |
Get whether the ID is the composite of two bar ends.
Definition at line 130 of file HcalTriggerID.h.
References end().
|
inline |
Get whether the 'end' field from the ID is negative.
Definition at line 124 of file HcalTriggerID.h.
References end().
|
inline |
Get the value of the layer field from the ID.
Definition at line 92 of file HcalTriggerID.h.
References ldmx::DetectorID::id_.
Referenced by hcal::HcalTriggerGeometry::contentsOfQuad(), HcalTriggerID(), trigger::TrigHcalEnergySum::produce(), and hcal::HcalTrigPrimDigiProducer::produce().
|
inline |
Definition at line 86 of file HcalTriggerID.h.
|
inline |
Get the value of the 'superstrip' field from the ID.
Definition at line 112 of file HcalTriggerID.h.
References ldmx::DetectorID::id_.
Referenced by hcal::HcalTriggerGeometry::contentsOfQuad(), HcalTriggerID(), trigger::TrigHcalEnergySum::produce(), and hcal::HcalTrigPrimDigiProducer::produce().
|
static |
Definition at line 26 of file HcalTriggerID.h.
|
static |
Definition at line 27 of file HcalTriggerID.h.
|
static |
Definition at line 30 of file HcalTriggerID.h.
|
static |
Definition at line 31 of file HcalTriggerID.h.
|
static |
Definition at line 28 of file HcalTriggerID.h.
|
static |
Definition at line 29 of file HcalTriggerID.h.
|
static |
Definition at line 32 of file HcalTriggerID.h.
|
static |
Definition at line 33 of file HcalTriggerID.h.