LDMX Software
|
Implements detector ids for special simulation-derived hits like scoring planes. More...
#include <SimSpecialID.h>
Public Types | |
enum | SimSpecialType { SCORING_PLANE = 1 } |
Encodes which of several possible special types this SimSpecial ID is. More... | |
Public Types inherited from ldmx::DetectorID | |
typedef uint32_t | RawValue |
Public Member Functions | |
SimSpecialID () | |
Empty id (but not null!) | |
SimSpecialID (RawValue rawid) | |
Create from raw number. | |
SimSpecialID (const DetectorID id) | |
Create from a DetectorID, but check. | |
SimSpecialID (SimSpecialType sst, RawValue rawfield) | |
Create from a subtype number and raw field. | |
SimSpecialType | getSubtype () const |
int | plane () const |
Get the value of the plane field from the ID, if it is a scoring plane. | |
RawValue | subtypePayload () const |
Get the raw payload contents. | |
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 SimSpecialID | ScoringPlaneID (int plane) |
Create a scoring id from pieces. | |
static void | createInterpreters () |
Static Public Attributes | |
static const RawValue | SUBTYPE_MASK {0xF} |
static const RawValue | SUBTYPE_SHIFT {22} |
static const RawValue | SUBTYPE_DATA_MASK {0x3FFFFF} |
static const RawValue | PLANE_MASK |
static const RawValue | PLANE_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 | |
Protected Attributes inherited from ldmx::DetectorID | |
RawValue | id_ |
The raw, packed value of the ID. | |
Implements detector ids for special simulation-derived hits like scoring planes.
Definition at line 15 of file SimSpecialID.h.
Encodes which of several possible special types this SimSpecial ID is.
Definition at line 20 of file SimSpecialID.h.
|
inline |
Empty id (but not null!)
Definition at line 34 of file SimSpecialID.h.
Referenced by ScoringPlaneID().
|
inline |
Create from raw number.
Definition at line 39 of file SimSpecialID.h.
|
inline |
Create from a DetectorID, but check.
Definition at line 46 of file SimSpecialID.h.
|
inline |
Create from a subtype number and raw field.
Definition at line 53 of file SimSpecialID.h.
References ldmx::DetectorID::id_.
|
static |
Definition at line 16 of file SimSpecialID.cxx.
|
inline |
Definition at line 70 of file SimSpecialID.h.
|
inline |
Get the value of the plane field from the ID, if it is a scoring plane.
Definition at line 78 of file SimSpecialID.h.
References ldmx::DetectorID::id_.
Referenced by ecal::EcalVetoProcessor::produce(), ScoringPlaneID(), and TEST_CASE().
|
inlinestatic |
Create a scoring id from pieces.
Definition at line 62 of file SimSpecialID.h.
References plane(), and SimSpecialID().
Referenced by simcore::ScoringPlaneSD::ProcessHits().
|
inline |
Get the raw payload contents.
Definition at line 86 of file SimSpecialID.h.
References ldmx::DetectorID::id_.
Referenced by TEST_CASE().
|
static |
Definition at line 27 of file SimSpecialID.h.
|
static |
Definition at line 29 of file SimSpecialID.h.
|
static |
Definition at line 24 of file SimSpecialID.h.
|
static |
Definition at line 22 of file SimSpecialID.h.
|
static |
Definition at line 23 of file SimSpecialID.h.