Minimum finder using tabulated chi^2 values in one dimension.
More...
#include <Chi2MinimumFinder1D.h>
|
double | m_xmin = 0 |
| lower limit of search region
|
|
double | m_xmax = 0 |
| upper limit of search region
|
|
double | m_dx = 0 |
| bin size
|
|
std::vector< double > | m_x |
| bin centers
|
|
std::vector< double > | m_chi2 |
| chi^2 values at bin centers
|
|
int | m_entries = 0 |
| number of entries (counted for bin 0)
|
|
bool | m_searched = false |
| internal flag
|
|
Minimum | m_minimum |
| result: global minimum
|
|
Minimum finder using tabulated chi^2 values in one dimension.
Definition at line 28 of file Chi2MinimumFinder1D.h.
◆ Chi2MinimumFinder1D()
Class constructor, similar to 1D histogram.
- Parameters
-
nbins | number of points the search region is divided to |
xmin | lower limit of the search region |
xmax | upper limit of the search region |
Definition at line 22 of file Chi2MinimumFinder1D.cc.
26 B2ERROR(
"Chi2MinimumFinder1D: nbins must be positive integer");
30 B2ERROR(
"Chi2MinimumFinder1D: search range max < min");
double m_xmin
lower limit of search region
double m_xmax
upper limit of search region
std::vector< double > m_chi2
chi^2 values at bin centers
std::vector< double > m_x
bin centers
◆ add() [1/2]
Add data from another finder Finders must be defined with the same range and binning.
- Returns
- a reference to this finder
Definition at line 74 of file Chi2MinimumFinder1D.cc.
◆ add() [2/2]
void add |
( |
unsigned |
i, |
|
|
double |
chi2 |
|
) |
| |
Add chi^2 value to bin i.
- Parameters
-
i | bin index (0-based) |
chi2 | value to be added |
Definition at line 62 of file Chi2MinimumFinder1D.cc.
◆ getBinCenters()
const std::vector<double>& getBinCenters |
( |
| ) |
const |
|
inline |
◆ getBinSize()
double getBinSize |
( |
| ) |
const |
|
inline |
◆ getChi2Values()
const std::vector<double>& getChi2Values |
( |
| ) |
const |
|
inline |
◆ getEntries()
Returns number of entries (counted for bin 0)
- Returns
- number of entries
Definition at line 140 of file Chi2MinimumFinder1D.h.
◆ getHistogram()
TH1F getHistogram |
( |
std::string |
name, |
|
|
std::string |
title |
|
) |
| const |
Returns chi^2 packed into 1D histogram.
- Parameters
-
name | histogram name |
title | histogram title |
Definition at line 126 of file Chi2MinimumFinder1D.cc.
◆ getMinChi2()
double getMinChi2 |
( |
| ) |
const |
|
inline |
◆ getMinimum()
Calculates minimum using parabolic interpolation.
- Parameters
-
yLeft | bin content of left-to-minimal bin |
yCenter | bin content of minimal bin |
yRight | bin content of right-to-minimal bin |
- Returns
- minimum given as a fraction of step to be added to central bin position
Definition at line 110 of file Chi2MinimumFinder1D.cc.
◆ getNbins()
◆ getXmax()
◆ getXmin()
The documentation for this class was generated from the following files: