3#include "DetDescr/DetectorIDInterpreter.h"
6 s <<
"HcalTrig(" <<
id.section() <<
',' <<
id.layer() <<
','
7 <<
id.superstrip() <<
',' <<
id.end() <<
')';
13void HcalTriggerID::createInterpreters() {
15 fields.push_back(
new IDField(
"subdetector", 0, SUBDETECTORID_SHIFT, 31));
17 new IDField(
"section", 1, SECTION_SHIFT,
20 new IDField(
"layer", 2, LAYER_SHIFT,
23 new IDField(
"superstrip", 3, SUPERSTRIP_SHIFT,
25 fields.push_back(
new IDField(
"end", 4, END_SHIFT,
29 SD_HCAL, HcalAbstractID::BAR_TYPE_MASK << HcalAbstractID::BAR_TYPE_SHIFT,
30 HcalAbstractID::Trigger << HcalAbstractID::BAR_TYPE_SHIFT, fields);
Class that defines an HCal trigger cell detector ID.
static void registerInterpreter(SubdetectorIDType idtype, const IDField::IDFieldList &fieldList)
Register a new field interpreter for a given subdetector id.
Extension of DetectorID providing access to HCal trigger cell.
static unsigned countOnes(unsigned mask)
Utility for counting number of 1 in a mask.
std::vector< IDField * > IDFieldList
List of fields.