LDMX Software
Classes | Functions
EcalID.h File Reference

Class that defines an ECal detector ID with a cell number. More...

#include "DetDescr/EcalAbstractID.h"

Go to the source code of this file.

Classes

class  ldmx::EcalID
 Extension of DetectorID providing access to ECal layers and cell numbers in a hex grid. More...
 

Functions

std::ostream & operator<< (std::ostream &, const ldmx::EcalID &)
 

Detailed Description

Class that defines an ECal detector ID with a cell number.

Author
Jeremy McCormick, SLAC National Accelerator Laboratory

Definition in file EcalID.h.

Function Documentation

◆ operator<<()

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

Definition at line 5 of file EcalID.cxx.

5 {
6 std::pair uv = id.getCellUV();
7 s << "Ecal(" << id.layer() << ',' << id.module() << ',' << id.cell() << '['
8 << uv.first << ',' << uv.second << "])";
9 return s;
10}