#include <LagrangeMultipliersFitter.h>
Public Types | |
enum | ConvergeProc { ConstraintMin =0, Chi2Min, Chi2AndConstaintMin } |
enum | Parameters { par_vx =0, par_vy, par_vz, par_px, par_py, par_pz, par_m, npardim } |
enum | Position { pos_x =0, pos_y, pos_z, nposdim } |
Public Member Functions | |
virtual double | chiSquare () |
virtual double | cSum () |
virtual bool | fit () |
virtual LorentzVectorParticle | getMother ()=0 |
virtual std::vector < LorentzVectorParticle > | getRefitDaughters ()=0 |
virtual bool | isConfigured () |
virtual bool | isConverged () |
LagrangeMultipliersFitter () | |
virtual double | nConstraints ()=0 |
virtual int | nDaughters ()=0 |
virtual double | ndf ()=0 |
virtual double | nIter () |
virtual void | setMaxDelta (double MaxDelta) |
virtual void | setNIterMax (int Nitermax) |
virtual void | setWeight (double weight) |
virtual | ~LagrangeMultipliersFitter () |
Protected Member Functions | |
virtual TVectorD | value (const TVectorD &v)=0 |
Protected Attributes | |
TMatrixTSym< double > | cov_ |
TMatrixTSym< double > | cov_0_ |
bool | isConfigured_ |
bool | isFit_ |
TVectorD | par_ |
TVectorD | par_0_ |
Private Member Functions | |
bool | applyLagrangianConstraints () |
double | chiSquare (const TVectorT< double > &delta_alpha, const TVectorT< double > &lambda, const TMatrixT< double > &D, const TVectorT< double > &d) |
double | chiSquareUsingInitalPoint (const TVectorT< double > &alpha, const TVectorT< double > &lambda) |
TMatrixT< double > | computeVariance () |
double | constraintDelta (const TVectorT< double > &par) |
TMatrixT< double > | derivative () |
Private Attributes | |
double | chi2_ |
double | chi2prev_ |
TMatrixT< double > | D_ |
double | delta_ |
double | epsilon_ |
double | maxDelta_ |
double | niter_ |
double | nitermax_ |
double | ScaleFactor_ |
TMatrixTSym< double > | V_alpha0_inv_ |
TMatrixT< double > | V_corr_prev_ |
TMatrixTSym< double > | V_D_ |
double | weight_ |
Definition at line 18 of file LagrangeMultipliersFitter.h.
Enumerator | |
---|---|
ConstraintMin | |
Chi2Min | |
Chi2AndConstaintMin |
Definition at line 22 of file LagrangeMultipliersFitter.h.
Enumerator | |
---|---|
par_vx | |
par_vy | |
par_vz | |
par_px | |
par_py | |
par_pz | |
par_m | |
npardim |
Definition at line 21 of file LagrangeMultipliersFitter.h.
LagrangeMultipliersFitter::LagrangeMultipliersFitter | ( | ) |
Definition at line 13 of file LagrangeMultipliersFitter.cc.
|
inlinevirtual |
Definition at line 25 of file LagrangeMultipliersFitter.h.
|
private |
Definition at line 47 of file LagrangeMultipliersFitter.cc.
References alpha, funct::C, chi2_, Chi2AndConstaintMin, chi2prev_, chiSquareUsingInitalPoint(), constraintDelta(), ConstraintMin, cov_0_, ztail::d, D_, delta_, derivative(), mps_update::diff, GeomDetEnumerators::DT, epsilon_, cmsLHEtoEOSManager::l, maxDelta_, nConstraints(), par_, par_0_, alignCSCRings::s, ScaleFactor_, V_D_, and value().
Referenced by fit().
|
inlinevirtual |
Definition at line 34 of file LagrangeMultipliersFitter.h.
References chi2_.
|
private |
|
private |
Definition at line 145 of file LagrangeMultipliersFitter.cc.
References alpha, cov_0_, i, j, par_, par_0_, V_alpha0_inv_, and value().
Referenced by applyLagrangianConstraints().
|
private |
Definition at line 181 of file LagrangeMultipliersFitter.cc.
References cov_, cov_0_, D_, i, j, ScaleFactor_, V_corr_prev_, and V_D_.
Referenced by fit().
|
private |
Definition at line 172 of file LagrangeMultipliersFitter.cc.
Referenced by applyLagrangianConstraints().
|
inlinevirtual |
Definition at line 35 of file LagrangeMultipliersFitter.h.
References delta_.
|
private |
Definition at line 114 of file LagrangeMultipliersFitter.cc.
References epsilon_, i, j, nConstraints(), par_, and value().
Referenced by applyLagrangianConstraints().
|
virtual |
Definition at line 25 of file LagrangeMultipliersFitter.cc.
References applyLagrangianConstraints(), computeVariance(), cov_, cov_0_, delta_, isConfigured_, isConverged(), isFit_, maxDelta_, niter_, nitermax_, and par_0_.
Referenced by trackingPlots.Iteration::modules().
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Definition at line 33 of file LagrangeMultipliersFitter.h.
References isConfigured_.
|
virtual |
Definition at line 133 of file LagrangeMultipliersFitter.cc.
References delta_, and maxDelta_.
Referenced by fit().
|
pure virtual |
Referenced by applyLagrangianConstraints(), and derivative().
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Definition at line 36 of file LagrangeMultipliersFitter.h.
References niter_.
|
inlinevirtual |
Definition at line 28 of file LagrangeMultipliersFitter.h.
References maxDelta_.
|
inlinevirtual |
Definition at line 29 of file LagrangeMultipliersFitter.h.
References nitermax_.
|
inlinevirtual |
Definition at line 27 of file LagrangeMultipliersFitter.h.
References puppiForMET_cff::weight, and weight_.
|
protectedpure virtual |
Referenced by applyLagrangianConstraints(), chiSquareUsingInitalPoint(), constraintDelta(), and derivative().
|
private |
Definition at line 66 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and chiSquare().
|
private |
Definition at line 66 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints().
|
protected |
Definition at line 50 of file LagrangeMultipliersFitter.h.
Referenced by computeVariance(), and fit().
|
protected |
Definition at line 49 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), chiSquareUsingInitalPoint(), computeVariance(), and fit().
|
private |
Definition at line 70 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and computeVariance().
|
private |
Definition at line 66 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), cSum(), fit(), and isConverged().
|
private |
Definition at line 63 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and derivative().
|
protected |
Definition at line 51 of file LagrangeMultipliersFitter.h.
Referenced by fit(), and isConfigured().
|
protected |
Definition at line 52 of file LagrangeMultipliersFitter.h.
Referenced by fit().
|
private |
Definition at line 63 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), fit(), isConverged(), and setMaxDelta().
|
private |
Definition at line 66 of file LagrangeMultipliersFitter.h.
|
private |
Definition at line 63 of file LagrangeMultipliersFitter.h.
Referenced by fit(), and setNIterMax().
|
protected |
Definition at line 48 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), chiSquareUsingInitalPoint(), and derivative().
|
protected |
Definition at line 47 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), chiSquareUsingInitalPoint(), and fit().
|
private |
Definition at line 72 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and computeVariance().
|
private |
Definition at line 69 of file LagrangeMultipliersFitter.h.
Referenced by chiSquareUsingInitalPoint().
|
private |
Definition at line 73 of file LagrangeMultipliersFitter.h.
Referenced by computeVariance().
|
private |
Definition at line 71 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and computeVariance().
|
private |
Definition at line 63 of file LagrangeMultipliersFitter.h.
Referenced by setWeight().