LDMX Software
Classes | Functions
TrackerID.h File Reference

Class that defines a Tracker detector ID with a module number. More...

#include "DetDescr/DetectorID.h"

Go to the source code of this file.

Classes

class  ldmx::TrackerID
 Extension of DetectorID providing access to layer and module number for tracker IDs. More...
 

Functions

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

Detailed Description

Class that defines a Tracker detector ID with a module number.

Author
Jeremy McCormick, SLAC National Accelerator Laboratory

Definition in file TrackerID.h.

Function Documentation

◆ operator<<()

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

Definition at line 5 of file TrackerID.cxx.

5 {
6 if (id.null())
7 s << "NULL";
8 else if (id.subdet() == ldmx::SD_TRACKER_RECOIL)
9 s << "Recoil(";
10 else if (id.subdet() == ldmx::SD_TRACKER_TAGGER)
11 s << "Tagger(";
12 else
13 s << "UnknownTk(";
14 s << id.layer() << ',' << id.module() << ')';
15 return s;
16}