ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::FitQualityImpl Class Reference

simple/trivial Implemenation class for fit the fit quality. More...

#include <FitQuality.h>

Inheritance diagram for Trk::FitQualityImpl:
Collaboration diagram for Trk::FitQualityImpl:

Public Member Functions

 FitQualityImpl ()=default
 default ctor for POOL
 FitQualityImpl (const FitQualityImpl &)=default
 FitQualityImpl (FitQualityImpl &&)=default
FitQualityImploperator= (const FitQualityImpl &)=default
FitQualityImploperator= (FitQualityImpl &&)=default
 FitQualityImpl (double chiSquared, int numberDoF)
 Constructor with \( \chi^2 \) and \( n_{dof} \).
 FitQualityImpl (double chiSquared, double numberDoF)
 Constructor hadling double type of NDF.
double chiSquared () const
 returns the \( \chi^2 \) of the overall track fit
int numberDoF () const
 returns the number of degrees of freedom of the overall track or vertex fit as integer
double doubleNumberDoF () const
 returns the number of degrees of freedom of the overall track or vertex fit as double
void setChiSquared (double chiSquared)
 set the \( \chi^2 \)
void setNumberDoF (double numberDoF)
 set the number of degrees of freedom

Protected Member Functions

 ~FitQualityImpl ()=default

Protected Attributes

double m_chiSquared {}
double m_numberDoF {}

Detailed Description

simple/trivial Implemenation class for fit the fit quality.

It holds the same payload as FitQuality_p1.

It is used for the implementation of FitQualityOnSurface. And for the implementation of the extendable FitQuality that adds virtual methods to it

Author
Christos Anastopoulos.

Definition at line 31 of file FitQuality.h.

Constructor & Destructor Documentation

◆ FitQualityImpl() [1/5]

Trk::FitQualityImpl::FitQualityImpl ( )
default

default ctor for POOL

◆ FitQualityImpl() [2/5]

Trk::FitQualityImpl::FitQualityImpl ( const FitQualityImpl & )
default

◆ FitQualityImpl() [3/5]

Trk::FitQualityImpl::FitQualityImpl ( FitQualityImpl && )
default

◆ FitQualityImpl() [4/5]

Trk::FitQualityImpl::FitQualityImpl ( double chiSquared,
int numberDoF )
inline

Constructor with \( \chi^2 \) and \( n_{dof} \).

Definition at line 42 of file FitQuality.h.

45 {
46 }
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition FitQuality.h:60
double chiSquared() const
returns the of the overall track fit
Definition FitQuality.h:56

◆ FitQualityImpl() [5/5]

Trk::FitQualityImpl::FitQualityImpl ( double chiSquared,
double numberDoF )
inline

Constructor hadling double type of NDF.

Definition at line 49 of file FitQuality.h.

◆ ~FitQualityImpl()

Trk::FitQualityImpl::~FitQualityImpl ( )
protecteddefault

Member Function Documentation

◆ chiSquared()

double Trk::FitQualityImpl::chiSquared ( ) const
inline

returns the \( \chi^2 \) of the overall track fit

Definition at line 56 of file FitQuality.h.

56{ return m_chiSquared; }

◆ doubleNumberDoF()

double Trk::FitQualityImpl::doubleNumberDoF ( ) const
inline

returns the number of degrees of freedom of the overall track or vertex fit as double

Definition at line 68 of file FitQuality.h.

68{ return m_numberDoF; }

◆ numberDoF()

int Trk::FitQualityImpl::numberDoF ( ) const
inline

returns the number of degrees of freedom of the overall track or vertex fit as integer

Definition at line 60 of file FitQuality.h.

61 {
62
63 return static_cast<int>(std::floor(m_numberDoF + 0.5));
64 }

◆ operator=() [1/2]

FitQualityImpl & Trk::FitQualityImpl::operator= ( const FitQualityImpl & )
default

◆ operator=() [2/2]

FitQualityImpl & Trk::FitQualityImpl::operator= ( FitQualityImpl && )
default

◆ setChiSquared()

void Trk::FitQualityImpl::setChiSquared ( double chiSquared)
inline

set the \( \chi^2 \)

Definition at line 71 of file FitQuality.h.

◆ setNumberDoF()

void Trk::FitQualityImpl::setNumberDoF ( double numberDoF)
inline

set the number of degrees of freedom

Definition at line 74 of file FitQuality.h.

Member Data Documentation

◆ m_chiSquared

double Trk::FitQualityImpl::m_chiSquared {}
protected

Definition at line 81 of file FitQuality.h.

81{};

◆ m_numberDoF

double Trk::FitQualityImpl::m_numberDoF {}
protected

Definition at line 82 of file FitQuality.h.

82{};

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