11#ifndef TRT_BarrelCode_h
12#define TRT_BarrelCode_h 1
37 TRT_BarrelCode(
unsigned int isPositive,
unsigned int moduleIndex,
unsigned phiIndex,
unsigned int strawLayerIndex);
51 unsigned int isPosZ()
const;
55 unsigned int getKey()
const;
84 unsigned int ret =
m_key;
89 unsigned int ret =
m_key;
94 unsigned int ret =
m_key;
99 unsigned int ret =
m_key;
132 if (code.isPosZ()) os <<
'+';
135 unsigned int mod = code.getModuleIndex();
136 if (mod==0) os <<
'A';
137 else if (mod==1) os <<
'B';
138 else if (mod==2) os <<
'C';
141 os << code.getPhiIndex();
145 os << code.getStrawLayerIndex();
std::ostream & operator<<(std::ostream &os, const InDetDD::TRT_BarrelCode &code)
bit definitions to decode TRT straws in barrel
static const int STRAWLAYER_SHIFT
~TRT_BarrelCode()=default
std::string getName() const
bool operator!=(const TRT_BarrelCode &right) const
unsigned int isPosZ() const
bool operator==(const TRT_BarrelCode &right) const
unsigned int getPhiIndex() const
bool operator>(const TRT_BarrelCode &right) const
unsigned int getKey() const
TRT_BarrelCode(const TRT_BarrelCode &right)=default
TRT_BarrelCode(unsigned int isPositive, unsigned int moduleIndex, unsigned phiIndex, unsigned int strawLayerIndex)
static const int MODULE_SHIFT
static const int STRAWLAYER_MASK
unsigned int getStrawLayerIndex() const
unsigned int getModuleIndex() const
TRT_BarrelCode & operator=(const TRT_BarrelCode &right)=default
static const int MODULE_MASK
TRT_BarrelCode(TRT_BarrelCode &&right)=default
static const int PHI_MASK
TRT_BarrelCode & operator=(TRT_BarrelCode &&right)=default
static const int PHI_SHIFT
bool operator<(const TRT_BarrelCode &right) const