3#include "DetDescr/DetectorIDInterpreter.h"
6 s <<
"EcalTrig(" <<
id.layer() <<
',' <<
id.module() <<
','
7 <<
id.triggercell() <<
')';
13void EcalTriggerID::createInterpreters() {
15 fields.push_back(
new IDField(
"subdetector", 0, SUBDETECTORID_SHIFT, 31));
17 new IDField(
"layer", 1, LAYER_SHIFT,
20 new IDField(
"module", 2, MODULE_SHIFT,
22 fields.push_back(
new IDField(
"cell", 3, CELL_SHIFT,
27 EcalAbstractID::CELL_TYPE_MASK << EcalAbstractID::CELL_TYPE_SHIFT,
28 EcalAbstractID::TriggerCell << EcalAbstractID::CELL_TYPE_SHIFT, fields);
Class that defines an ECal 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 ECal trigger cell information.
static unsigned countOnes(unsigned mask)
Utility for counting number of 1 in a mask.
std::vector< IDField * > IDFieldList
List of fields.