ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TRT::HitInfo Class Reference

#include <HitInfo.h>

Collaboration diagram for TRT::HitInfo:

Public Member Functions

 HitInfo ()
 
 HitInfo (const HitInfo &orig)=default
 
 HitInfo (HitInfo &&orig) noexcept=default
 
HitInfooperator= (const HitInfo &other)=default
 
HitInfooperator= (HitInfo &&other) noexcept=default
 
 ~HitInfo ()=default
 
const int & operator[] (const Hit::IntVariables &theIndex) const
 
const float & operator[] (const Hit::FloatVariables &theIndex) const
 
int & operator[] (const Hit::IntVariables &theIndex)
 
float & operator[] (const Hit::FloatVariables &theIndex)
 
float driftTime () const
 
float driftRadius () const
 
float rawTime () const
 
float timeResidual () const
 
float residual () const
 
float trkVariance () const
 
float trkDistance () const
 
float trkDriftTime () const
 
float trkT0 () const
 
float driftVelocity () const
 
float residualVariance () const
 
float residualPull () const
 
float chiSquare () const
 
float phiResidual () const
 
float t0 () const
 
Identifier strawId (const TRT_ID &trtid) const
 
Identifier moduleId (const TRT_ID &trtid) const
 
Identifier ident () const
 
bool hasValidDriftTime () const
 
float HighLevelThreshold () const
 
float timeOverThreshold () const
 

Private Attributes

std::vector< int > m_Ints
 
std::vector< float > m_Floats
 

Detailed Description

Definition at line 100 of file HitInfo.h.

Constructor & Destructor Documentation

◆ HitInfo() [1/3]

TRT::HitInfo::HitInfo ( )
inline

Definition at line 103 of file HitInfo.h.

◆ HitInfo() [2/3]

TRT::HitInfo::HitInfo ( const HitInfo orig)
default

◆ HitInfo() [3/3]

TRT::HitInfo::HitInfo ( HitInfo &&  orig)
defaultnoexcept

◆ ~HitInfo()

TRT::HitInfo::~HitInfo ( )
default

Member Function Documentation

◆ chiSquare()

float TRT::HitInfo::chiSquare ( ) const
inline

Definition at line 133 of file HitInfo.h.

133 { double tmp = residual() ; return tmp*tmp/residualVariance() ; }

◆ driftRadius()

float TRT::HitInfo::driftRadius ( ) const
inline

Definition at line 121 of file HitInfo.h.

◆ driftTime()

float TRT::HitInfo::driftTime ( ) const
inline

Definition at line 119 of file HitInfo.h.

◆ driftVelocity()

float TRT::HitInfo::driftVelocity ( ) const
inline

Definition at line 129 of file HitInfo.h.

129 { return operator[](Hit::driftVelocity) ; }

◆ hasValidDriftTime()

bool TRT::HitInfo::hasValidDriftTime ( ) const
inline

Definition at line 148 of file HitInfo.h.

◆ HighLevelThreshold()

float TRT::HitInfo::HighLevelThreshold ( ) const
inline

Definition at line 149 of file HitInfo.h.

149 { return operator[](Hit::HTLevel) ; }

◆ ident()

Identifier TRT::HitInfo::ident ( ) const
inline

Definition at line 146 of file HitInfo.h.

146 { return Identifier(operator[](TRT::Hit::ident)) ; }

◆ moduleId()

Identifier TRT::HitInfo::moduleId ( const TRT_ID trtid) const
inline

Definition at line 142 of file HitInfo.h.

142  {
143  // this method should not be inligned because it introduces a dependency
144  return trtid.module_id(operator[](TRT::Hit::detector), operator[](TRT::Hit::phiModule),operator[](TRT::Hit::layer)) ; }

◆ operator=() [1/2]

HitInfo& TRT::HitInfo::operator= ( const HitInfo other)
default

◆ operator=() [2/2]

HitInfo& TRT::HitInfo::operator= ( HitInfo &&  other)
defaultnoexcept

◆ operator[]() [1/4]

float& TRT::HitInfo::operator[] ( const Hit::FloatVariables theIndex)
inline

Definition at line 116 of file HitInfo.h.

116 {return m_Floats[theIndex];}

◆ operator[]() [2/4]

const float& TRT::HitInfo::operator[] ( const Hit::FloatVariables theIndex) const
inline

Definition at line 113 of file HitInfo.h.

113 {return m_Floats[theIndex];}

◆ operator[]() [3/4]

int& TRT::HitInfo::operator[] ( const Hit::IntVariables theIndex)
inline

Definition at line 115 of file HitInfo.h.

115 {return m_Ints[theIndex];}

◆ operator[]() [4/4]

const int& TRT::HitInfo::operator[] ( const Hit::IntVariables theIndex) const
inline

Definition at line 112 of file HitInfo.h.

112 {return m_Ints[theIndex];}

◆ phiResidual()

float TRT::HitInfo::phiResidual ( ) const
inline

Definition at line 134 of file HitInfo.h.

134 { return residual()/operator[](Hit::globalR) ; }

◆ rawTime()

float TRT::HitInfo::rawTime ( ) const
inline

Definition at line 122 of file HitInfo.h.

122 { return operator[](Hit::driftTime) ;}

◆ residual()

float TRT::HitInfo::residual ( ) const
inline

Definition at line 124 of file HitInfo.h.

◆ residualPull()

float TRT::HitInfo::residualPull ( ) const
inline

Definition at line 132 of file HitInfo.h.

132 { return residual()/sqrt(residualVariance()) ; }

◆ residualVariance()

float TRT::HitInfo::residualVariance ( ) const
inline

Definition at line 130 of file HitInfo.h.

130  {

◆ strawId()

Identifier TRT::HitInfo::strawId ( const TRT_ID trtid) const
inline

Definition at line 137 of file HitInfo.h.

137  {
138  // this method should not be inligned because it introduces a dependency
139  return trtid.straw_id(operator[](TRT::Hit::detector), operator[](TRT::Hit::phiModule),
140  operator[](TRT::Hit::layer),operator[](TRT::Hit::strawLayer),operator[](TRT::Hit::straw)); }

◆ t0()

float TRT::HitInfo::t0 ( ) const
inline

Definition at line 135 of file HitInfo.h.

135 { return operator[](Hit::t0) ; }

◆ timeOverThreshold()

float TRT::HitInfo::timeOverThreshold ( ) const
inline

Definition at line 150 of file HitInfo.h.

◆ timeResidual()

float TRT::HitInfo::timeResidual ( ) const
inline

Definition at line 123 of file HitInfo.h.

123 { return driftTime() - trkDriftTime() ; }

◆ trkDistance()

float TRT::HitInfo::trkDistance ( ) const
inline

Definition at line 126 of file HitInfo.h.

126 { return operator[](Hit::trackDriftRadius) ; }

◆ trkDriftTime()

float TRT::HitInfo::trkDriftTime ( ) const
inline

Definition at line 127 of file HitInfo.h.

127 { return operator[](Hit::trackDriftTime) ; }

◆ trkT0()

float TRT::HitInfo::trkT0 ( ) const
inline

Definition at line 128 of file HitInfo.h.

128 { return operator[](Hit::trackT0) ; }

◆ trkVariance()

float TRT::HitInfo::trkVariance ( ) const
inline

Definition at line 125 of file HitInfo.h.

125 { float tmp = operator[](Hit::errorTrackDriftRadius) ; return tmp*tmp ; }

Member Data Documentation

◆ m_Floats

std::vector<float> TRT::HitInfo::m_Floats
private

Definition at line 153 of file HitInfo.h.

◆ m_Ints

std::vector<int> TRT::HitInfo::m_Ints
private

Definition at line 152 of file HitInfo.h.


The documentation for this class was generated from the following file:
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
TRT::HitInfo::m_Ints
std::vector< int > m_Ints
Definition: HitInfo.h:152
TRT::Hit::trackT0
@ trackT0
Definition: HitInfo.h:52
TRT::Hit::driftTimeStatus
@ driftTimeStatus
Definition: HitInfo.h:84
TRT::HitInfo::trkDriftTime
float trkDriftTime() const
Definition: HitInfo.h:127
TRT::HitInfo::m_Floats
std::vector< float > m_Floats
Definition: HitInfo.h:153
TRT::Hit::strawLayer
@ strawLayer
Definition: HitInfo.h:81
TRT::Hit::signedDriftRadius
@ signedDriftRadius
Definition: HitInfo.h:40
TRT::HitInfo::operator[]
const int & operator[](const Hit::IntVariables &theIndex) const
Definition: HitInfo.h:112
TRT::Hit::detector
@ detector
Definition: HitInfo.h:78
TRT::HitInfo::residual
float residual() const
Definition: HitInfo.h:124
TRT::Hit::TimeoverThreshold
@ TimeoverThreshold
Definition: HitInfo.h:44
TRT::Hit::driftVelocity
@ driftVelocity
Definition: HitInfo.h:50
TRT::Hit::driftTime
@ driftTime
Definition: HitInfo.h:43
TRT::HitInfo::driftTime
float driftTime() const
Definition: HitInfo.h:119
TRT::HitInfo::residualVariance
float residualVariance() const
Definition: HitInfo.h:130
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
TRT::Hit::HTLevel
@ HTLevel
Definition: HitInfo.h:45
TRT::Hit::trackDriftRadius
@ trackDriftRadius
Definition: HitInfo.h:48
TRT::Hit::TNOFV
@ TNOFV
Definition: HitInfo.h:53
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
TRT::Hit::globalR
@ globalR
Definition: HitInfo.h:37
TRT::Hit::TNOIV
@ TNOIV
Definition: HitInfo.h:85
TRT::Hit::ident
@ ident
Definition: HitInfo.h:77
TRT::HitInfo::trkVariance
float trkVariance() const
Definition: HitInfo.h:125
TRT::Hit::errorTrackDriftRadius
@ errorTrackDriftRadius
Definition: HitInfo.h:49
TRT::Hit::phiModule
@ phiModule
Definition: HitInfo.h:80
TRT::Hit::t0
@ t0
Definition: HitInfo.h:42
TRT::Hit::trackDriftTime
@ trackDriftTime
Definition: HitInfo.h:51
TRT::Hit::errorSignedDriftRadius
@ errorSignedDriftRadius
Definition: HitInfo.h:41
TRT_ID::module_id
Identifier module_id(int barrel_ec, int phi_module, int layer_or_wheel) const
For an individual module phi sector.
Definition: TRT_ID.h:448
TRT_ID::straw_id
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
Definition: TRT_ID.h:581
Identifier
Definition: IdentifierFieldParser.cxx:14