ATLAS Offline Software
Loading...
Searching...
No Matches
TRT::TrackInfo Class Reference

#include <TrackInfo.h>

Inheritance diagram for TRT::TrackInfo:
Collaboration diagram for TRT::TrackInfo:

Public Member Functions

 TrackInfo ()
 TrackInfo (std::vector< HitInfo * > &orig)
 TrackInfo (const TrackInfo &orig)
TrackInfooperator= (const TrackInfo &other)
 ~TrackInfo ()
const int & operator[] (const Track::IntVariables &theIndex) const
const float & operator[] (const Track::FloatVariables &theIndex) const
int & operator[] (const Track::IntVariables &theIndex)
float & operator[] (const Track::FloatVariables &theIndex)

Public Attributes

elements
 STL member.

Private Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ TrackInfo() [1/3]

◆ TrackInfo() [2/3]

TRT::TrackInfo::TrackInfo ( std::vector< HitInfo * > & orig)
inline

◆ TrackInfo() [3/3]

TRT::TrackInfo::TrackInfo ( const TrackInfo & orig)
inline

Definition at line 77 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

77: std::vector<HitInfo*>(orig), m_Ints(orig.m_Ints),m_Floats(orig.m_Floats){}

◆ ~TrackInfo()

TRT::TrackInfo::~TrackInfo ( )
inline

Definition at line 92 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

92{for (std::vector<HitInfo*>::iterator i=this->begin();i!=this->end();++i) delete *i; } // We _OWN_ the hits!!!

Member Function Documentation

◆ operator=()

TrackInfo & TRT::TrackInfo::operator= ( const TrackInfo & other)
inline

Definition at line 79 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

79 {
80 if (&other != this){
81 for(auto &i:*this){
82 delete i;
83 }
84 this->clear();
85 *this = other;
86 m_Ints = other.m_Ints;
87 m_Floats = other.m_Floats;
88 }
89 return *this;
90 }

◆ operator[]() [1/4]

float & TRT::TrackInfo::operator[] ( const Track::FloatVariables & theIndex)
inline

Definition at line 98 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

98{return m_Floats[theIndex];}

◆ operator[]() [2/4]

const float & TRT::TrackInfo::operator[] ( const Track::FloatVariables & theIndex) const
inline

Definition at line 95 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

95{return m_Floats[theIndex];}

◆ operator[]() [3/4]

int & TRT::TrackInfo::operator[] ( const Track::IntVariables & theIndex)
inline

Definition at line 97 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

97{return m_Ints[theIndex];}

◆ operator[]() [4/4]

const int & TRT::TrackInfo::operator[] ( const Track::IntVariables & theIndex) const
inline

Definition at line 94 of file InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h.

94{return m_Ints[theIndex];}

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_Floats

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

◆ m_Ints

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

The documentation for this class was generated from the following file: