LDMX Software
Classes | Functions
HcalAbstractID.h File Reference

Class that serves as a parent for HCal detector IDs of various types. More...

#include "DetDescr/DetectorID.h"

Go to the source code of this file.

Classes

class  ldmx::HcalAbstractID
 Parent of HcalIDs. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const ldmx::HcalAbstractID &id)
 

Detailed Description

Class that serves as a parent for HCal detector IDs of various types.

Author
Jeremiah Mans, University of Minnesota
Cristina Suarez, Fermi National Accelerator Laboratory

Definition in file HcalAbstractID.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  s,
const ldmx::HcalAbstractID id 
)

Definition at line 8 of file HcalAbstractID.cxx.

8 {
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}
Extension of HcalAbstractID providing access to HCal digi information.
Definition HcalDigiID.h:13
Implements detector ids for HCal subdetector.
Definition HcalID.h:19