PandaRoot
DecayTreeFitter::FitParams Class Reference

#include <FitParams.h>

Public Member Functions

 FitParams (int dim)
 
 FitParams (const FitParams &par)
 
virtual ~FitParams ()
 
TMatrixDSym & cov ()
 
TVectorD & par ()
 
double & par (int row)
 
TMatrixDSym cov (const std::vector< int > &indexVec) const
 
TVectorD par (const std::vector< int > &indexVec) const
 
const TMatrixDSym & cov () const
 
const TVectorD & par () const
 
const double & par (int row) const
 
int & nConstraintsVec (int row)
 
int dim () const
 
double chiSquare () const
 
int nConstraints () const
 
int nDof () const
 
double err (int row) const
 
void resize (int newdim)
 
void reset (int newdim)
 
void resetPar ()
 
void resetCov (double scale=100)
 
void print () const
 
bool testCov () const
 
void addChiSquare (double chi2, int nconstraints, const ParticleBase *p)
 
ChiSquare chiSquare (const ParticleBase &p) const
 

Protected Member Functions

 FitParams ()
 

Detailed Description

Definition at line 23 of file FitParams.h.

Constructor & Destructor Documentation

◆ FitParams() [1/3]

DecayTreeFitter::FitParams::FitParams ( int  dim)

◆ FitParams() [2/3]

DecayTreeFitter::FitParams::FitParams ( const FitParams par)

◆ ~FitParams()

virtual DecayTreeFitter::FitParams::~FitParams ( )
virtual

◆ FitParams() [3/3]

DecayTreeFitter::FitParams::FitParams ( )
inlineprotected

Definition at line 65 of file FitParams.h.

65 {};

Member Function Documentation

◆ addChiSquare()

void DecayTreeFitter::FitParams::addChiSquare ( double  chi2,
int  nconstraints,
const ParticleBase p 
)

Referenced by err().

◆ chiSquare() [1/2]

double DecayTreeFitter::FitParams::chiSquare ( ) const
inline

Definition at line 49 of file FitParams.h.

Referenced by err().

49 { return m_chiSquare; }

◆ chiSquare() [2/2]

ChiSquare DecayTreeFitter::FitParams::chiSquare ( const ParticleBase p) const

◆ cov() [1/3]

TMatrixDSym& DecayTreeFitter::FitParams::cov ( )
inline

Definition at line 32 of file FitParams.h.

Referenced by par().

32 { return m_cov; }

◆ cov() [2/3]

TMatrixDSym DecayTreeFitter::FitParams::cov ( const std::vector< int > &  indexVec) const

◆ cov() [3/3]

const TMatrixDSym& DecayTreeFitter::FitParams::cov ( ) const
inline

Definition at line 39 of file FitParams.h.

39 { return m_cov; }

◆ dim()

int DecayTreeFitter::FitParams::dim ( ) const
inline

Definition at line 48 of file FitParams.h.

Referenced by nDof().

48 { return m_dim; }

◆ err()

double DecayTreeFitter::FitParams::err ( int  row) const
inline

Definition at line 53 of file FitParams.h.

References addChiSquare(), chiSquare(), print(), reset(), resetCov(), resetPar(), resize(), sqrt(), and testCov().

53 { return sqrt(m_cov(row, row)); }
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:28

◆ nConstraints()

int DecayTreeFitter::FitParams::nConstraints ( ) const
inline

Definition at line 51 of file FitParams.h.

Referenced by nDof().

51 { return m_nConstraints; }

◆ nConstraintsVec()

int& DecayTreeFitter::FitParams::nConstraintsVec ( int  row)
inline

Definition at line 45 of file FitParams.h.

45 { return m_nConstraintsVec[row /*-1*/]; }

◆ nDof()

int DecayTreeFitter::FitParams::nDof ( ) const
inline

Definition at line 52 of file FitParams.h.

References dim(), and nConstraints().

52 { return nConstraints() - dim(); }
int nConstraints() const
Definition: FitParams.h:51

◆ par() [1/5]

TVectorD& DecayTreeFitter::FitParams::par ( )
inline

Definition at line 33 of file FitParams.h.

Referenced by par().

33 { return m_par; }

◆ par() [2/5]

double& DecayTreeFitter::FitParams::par ( int  row)
inline

Definition at line 34 of file FitParams.h.

References cov(), and par().

34 { return m_par(row); }

◆ par() [3/5]

TVectorD DecayTreeFitter::FitParams::par ( const std::vector< int > &  indexVec) const

◆ par() [4/5]

const TVectorD& DecayTreeFitter::FitParams::par ( ) const
inline

Definition at line 40 of file FitParams.h.

40 { return m_par; }

◆ par() [5/5]

const double& DecayTreeFitter::FitParams::par ( int  row) const
inline

Definition at line 41 of file FitParams.h.

41 { return m_par(row); }

◆ print()

void DecayTreeFitter::FitParams::print ( ) const

Referenced by err().

◆ reset()

void DecayTreeFitter::FitParams::reset ( int  newdim)

Referenced by err().

◆ resetCov()

void DecayTreeFitter::FitParams::resetCov ( double  scale = 100)

Referenced by err().

◆ resetPar()

void DecayTreeFitter::FitParams::resetPar ( )

Referenced by err().

◆ resize()

void DecayTreeFitter::FitParams::resize ( int  newdim)

Referenced by err().

◆ testCov()

bool DecayTreeFitter::FitParams::testCov ( ) const

Referenced by err().


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