#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 11 of file ParabolaFit.h.
|
inline |
Definition at line 17 of file ParabolaFit.h.
void ParabolaFit::addPoint | ( | double | x, |
double | y | ||
) |
Definition at line 9 of file ParabolaFit.cc.
References x.
Referenced by ConformalMappingFit::ConformalMappingFit().
void ParabolaFit::addPoint | ( | double | x, |
double | y, | ||
double | weight | ||
) |
Definition at line 14 of file ParabolaFit.cc.
References AlCaHLTBitMon_ParallelJobs::p, hiPixelPairStep_cff::points, w(), and x.
double ParabolaFit::chi2 | ( | void | ) | const |
Definition at line 111 of file ParabolaFit.cc.
References hiPixelPairStep_cff::points, and sqr().
Referenced by ConformalMappingFit::chi2().
Definition at line 129 of file ParabolaFit.cc.
References alignmentValidation::c1, ParabolaFit::Column::r1, ParabolaFit::Column::r2, and ParabolaFit::Column::r3.
Definition at line 134 of file ParabolaFit.cc.
References alignmentValidation::c1, ParabolaFit::Column::r1, and ParabolaFit::Column::r2.
int ParabolaFit::dof | ( | ) | const |
Definition at line 121 of file ParabolaFit.cc.
References fftjetvertexadder_cfi::nDof, HcalResponse_cfi::nPar, and hiPixelPairStep_cff::points.
|
inline |
Definition at line 23 of file ParabolaFit.h.
References hasFixedParC, ParabolaFit::Result::parC, theResult, and heppy_batch::val.
Referenced by ConformalMappingFit::fixImpactParmaeter().
|
private |
|
inline |
Definition at line 30 of file ParabolaFit.h.
References doErr, hasValues, ParabolaFit::Result::parA, result(), and theResult.
Referenced by ConformalMappingFit::charge(), and ConformalMappingFit::curvature().
|
inline |
Definition at line 35 of file ParabolaFit.h.
References doErr, hasValues, ParabolaFit::Result::parB, result(), and theResult.
Referenced by ConformalMappingFit::directionPhi().
|
inline |
Definition at line 40 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 21 of file ParabolaFit.cc.
References nano_mu_local_reco_cff::chi2, hiPixelPairStep_cff::points, funct::pow(), sqr(), w(), and x.
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 45 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varAA.
Referenced by ConformalMappingFit::curvature().
|
inline |
Definition at line 60 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varAB.
|
inline |
Definition at line 65 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varAC.
|
inline |
Definition at line 50 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varBB.
Referenced by ConformalMappingFit::directionPhi().
|
inline |
Definition at line 70 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varBC.
|
inline |
Definition at line 55 of file ParabolaFit.h.
References hasErrors, result(), theResult, and ParabolaFit::Result::varCC.
Referenced by ConformalMappingFit::impactParameter().
|
private |
Definition at line 97 of file ParabolaFit.h.
Referenced by parA(), parB(), parC(), and skipErrorCalculationByDefault().
|
mutableprivate |
|
private |
Definition at line 97 of file ParabolaFit.h.
Referenced by fixParC().
|
mutableprivate |
Definition at line 98 of file ParabolaFit.h.
|
private |
Definition at line 99 of file ParabolaFit.h.
|
private |
Definition at line 96 of file ParabolaFit.h.