#include <ParabolaFit.h>
Classes | |
struct | Column |
struct | Point |
struct | Result |
Public Member Functions | |
void | addPoint (double x, double y) |
void | addPoint (double x, double y, double weight) |
double | chi2 () const |
int | dof () const |
void | fixParC (double val) |
double | parA () const |
ParabolaFit () | |
double | parB () const |
double | parC () const |
const Result & | result (bool doErrors) const |
void | skipErrorCalculationByDefault () |
double | varAA () const |
double | varAB () const |
double | varAC () const |
double | varBB () const |
double | varBC () const |
double | varCC () const |
Private Member Functions | |
double | det (const Column &c1, const Column &c2, const Column &c3) const |
double | det (const Column &c1, const Column &c2) const |
double | fun (double x) const |
Private Attributes | |
bool | doErr |
bool | hasErrors |
bool | hasFixedParC |
bool | hasValues |
bool | hasWeights |
std::vector< Point > | points |
Result | theResult |
The parabola fit y = parA + parB * x + parC * x*x see: R.L. Gluckstern, NIM 24 (1963) 381
Definition at line 12 of file ParabolaFit.h.
|
inline |
Definition at line 16 of file ParabolaFit.h.
void ParabolaFit::addPoint | ( | double | x, |
double | y | ||
) |
Definition at line 6 of file ParabolaFit.cc.
Referenced by ConformalMappingFit::ConformalMappingFit().
void ParabolaFit::addPoint | ( | double | x, |
double | y, | ||
double | weight | ||
) |
Definition at line 12 of file ParabolaFit.cc.
References AlCaHLTBitMon_ParallelJobs::p, x, and detailsBasic3DVector::y.
double ParabolaFit::chi2 | ( | void | ) | const |
Definition at line 104 of file ParabolaFit.cc.
References funct::sqr().
Referenced by ConformalMappingFit::chi2().
Definition at line 126 of file ParabolaFit.cc.
References ParabolaFit::Column::r1, ParabolaFit::Column::r2, and ParabolaFit::Column::r3.
Definition at line 137 of file ParabolaFit.cc.
References ParabolaFit::Column::r1, and ParabolaFit::Column::r2.
int ParabolaFit::dof | ( | ) | const |
Definition at line 119 of file ParabolaFit.cc.
|
inline |
Definition at line 23 of file ParabolaFit.h.
References hasFixedParC, ParabolaFit::Result::parC, and theResult.
Referenced by ConformalMappingFit::fixImpactParmaeter().
|
private |
|
inline |
Definition at line 27 of file ParabolaFit.h.
References doErr, hasValues, ParabolaFit::Result::parA, result(), and theResult.
Referenced by ConformalMappingFit::charge(), and ConformalMappingFit::curvature().
|
inline |
Definition at line 28 of file ParabolaFit.h.
References doErr, hasValues, ParabolaFit::Result::parB, result(), and theResult.
Referenced by ConformalMappingFit::directionPhi().
|
inline |
Definition at line 29 of file ParabolaFit.h.
References doErr, hasValues, ParabolaFit::Result::parC, result(), and theResult.
Referenced by ConformalMappingFit::impactParameter().
const ParabolaFit::Result & ParabolaFit::result | ( | bool | doErrors | ) | const |
Definition at line 20 of file ParabolaFit.cc.
References funct::pow(), funct::sqr(), w, x, and detailsBasic3DVector::y.
Referenced by parA(), parB(), parC(), varAA(), varAB(), varAC(), varBB(), varBC(), and varCC().
|
inline |
Definition at line 22 of file ParabolaFit.h.
References doErr.
Referenced by ConformalMappingFit::skipErrorCalculation().
|
inline |
Definition at line 30 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varAA.
Referenced by ConformalMappingFit::curvature().
|
inline |
Definition at line 33 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varAB.
|
inline |
Definition at line 34 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varAC.
|
inline |
Definition at line 31 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varBB.
Referenced by ConformalMappingFit::directionPhi().
|
inline |
Definition at line 35 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varBC.
|
inline |
Definition at line 32 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varCC.
Referenced by ConformalMappingFit::impactParameter().
|
private |
Definition at line 50 of file ParabolaFit.h.
Referenced by parA(), parB(), parC(), and skipErrorCalculationByDefault().
|
mutableprivate |
|
private |
Definition at line 50 of file ParabolaFit.h.
Referenced by fixParC().
|
mutableprivate |
Definition at line 51 of file ParabolaFit.h.
|
private |
Definition at line 52 of file ParabolaFit.h.
|
mutableprivate |
Definition at line 49 of file ParabolaFit.h.