50 Minimum(
double pos,
double err,
double chi2_min,
bool valid_flag):
84 void add(
unsigned i,
double chi2);
159 TH1F
getHistogram(std::string name, std::string title)
const;
175 Minimum
getMinimum(
double yLeft,
double yCenter,
double yRight)
const;
Minimum finder using tabulated chi^2 values in one dimension.
const std::vector< double > & getBinCenters() const
Returns vector of bin centers.
double m_xmin
lower limit of search region
void findMinimum()
Finds minimum.
TH1F getHistogram(std::string name, std::string title) const
Returns chi^2 packed into 1D histogram.
int m_entries
number of entries (counted for bin 0)
Chi2MinimumFinder1D()
Default constructor.
Minimum m_minimum
result: global minimum
bool m_searched
internal flag
double getMinChi2() const
Returns minimum chi2 value.
double getBinSize() const
Returns bin (or step) size.
void add(unsigned i, double chi2)
Add chi^2 value to bin i.
double m_xmax
upper limit of search region
int getEntries() const
Returns number of entries (counted for bin 0)
double getXmax() const
Returns upper limit of search region.
std::vector< double > m_chi2
chi^2 values at bin centers
const Minimum & getMinimum()
Returns parabolic minimum.
void clear()
Set chi^2 values to zero.
double getXmin() const
Returns lower limit of search region.
std::vector< double > m_x
bin centers
int getNbins() const
Returns number of bins.
const std::vector< double > & getChi2Values() const
Returns vector of chi^2.
Abstract base class for different kinds of events.
Result of minimum finder.
Minimum(double pos, double err, double chi2_min, bool valid_flag)
Full constructor.
double error
error on the position
double chi2
chi2 at minimum
bool valid
valid minimum found
Minimum()
Default constructor.
double position
position of the minimum