|
Pid Framework
|
Class to fit 2D histograms. More...
#include <Fitter.h>
Public Member Functions | |
| void | Fit () |
| TF1 * | ConstructFit1DFunction (double p) |
| double | Fit1D (const std::shared_ptr< TH1 > &h, std::vector< double > &par, std::vector< double > &par_err, double p) |
| void | Clear () |
| void | AddParticle (const ParticleFit &particle, uint id) |
| void | SetHisto2D (std::shared_ptr< TH2 > histo2D) |
| void | SetRangeX (double min, double max) |
| void | SetRangeY (double min, double max) |
| void | SetOutputFileName (TString name) |
| ParticleFit | GetParticle (uint i) const |
| ParticleFit | GetParticleSpecie (uint i) const |
| void | SetChi2Max (double chi2) |
Class to fit 2D histograms.
| void Pid::Fitter::Clear | ( | ) |
Clear everything
| TF1 * Pid::Fitter::ConstructFit1DFunction | ( | double | p | ) |
Constructs fit function as a sum of individual particle species. Parameters are also propagated
| p | track momentum |
| void Pid::Fitter::Fit | ( | ) |
Main function. Fitting TH2D bin-by-bin
| double Pid::Fitter::Fit1D | ( | const std::shared_ptr< TH1 > & | h, |
| std::vector< double > & | par, | ||
| std::vector< double > & | par_err, | ||
| double | p ) |
Constructs fit function as a sum of individual particle species. Parameters are also propagated
| h | pointer to input histo |
| par | output: fit parameters |
| par_err | output: fit parameters erorrs |
| p | track momentum |