ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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

Definition at line 73 of file TrigInDetRoadPredictorTool.h.

73  : m_r(0.0), m_z(0.0), m_phi(0.0) {
74  m_vZx.push_back(z);
75  m_vRx.push_back(r);
76  }

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.

◆ m_r

float TrigInDetRoadPredictorTool::SearchInterval::m_r {}

Definition at line 109 of file TrigInDetRoadPredictorTool.h.

◆ 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.


The documentation for this struct was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:676
TrigInDetRoadPredictorTool::SearchInterval::m_vZx
std::vector< float > m_vZx
Definition: TrigInDetRoadPredictorTool.h:107
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
z
#define z
TrigInDetRoadPredictorTool::SearchInterval::m_z
float m_z
Definition: TrigInDetRoadPredictorTool.h:110
TrigInDetRoadPredictorTool::SearchInterval::m_phi
float m_phi
Definition: TrigInDetRoadPredictorTool.h:111
TrigInDetRoadPredictorTool::SearchInterval::m_r
float m_r
Definition: TrigInDetRoadPredictorTool.h:109
TrigInDetRoadPredictorTool::SearchInterval::m_vRx
std::vector< float > m_vRx
Definition: TrigInDetRoadPredictorTool.h:108