|
LDMX Software
|
Parent of precision and trigger EcalIDs. More...
#include <EcalAbstractID.h>
Public Types | |
| enum | EcalCellType { PrecisionGlobal = 0 , PrecisionLocal = 1 , TriggerCell = 2 , Special = 7 } |
Public Types inherited from ldmx::DetectorID | |
| typedef uint32_t | RawValue |
Public Member Functions | |
| EcalAbstractID () | |
| Empty ECAL id (but not null!) | |
| EcalAbstractID (RawValue rawid) | |
| Create from raw number. | |
| EcalAbstractID (const DetectorID id) | |
| Create from a DetectorID, but check. | |
| EcalAbstractID (unsigned int cell_type, unsigned int payload) | |
| Create from pieces. | |
| int | cellType () const |
| Get the value of the cell 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 Attributes | |
| static const RawValue | CELL_TYPE_MASK {0x7} |
| static const RawValue | CELL_TYPE_SHIFT {23} |
| static const RawValue | ECAL_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 &s, const ldmx::EcalAbstractID &id) |
Additional Inherited Members | |
Protected Attributes inherited from ldmx::DetectorID | |
| RawValue | id_ |
| The raw, packed value of the ID. | |
Parent of precision and trigger EcalIDs.
Definition at line 19 of file EcalAbstractID.h.
| enum ldmx::EcalAbstractID::EcalCellType |
Definition at line 21 of file EcalAbstractID.h.
|
inline |
Empty ECAL id (but not null!)
Definition at line 38 of file EcalAbstractID.h.
|
inline |
Create from raw number.
Definition at line 43 of file EcalAbstractID.h.
|
inline |
Create from a DetectorID, but check.
Definition at line 50 of file EcalAbstractID.h.
|
inline |
Create from pieces.
Definition at line 57 of file EcalAbstractID.h.
References ldmx::DetectorID::id_, and payload().
|
inline |
Get the value of the cell field from the ID.
Definition at line 67 of file EcalAbstractID.h.
References ldmx::DetectorID::id_.
Referenced by ldmx::EcalID::EcalID(), ldmx::EcalID::EcalID(), ldmx::EcalTriggerID::EcalTriggerID(), and ldmx::EcalTriggerID::EcalTriggerID().
|
inline |
Get the value of the payload field from the ID.
Definition at line 73 of file EcalAbstractID.h.
References ldmx::DetectorID::id_.
Referenced by EcalAbstractID().
|
friend |
Definition at line 10 of file EcalAbstractID.cxx.
|
static |
Definition at line 31 of file EcalAbstractID.h.
|
static |
Definition at line 32 of file EcalAbstractID.h.
|
static |
Definition at line 33 of file EcalAbstractID.h.