|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef TRT_BarrelCode_h
12 #define TRT_BarrelCode_h 1
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';
145 os <<
code.getStrawLayerIndex();
static const int STRAWLAYER_SHIFT
static const int PHI_SHIFT
TRT_BarrelCode & operator=(const TRT_BarrelCode &right)=default
std::ostream & operator<<(std::ostream &os, const InDetDD::TRT_BarrelCode &code)
TRT_BarrelCode(TRT_BarrelCode &&right)=default
bool operator==(const TRT_BarrelCode &right) const
bool operator>(const TRT_BarrelCode &right) const
static const int MODULE_SHIFT
bool operator<(const TRT_BarrelCode &right) const
static const int PHI_MASK
static const int STRAWLAYER_MASK
TRT_BarrelCode(unsigned int isPositive, unsigned int moduleIndex, unsigned phiIndex, unsigned int strawLayerIndex)
unsigned int getStrawLayerIndex() const
unsigned int isPosZ() const
unsigned int getModuleIndex() const
std::string getName() const
~TRT_BarrelCode()=default
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
unsigned int getPhiIndex() const
bool operator!=(const TRT_BarrelCode &right) const
static const int MODULE_MASK
unsigned int getKey() const
TRT_BarrelCode(const TRT_BarrelCode &right)=default
TRT_BarrelCode & operator=(TRT_BarrelCode &&right)=default