#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 50 of file LagrangeMultipliersFitter.cc.
References alpha, correctionTermsCaloMet_cff::C, chi2_, Chi2AndConstaintMin, chi2prev_, chiSquareUsingInitalPoint(), constraintDelta(), ConstraintMin, cov_0_, ztail::d, D_, delta_, derivative(), change_name::diff, GeomDetEnumerators::DT, epsilon_, createfilelist::int, 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 170 of file LagrangeMultipliersFitter.cc.
References alpha, cov_0_, mps_fire::i, dqmiolumiharvest::j, par_, par_0_, V_alpha0_inv_, and value().
Referenced by applyLagrangianConstraints().
|
private |
Definition at line 211 of file LagrangeMultipliersFitter.cc.
References cov_, cov_0_, D_, mps_fire::i, dqmiolumiharvest::j, ScaleFactor_, V_corr_prev_, and V_D_.
Referenced by fit().
|
private |
Definition at line 202 of file LagrangeMultipliersFitter.cc.
References mps_fire::i, and value().
Referenced by applyLagrangianConstraints().
|
inlinevirtual |
Definition at line 35 of file LagrangeMultipliersFitter.h.
References delta_.
|
private |
Definition at line 135 of file LagrangeMultipliersFitter.cc.
References epsilon_, mps_fire::i, dqmiolumiharvest::j, nConstraints(), par_, and value().
Referenced by applyLagrangianConstraints().
|
virtual |
Definition at line 24 of file LagrangeMultipliersFitter.cc.
References applyLagrangianConstraints(), computeVariance(), cov_, cov_0_, delta_, isConfigured_, isConverged(), isFit_, maxDelta_, niter_, nitermax_, par_0_, and TriggerAnalyzer::passed.
Referenced by trackingPlots.Iteration::modules().
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Definition at line 33 of file LagrangeMultipliersFitter.h.
References isConfigured_.
|
virtual |
Definition at line 155 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 mps_merge::weight, and weight_.
|
protectedpure virtual |
Referenced by applyLagrangianConstraints(), chiSquareUsingInitalPoint(), constraintDelta(), and derivative().
|
private |
Definition at line 69 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and chiSquare().
|
private |
Definition at line 69 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 73 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and computeVariance().
|
private |
Definition at line 69 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), cSum(), fit(), and isConverged().
|
private |
Definition at line 66 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 66 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), fit(), isConverged(), and setMaxDelta().
|
private |
Definition at line 69 of file LagrangeMultipliersFitter.h.
|
private |
Definition at line 66 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 75 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and computeVariance().
|
private |
Definition at line 72 of file LagrangeMultipliersFitter.h.
Referenced by chiSquareUsingInitalPoint().
|
private |
Definition at line 76 of file LagrangeMultipliersFitter.h.
Referenced by computeVariance().
|
private |
Definition at line 74 of file LagrangeMultipliersFitter.h.
Referenced by applyLagrangianConstraints(), and computeVariance().
|
private |
Definition at line 66 of file LagrangeMultipliersFitter.h.
Referenced by setWeight().