LDMX Software
|
Defines a 32-bit packed ID for uniquely identifying hits and detector components. More...
#include <DetectorID.h>
Public Types | |
typedef uint32_t | RawValue |
Public Member Functions | |
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 Attributes | |
static const RawValue | SUBDETECTORID_MASK {0x3F} |
static const RawValue | SUBDETECTORID_SHIFT {26} |
static const RawValue | SUBDETECTOR_PAYLOAD_MASK {0x3FFFFFF} |
Protected Attributes | |
RawValue | id_ |
The raw, packed value of the ID. | |
Defines a 32-bit packed ID for uniquely identifying hits and detector components.
Definition at line 35 of file DetectorID.h.
typedef uint32_t ldmx::DetectorID::RawValue |
Definition at line 37 of file DetectorID.h.
|
inline |
|
inline |
Class constructor from a raw 32-bit integer.
Definition at line 47 of file DetectorID.h.
|
inline |
Class constructor from a subdetector id and a subdetector-specific section (masked to.
Definition at line 53 of file DetectorID.h.
References id_.
|
inline |
Definition at line 60 of file DetectorID.h.
References id_.
Referenced by ldmx::EcalID::EcalID(), ldmx::EcalID::EcalID(), ldmx::EcalTriggerID::EcalTriggerID(), ldmx::EcalTriggerID::EcalTriggerID(), ldmx::HcalDigiID::HcalDigiID(), ldmx::HcalDigiID::HcalDigiID(), ldmx::HcalID::HcalID(), ldmx::HcalID::HcalID(), ldmx::HcalTriggerID::HcalTriggerID(), ldmx::HcalTriggerID::HcalTriggerID(), ecal::EcalTrigPrimDigiProducer::produce(), hcal::HcalTrigPrimDigiProducer::produce(), and TEST_CASE().
|
inline |
Definition at line 80 of file DetectorID.h.
|
inline |
Definition at line 76 of file DetectorID.h.
|
inline |
Definition at line 78 of file DetectorID.h.
|
inline |
Definition at line 68 of file DetectorID.h.
References id_.
Referenced by ecal::EcalDigiProducer::produce(), ecal::EcalRawEncoder::produce(), ecal::EcalTrigPrimDigiProducer::produce(), trigger::TrigHcalEnergySum::produce(), hcal::HcalDigiProducer::produce(), hcal::HcalDoubleEndRecProducer::produce(), hcal::HcalTrigPrimDigiProducer::produce(), trigscint::TrigScintDigiProducer::produce(), and TEST_CASE().
|
inline |
Set the raw value of the detector ID.
rawValue | The raw value of the ID. |
Definition at line 74 of file DetectorID.h.
References id_.
|
inline |
Definition at line 63 of file DetectorID.h.
References id_.
Referenced by TEST_CASE().
|
protected |
The raw, packed value of the ID.
Definition at line 84 of file DetectorID.h.
Referenced by ldmx::TrigScintID::bar(), ldmx::HcalAbstractID::bar_type(), ldmx::EcalID::cell(), ldmx::EcalAbstractID::cell_type(), ldmx::EcalElectronicsID::channel(), ldmx::HcalElectronicsID::channel(), DetectorID(), ldmx::EcalAbstractID::EcalAbstractID(), ldmx::EcalElectronicsID::EcalElectronicsID(), ldmx::EcalID::EcalID(), ldmx::EcalID::EcalID(), ldmx::EcalTriggerID::EcalTriggerID(), ldmx::EcalElectronicsID::elink(), ldmx::HcalElectronicsID::elink(), ldmx::HcalDigiID::end(), ldmx::HcalTriggerID::end(), ldmx::EcalElectronicsID::fiber(), ldmx::HcalElectronicsID::fiber(), ldmx::TrigScintID::getBarID(), ldmx::EcalID::getCellID(), ldmx::EcalID::getLayerID(), ldmx::EcalTriggerID::getLayerID(), ldmx::HcalDigiID::getLayerID(), ldmx::HcalID::getLayerID(), ldmx::HcalTriggerID::getLayerID(), ldmx::TrigScintID::getModule(), ldmx::EcalID::getModuleID(), ldmx::EcalTriggerID::getModuleID(), ldmx::HcalDigiID::getSection(), ldmx::HcalDigiID::getStrip(), ldmx::HcalID::getStrip(), ldmx::HcalTriggerID::getSuperstrip(), ldmx::EcalTriggerID::getTriggerCellID(), ldmx::HcalAbstractID::HcalAbstractID(), ldmx::HcalDigiID::HcalDigiID(), ldmx::HcalElectronicsID::HcalElectronicsID(), ldmx::HcalID::HcalID(), ldmx::HcalTriggerID::HcalTriggerID(), ldmx::EcalElectronicsID::idFromIndex(), ldmx::HcalElectronicsID::idFromIndex(), ldmx::EcalElectronicsID::index(), ldmx::HcalElectronicsID::index(), ldmx::EcalID::layer(), ldmx::EcalTriggerID::layer(), ldmx::HcalDigiID::layer(), ldmx::HcalID::layer(), ldmx::HcalTriggerID::layer(), ldmx::TrackerID::layer(), ldmx::EcalID::module(), ldmx::EcalTriggerID::module(), ldmx::TrackerID::module(), ldmx::TrigScintID::module(), null(), ldmx::EcalAbstractID::payload(), ldmx::HcalAbstractID::payload(), ldmx::SimSpecialID::plane(), raw(), ldmx::HcalDigiID::section(), setRawValue(), ldmx::SimSpecialID::SimSpecialID(), ldmx::HcalDigiID::strip(), ldmx::HcalID::strip(), subdet(), ldmx::SimSpecialID::subtypePayload(), ldmx::HcalTriggerID::superstrip(), ldmx::TrackerID::TrackerID(), ldmx::EcalTriggerID::triggercell(), and ldmx::TrigScintID::TrigScintID().
|
static |
Definition at line 41 of file DetectorID.h.
|
static |
Definition at line 39 of file DetectorID.h.
|
static |
Definition at line 40 of file DetectorID.h.