1#include "DetDescr/HcalDigiID.h"
3#include "DetDescr/DetectorIDInterpreter.h"
6 s <<
"Hcal(" <<
id.section() <<
',' <<
id.layer() <<
',' <<
id.strip() <<
','
15void HcalDigiID::createInterpreters() {
17 fields.push_back(
new IDField(
"subdetector", 0, SUBDETECTORID_SHIFT, 31));
19 new IDField(
"section", 1, SECTION_SHIFT,
22 new IDField(
"layer", 2, LAYER_SHIFT,
25 new IDField(
"strip", 3, STRIP_SHIFT,
27 fields.push_back(
new IDField(
"end", 4, END_SHIFT,
31 SD_HCAL, HcalAbstractID::BAR_TYPE_MASK << HcalAbstractID::BAR_TYPE_SHIFT,
32 HcalAbstractID::Digi << HcalAbstractID::BAR_TYPE_SHIFT, fields);
static void registerInterpreter(SubdetectorIDType idtype, const IDField::IDFieldList &fieldList)
Register a new field interpreter for a given subdetector id.
Extension of HcalAbstractID providing access to HCal digi information.
static unsigned countOnes(unsigned mask)
Utility for counting number of 1 in a mask.
std::vector< IDField * > IDFieldList
List of fields.