Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
JFitToolkit.hh File Reference

Auxiliary methods to evaluate Poisson probabilities and chi2. More...

#include <cmath>
#include "TMath.h"
#include "JMath/JMath.hh"
#include "JFit/JVectorNZ.hh"
#include "JFit/JMatrixNZ.hh"
#include "JFit/JEvt.hh"

Go to the source code of this file.

Namespaces

 JFIT
 Auxiliary classes and methods for linear and iterative data regression.
 
 JPP
 

Functions

double JFIT::getP (const double expval, bool hit)
 Get Poisson probability to observe a hit or not for given expectation value for the number of hits. More...
 
double JFIT::getP (const double expval, const unsigned int numberOfHits, const double precision=1.0e-5)
 Get Poisson probability to observe given number of hits or more for the given expectation value for the number of hits. More...
 
double JFIT::getChi2 (const double P)
 Get chi2 corresponding to given probability. More...
 
double JFIT::getChi2 (const double expval, bool hit)
 Get chi2 to observe a hit or not for given expectation value for the number of hits. More...
 
template<class JModel_t , class JHit_t >
double JFIT::getChi2 (const JModel_t &model, const JHit_t &hit, const double sigma)
 Determine chi2 of a hit for a given model and time resolution. More...
 
template<class JModel_t , class T >
double JFIT::getChi2 (const JModel_t &model, T __begin, T __end, const double sigma)
 Determine chi2 of data for given model and time resolution. More...
 
template<class T >
double JFIT::getChi2 (T __begin, T __end, const JMatrixNZ &V)
 Determine chi2 of data using full covariance matrix. More...
 
double JFIT::getChi2 (const JVectorNZ &Y, const JMatrixNZ &V)
 Determine chi2 using full covariance matrix. More...
 
template<class T >
double JFIT::getChi2 (const JLine1Z &track, T __begin, T __end, const JMatrixNZ &V)
 Determine chi2 of data for given track using full covariance matrix. More...
 
template<class T >
double JFIT::getChi2 (const JLine1Z &track, T __begin, T __end, const double alpha, const double sigma)
 Determine chi2 of data for given track and angular and time resolution. More...
 
template<class T >
double JFIT::getChi2 (T __begin, T __end, const JMatrixNZ &V, const int i)
 Determine difference between chi2 with and without hit using full covariance matrix. More...
 
double JFIT::getChi2 (const JVectorNZ &Y, const JMatrixNZ &V, const int i)
 Determine difference between chi2 with and without hit using full covariance matrix. More...
 
template<class JModel_t , class JFit_t , class T >
double JFIT::getChi2 (const JModel_t &model, const JFit_t &fit, T __begin, T __end)
 Get chi2 of data for given model and fit function. More...
 

Detailed Description

Auxiliary methods to evaluate Poisson probabilities and chi2.

Author
mdejong

Definition in file JFitToolkit.hh.