1#include "DetDescr/SimSpecialID.h"
3#include "DetDescr/DetectorIDInterpreter.h"
6 if (
id.getSubtype() == ldmx::SimSpecialID::SCORING_PLANE)
7 s <<
"SimSpecial(ScoringPlane " <<
id.plane() <<
')';
9 s <<
"SimSpecial(Type " <<
id.getSubtype() <<
',' <<
id.subtypePayload()
16void SimSpecialID::createInterpreters() {
18 fields.push_back(
new IDField(
"subdetector", 0, SUBDETECTORID_SHIFT, 31));
20 new IDField(
"subtype", 1, SUBTYPE_SHIFT,
static void registerInterpreter(SubdetectorIDType idtype, const IDField::IDFieldList &fieldList)
Register a new field interpreter for a given subdetector id.
static unsigned countOnes(unsigned mask)
Utility for counting number of 1 in a mask.
std::vector< IDField * > IDFieldList
List of fields.
Implements detector ids for special simulation-derived hits like scoring planes.