ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
Trk::iPatFitter::FitState Class Reference

#include <iPatFitter.h>

Collaboration diagram for Trk::iPatFitter::FitState:

Public Member Functions

 ~FitState ()
 
void deleteMeasurements ()
 
void newMeasurements ()
 
std::vector< FitMeasurement * > & getMeasurements ()
 
const std::vector< FitMeasurement * > & getMeasurements () const
 
bool hasMeasurements () const
 

Public Attributes

std::unique_ptr< FitParametersparameters = nullptr
 
int iterations = 0
 

Private Attributes

std::unique_ptr< std::vector< FitMeasurement * > > m_measurements = nullptr
 

Detailed Description

Definition at line 99 of file iPatFitter.h.

Constructor & Destructor Documentation

◆ ~FitState()

Trk::iPatFitter::FitState::~FitState ( )
inline

Definition at line 101 of file iPatFitter.h.

101 { deleteMeasurements(); }

Member Function Documentation

◆ deleteMeasurements()

void Trk::iPatFitter::FitState::deleteMeasurements ( )
inline

Definition at line 103 of file iPatFitter.h.

103  {
104  if (m_measurements) {
105  for (auto m : *m_measurements) {
106  delete m;
107  }
108  }
109  }

◆ getMeasurements() [1/2]

std::vector<FitMeasurement*>& Trk::iPatFitter::FitState::getMeasurements ( )
inline

Definition at line 116 of file iPatFitter.h.

116  {
117  if (m_measurements) {
118  return *m_measurements;
119  } else {
120  throw std::runtime_error("no measurements exist");
121  }
122  }

◆ getMeasurements() [2/2]

const std::vector<FitMeasurement*>& Trk::iPatFitter::FitState::getMeasurements ( ) const
inline

Definition at line 124 of file iPatFitter.h.

124  {
125  if (m_measurements) {
126  return *m_measurements;
127  } else {
128  throw std::runtime_error("no measurements exist");
129  }
130  }

◆ hasMeasurements()

bool Trk::iPatFitter::FitState::hasMeasurements ( ) const
inline

Definition at line 132 of file iPatFitter.h.

132 { return m_measurements.get() != nullptr; }

◆ newMeasurements()

void Trk::iPatFitter::FitState::newMeasurements ( )
inline

Definition at line 111 of file iPatFitter.h.

111  {
113  m_measurements = std::make_unique<std::vector<FitMeasurement*>>();
114  }

Member Data Documentation

◆ iterations

int Trk::iPatFitter::FitState::iterations = 0

Definition at line 135 of file iPatFitter.h.

◆ m_measurements

std::unique_ptr<std::vector<FitMeasurement*> > Trk::iPatFitter::FitState::m_measurements = nullptr
private

Definition at line 138 of file iPatFitter.h.

◆ parameters

std::unique_ptr<FitParameters> Trk::iPatFitter::FitState::parameters = nullptr

Definition at line 134 of file iPatFitter.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
Trk::iPatFitter::FitState::deleteMeasurements
void deleteMeasurements()
Definition: iPatFitter.h:103
Trk::iPatFitter::FitState::m_measurements
std::unique_ptr< std::vector< FitMeasurement * > > m_measurements
Definition: iPatFitter.h:138