ATLAS Offline Software
Loading...
Searching...
No Matches
TrigInDetRoadPredictorTool::SearchInterval Struct Reference
Collaboration diagram for TrigInDetRoadPredictorTool::SearchInterval:

Public Member Functions

 SearchInterval (float z, float r)
void addPoint (float z, float r)
float getAverageRadius ()
float getAverageZ ()
float getMinZ () const
float getMaxZ () const
float getMinR () const
float getMaxR () const

Public Attributes

std::vector< float > m_vZx
std::vector< float > m_vRx
float m_r {}
float m_z {}
float m_phi {}

Detailed Description

Definition at line 72 of file TrigInDetRoadPredictorTool.h.

Constructor & Destructor Documentation

◆ SearchInterval()

TrigInDetRoadPredictorTool::SearchInterval::SearchInterval ( float z,
float r )
inline

Member Function Documentation

◆ addPoint()

void TrigInDetRoadPredictorTool::SearchInterval::addPoint ( float z,
float r )
inline

Definition at line 78 of file TrigInDetRoadPredictorTool.h.

78 {
79 m_vZx.push_back(z);
80 m_vRx.push_back(r);
81 }

◆ getAverageRadius()

float TrigInDetRoadPredictorTool::SearchInterval::getAverageRadius ( )
inline

Definition at line 83 of file TrigInDetRoadPredictorTool.h.

83 {
84 return std::accumulate(m_vRx.begin(), m_vRx.end(), 0)/m_vRx.size();
85 }

◆ getAverageZ()

float TrigInDetRoadPredictorTool::SearchInterval::getAverageZ ( )
inline

Definition at line 87 of file TrigInDetRoadPredictorTool.h.

87 {
88 return std::accumulate(m_vZx.begin(), m_vZx.end(), 0)/m_vZx.size();
89 }

◆ getMaxR()

float TrigInDetRoadPredictorTool::SearchInterval::getMaxR ( ) const
inline

Definition at line 103 of file TrigInDetRoadPredictorTool.h.

103 {
104 return *std::max_element( m_vRx.begin(), m_vRx.end());
105 }

◆ getMaxZ()

float TrigInDetRoadPredictorTool::SearchInterval::getMaxZ ( ) const
inline

Definition at line 95 of file TrigInDetRoadPredictorTool.h.

95 {
96 return *std::max_element( m_vZx.begin(), m_vZx.end());
97 }

◆ getMinR()

float TrigInDetRoadPredictorTool::SearchInterval::getMinR ( ) const
inline

Definition at line 99 of file TrigInDetRoadPredictorTool.h.

99 {
100 return *std::min_element( m_vRx.begin(), m_vRx.end());
101 }

◆ getMinZ()

float TrigInDetRoadPredictorTool::SearchInterval::getMinZ ( ) const
inline

Definition at line 91 of file TrigInDetRoadPredictorTool.h.

91 {
92 return *std::min_element( m_vZx.begin(), m_vZx.end());
93 }

Member Data Documentation

◆ m_phi

float TrigInDetRoadPredictorTool::SearchInterval::m_phi {}

Definition at line 111 of file TrigInDetRoadPredictorTool.h.

111{};

◆ m_r

float TrigInDetRoadPredictorTool::SearchInterval::m_r {}

Definition at line 109 of file TrigInDetRoadPredictorTool.h.

109{};

◆ m_vRx

std::vector<float> TrigInDetRoadPredictorTool::SearchInterval::m_vRx

Definition at line 108 of file TrigInDetRoadPredictorTool.h.

◆ m_vZx

std::vector<float> TrigInDetRoadPredictorTool::SearchInterval::m_vZx

Definition at line 107 of file TrigInDetRoadPredictorTool.h.

◆ m_z

float TrigInDetRoadPredictorTool::SearchInterval::m_z {}

Definition at line 110 of file TrigInDetRoadPredictorTool.h.

110{};

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