3#include "DetDescr/DetectorIDInterpreter.h"
8 else if (
id.subdet() == ldmx::SD_TRACKER_RECOIL)
10 else if (
id.subdet() == ldmx::SD_TRACKER_TAGGER)
14 s <<
id.layer() <<
',' <<
id.module() <<
')';
20void TrackerID::createInterpreters() {
22 fields.push_back(
new IDField(
"subdetector", 0, SUBDETECTORID_SHIFT, 31));
24 new IDField(
"layer", 1, LAYER_SHIFT,
27 new IDField(
"module", 2, MODULE_SHIFT,
Class that defines a Tracker detector ID with a module number.
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.
Extension of DetectorID providing access to layer and module number for tracker IDs.