11#ifndef TRT_EndcapCode_h
12#define TRT_EndcapCode_h 1
33 unsigned int wheelIndex,
34 unsigned int strawLayerIndex,
35 unsigned int phiIndex);
47 unsigned int isPosZ()
const;
51 unsigned int getKey()
const;
80 unsigned int ret =
m_key;
85 unsigned int ret =
m_key;
91 unsigned int ret =
m_key;
96 unsigned int ret =
m_key;
129 if (code.isPosZ()) os <<
'+';
132 unsigned int wheel = code.getWheelIndex();
135 os << code.getStrawLayerIndex()<<
"/";
137 os << code.getPhiIndex();
std::ostream & operator<<(std::ostream &os, const InDetDD::TRT_EndcapCode &code)
bit definitions to decode TRT straws in endcap
bool operator>(const TRT_EndcapCode &right) const
TRT_EndcapCode(unsigned int isPositive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex)
unsigned int isPosZ() const
unsigned int getPhiIndex() const
static const int STRAWLAYER_MASK
unsigned int getStrawLayerIndex() const
static const int PHIPOS_SHIFT
std::string getName() const
~TRT_EndcapCode()=default
static const int WHEEL_MASK
static const int STRAWLAYER_SHIFT
bool operator<(const TRT_EndcapCode &right) const
bool operator!=(const TRT_EndcapCode &right) const
bool operator==(const TRT_EndcapCode &right) const
static const int WHEEL_SHIFT
TRT_EndcapCode & operator=(const TRT_EndcapCode &right)
static const int PHIPOS_MASK
unsigned int getKey() const
unsigned int getWheelIndex() const