LDMX Software
|
Class that defines the detector ID of the trigger scintillator. More...
#include <TrigScintID.h>
Public Member Functions | |
TrigScintID () | |
Constructor. | |
TrigScintID (unsigned int rawid) | |
Constructor with raw id. | |
TrigScintID (const DetectorID id) | |
Create from a DetectorID, but check. | |
TrigScintID (unsigned int module, unsigned int bar) | |
Create from pieces. | |
~TrigScintID () | |
Destructor. | |
int | module () const |
Get the value of the module field from the ID. | |
int | getModule () const |
Get the value of the module field from the ID. | |
int | bar () const |
Get the value of the bar field from the ID. | |
int | getBarID () const |
Get the bar 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 | MODULE_MASK {0xFF} |
static const RawValue | MODULE_SHIFT {8} |
static const RawValue | BAR_MASK {0xFF} |
static const RawValue | BAR_SHIFT {0} |
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 | |
Public Types inherited from ldmx::DetectorID | |
typedef uint32_t | RawValue |
Protected Attributes inherited from ldmx::DetectorID | |
RawValue | id_ |
The raw, packed value of the ID. | |
Class that defines the detector ID of the trigger scintillator.
Definition at line 14 of file TrigScintID.h.
|
inline |
Constructor.
Definition at line 22 of file TrigScintID.h.
|
inline |
Constructor with raw id.
Definition at line 25 of file TrigScintID.h.
|
inline |
Create from a DetectorID, but check.
Definition at line 32 of file TrigScintID.h.
|
inline |
Create from pieces.
Definition at line 39 of file TrigScintID.h.
References bar(), and ldmx::DetectorID::id_.
|
inline |
|
inline |
Get the value of the bar field from the ID.
Definition at line 64 of file TrigScintID.h.
References ldmx::DetectorID::id_.
Referenced by dqm::TrigScintDQM::analyze(), trigscint::TrigScintDigiProducer::produce(), TEST_CASE(), and TrigScintID().
|
static |
Definition at line 11 of file TrigScintID.cxx.
|
inline |
Get the bar ID.
Definition at line 70 of file TrigScintID.h.
References ldmx::DetectorID::id_.
Referenced by TEST_CASE().
|
inline |
Get the value of the module field from the ID.
Definition at line 58 of file TrigScintID.h.
References ldmx::DetectorID::id_.
Referenced by TEST_CASE().
|
inline |
Get the value of the module field from the ID.
Definition at line 52 of file TrigScintID.h.
References ldmx::DetectorID::id_.
Referenced by TEST_CASE().
|
static |
Definition at line 18 of file TrigScintID.h.
|
static |
Definition at line 19 of file TrigScintID.h.
|
static |
Definition at line 16 of file TrigScintID.h.
|
static |
Definition at line 17 of file TrigScintID.h.