ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Muon::TimePointBetaFitter::FitResult Struct Reference

simple struct holding the fit result More...

#include <TimePointBetaFitter.h>

Collaboration diagram for Muon::TimePointBetaFitter::FitResult:

Public Member Functions

 FitResult ()
 constructors More...
 
 FitResult (int status_, float beta_, float chi2_, int ndof_)
 
float chi2PerDOF () const
 chi2/ndof, return 0 if ndof == 0 or status == 0 More...
 

Public Attributes

int status
 data members More...
 
float beta
 status flag (0 = failed, 1 = ok) More...
 
float chi2
 fitted beta More...
 
int ndof
 fit chi2 More...
 

Detailed Description

simple struct holding the fit result

Definition at line 33 of file TimePointBetaFitter.h.

Constructor & Destructor Documentation

◆ FitResult() [1/2]

Muon::TimePointBetaFitter::FitResult::FitResult ( )
inline

constructors

Definition at line 35 of file TimePointBetaFitter.h.

35 : status(0), beta(0), chi2(0), ndof(1) {}

◆ FitResult() [2/2]

Muon::TimePointBetaFitter::FitResult::FitResult ( int  status_,
float  beta_,
float  chi2_,
int  ndof_ 
)
inline

Definition at line 36 of file TimePointBetaFitter.h.

36 : status(status_), beta(beta_), chi2(chi2_), ndof(ndof_) {}

Member Function Documentation

◆ chi2PerDOF()

float Muon::TimePointBetaFitter::FitResult::chi2PerDOF ( ) const
inline

chi2/ndof, return 0 if ndof == 0 or status == 0

Definition at line 39 of file TimePointBetaFitter.h.

39 { return (status == 0 || ndof == 0) ? 0 : chi2/ndof; }

Member Data Documentation

◆ beta

float Muon::TimePointBetaFitter::FitResult::beta

status flag (0 = failed, 1 = ok)

Definition at line 43 of file TimePointBetaFitter.h.

◆ chi2

float Muon::TimePointBetaFitter::FitResult::chi2

fitted beta

Definition at line 44 of file TimePointBetaFitter.h.

◆ ndof

int Muon::TimePointBetaFitter::FitResult::ndof

fit chi2

Definition at line 45 of file TimePointBetaFitter.h.

◆ status

int Muon::TimePointBetaFitter::FitResult::status

data members

Definition at line 42 of file TimePointBetaFitter.h.


The documentation for this struct was generated from the following file:
Muon::TimePointBetaFitter::FitResult::ndof
int ndof
fit chi2
Definition: TimePointBetaFitter.h:45
Muon::TimePointBetaFitter::FitResult::chi2
float chi2
fitted beta
Definition: TimePointBetaFitter.h:44
Muon::TimePointBetaFitter::FitResult::beta
float beta
status flag (0 = failed, 1 = ok)
Definition: TimePointBetaFitter.h:43
Muon::TimePointBetaFitter::FitResult::status
int status
data members
Definition: TimePointBetaFitter.h:42