CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
reco::FitQuality Class Reference

#include <FitQuality.h>

Public Member Functions

double chi2 () const
 chi-squared More...
 
 FitQuality ()
 default constructor More...
 
 FitQuality (double chi2, double ndof)
 constructor form values More...
 
double ndof () const
 number of degrees of freedom More...
 
double normalizedChi2 () const
 normalized chi-squared More...
 

Private Attributes

Double32_t chi2_
 
Double32_t ndof_
 

Detailed Description

structure containg fit quality

Author
Luca Lista, INFN

Definition at line 16 of file FitQuality.h.

Constructor & Destructor Documentation

◆ FitQuality() [1/2]

reco::FitQuality::FitQuality ( )
inline

default constructor

Definition at line 19 of file FitQuality.h.

19 : chi2_(0), ndof_(0) {}
Double32_t ndof_
Definition: FitQuality.h:31
Double32_t chi2_
Definition: FitQuality.h:30

◆ FitQuality() [2/2]

reco::FitQuality::FitQuality ( double  chi2,
double  ndof 
)
inline

constructor form values

Definition at line 21 of file FitQuality.h.

21 : chi2_(chi2), ndof_(ndof) {}
double chi2() const
chi-squared
Definition: FitQuality.h:23
Double32_t ndof_
Definition: FitQuality.h:31
Double32_t chi2_
Definition: FitQuality.h:30
double ndof() const
number of degrees of freedom
Definition: FitQuality.h:25

Member Function Documentation

◆ chi2()

double reco::FitQuality::chi2 ( void  ) const
inline

chi-squared

Definition at line 23 of file FitQuality.h.

References chi2_.

23 { return chi2_; }
Double32_t chi2_
Definition: FitQuality.h:30

◆ ndof()

double reco::FitQuality::ndof ( ) const
inline

number of degrees of freedom

Definition at line 25 of file FitQuality.h.

References ndof_.

25 { return ndof_; }
Double32_t ndof_
Definition: FitQuality.h:31

◆ normalizedChi2()

double reco::FitQuality::normalizedChi2 ( ) const
inline

normalized chi-squared

Definition at line 27 of file FitQuality.h.

References chi2_, and ndof_.

27 { return chi2_ / ndof_; }
Double32_t ndof_
Definition: FitQuality.h:31
Double32_t chi2_
Definition: FitQuality.h:30

Member Data Documentation

◆ chi2_

Double32_t reco::FitQuality::chi2_
private

Definition at line 30 of file FitQuality.h.

Referenced by chi2(), and normalizedChi2().

◆ ndof_

Double32_t reco::FitQuality::ndof_
private

Definition at line 31 of file FitQuality.h.

Referenced by ndof(), and normalizedChi2().