ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_EndcapCode.h File Reference
#include <iostream>
#include <string>
Include dependency graph for TRT_EndcapCode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InDetDD::TRT_EndcapCode
 bit definitions to decode TRT straws in endcap More...

Namespaces

namespace  InDetDD
 Message Stream Member.

Functions

std::ostream & operator<< (std::ostream &os, const InDetDD::TRT_EndcapCode &code)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const InDetDD::TRT_EndcapCode & code )
inline

Definition at line 127 of file TRT_EndcapCode.h.

127 {
128 // Plus/minus
129 if (code.isPosZ()) os << '+';
130 else os << '-';
131 // Wheel
132 unsigned int wheel = code.getWheelIndex();
133 os << wheel << "/";
134 // StrawLayer:
135 os << code.getStrawLayerIndex()<< "/";
136 // Phi
137 os << code.getPhiIndex();
138 return os;
139}