LDMX Software
EcalAbstractID.cxx
2
3#include <iomanip>
4
5#include "DetDescr/EcalID.h"
7
8std::ostream& operator<<(std::ostream& s, const ldmx::EcalAbstractID& id) {
9 switch (id.cell_type()) {
10 case (ldmx::EcalAbstractID::PrecisionGlobal):
11 return s << ldmx::EcalID(id);
12 case (ldmx::EcalAbstractID::TriggerCell):
13 return s << ldmx::EcalTriggerID(id);
14 default:
15 return s << "EcalAbstractID(" << id.cell_type() << ":0x"
16 << std::setfill('0') << std::setw(6) << std::right << std::hex
17 << id.payload();
18 }
19}
Class that serves as a parent for ECal detector IDs of various types.
Class that defines an ECal detector ID with a cell number.
Class that defines an ECal trigger cell detector ID.
Parent of precision and trigger EcalIDs.
Extension of DetectorID providing access to ECal layers and cell numbers in a hex grid.
Definition EcalID.h:20
Extension of DetectorID providing access to ECal trigger cell information.