LDMX Software
HcalAbstractID.cxx
2
3#include <iomanip>
4
5#include "DetDescr/HcalDigiID.h"
6#include "DetDescr/HcalID.h"
7
8std::ostream& operator<<(std::ostream& s, const ldmx::HcalAbstractID& id) {
9 switch (id.bar_type()) {
10 case (ldmx::HcalAbstractID::Global):
11 return s << ldmx::HcalID(id);
12 case (ldmx::HcalAbstractID::Digi):
13 return s << ldmx::HcalDigiID(id);
14 // case(ldmx::HcalAbstractID::Trigger): return s <<
15 // ldmx::HcalTriggerID(id);
16 default:
17 return s << "HcalAbstractID(" << id.bar_type() << ":0x"
18 << std::setfill('0') << std::setw(6) << std::right << std::hex
19 << id.payload();
20 }
21}
Class that serves as a parent for HCal detector IDs of various types.
Class that defines an HCal sensitive detector.
Parent of HcalIDs.
Extension of HcalAbstractID providing access to HCal digi information.
Definition HcalDigiID.h:13
Implements detector ids for HCal subdetector.
Definition HcalID.h:19