#include <TKinFitter.h>
Public Member Functions | |
void | addConstraint (TAbsFitConstraint *constraint) |
void | addMeasParticle (TAbsFitParticle *particle) |
void | addMeasParticles (TAbsFitParticle *p1, TAbsFitParticle *p2=nullptr, TAbsFitParticle *p3=nullptr, TAbsFitParticle *p4=nullptr, TAbsFitParticle *p5=nullptr, TAbsFitParticle *p6=nullptr, TAbsFitParticle *p7=nullptr, TAbsFitParticle *p8=nullptr, TAbsFitParticle *p9=nullptr) |
void | addUnmeasParticle (TAbsFitParticle *particle) |
void | addUnmeasParticles (TAbsFitParticle *p1, TAbsFitParticle *p2=nullptr, TAbsFitParticle *p3=nullptr, TAbsFitParticle *p4=nullptr, TAbsFitParticle *p5=nullptr, TAbsFitParticle *p6=nullptr, TAbsFitParticle *p7=nullptr, TAbsFitParticle *p8=nullptr, TAbsFitParticle *p9=nullptr) |
Int_t | fit () |
const TLorentzVector * | get4Vec (Int_t index) |
const TMatrixD * | getCovMatrix () |
const TMatrixD * | getCovMatrixFit () |
Double_t | getF () |
Double_t | getMaxDeltaS () |
Double_t | getMaxF () |
Int_t | getMaxNumberIter () |
const TAbsFitParticle * | getMeasParticle (Int_t index) |
Int_t | getNbIter () |
Int_t | getNDF () |
Int_t | getNParA () |
Int_t | getNParB () |
Double_t | getS () |
Int_t | getStatus () |
const TAbsFitParticle * | getUnmeasParticle (Int_t index) |
Int_t | getVerbosity () |
Int_t | nbConstraints () |
Int_t | nbMeasParticles () |
Int_t | nbUnmeasParticles () |
void | print () |
void | reset () |
void | resetStatus () |
void | setCovMatrix (TMatrixD &V) |
void | setMaxDeltaS (Double_t maxDeltaS) |
void | setMaxF (Double_t maxF) |
void | setMaxNbIter (Int_t maxNbIter) |
void | setVerbosity (Int_t verbosity=1) |
TKinFitter () | |
TKinFitter (const TString &name, const TString &title) | |
~TKinFitter () override | |
Protected Member Functions | |
Bool_t | applyDeltaA () |
Bool_t | applyDeltaY () |
void | applyVFit () |
Bool_t | calcA () |
Bool_t | calcB () |
Bool_t | calcC () |
Bool_t | calcC11 () |
Bool_t | calcC21 () |
Bool_t | calcC22 () |
Bool_t | calcC31 () |
Bool_t | calcC32 () |
Bool_t | calcC33 () |
Bool_t | calcDeltaA () |
Bool_t | calcDeltaY () |
Bool_t | calcLambda () |
Bool_t | calcV () |
Bool_t | calcVA () |
Bool_t | calcVB () |
Bool_t | calcVFit () |
Bool_t | converged (Double_t F, Double_t prevS, Double_t currS) |
void | countMeasParams () |
void | countUnmeasParams () |
TString | getStatusString () |
void | printMatrix (const TMatrixD &matrix, const TString &name="") |
void | resetParams () |
Private Attributes | |
TMatrixD | _A |
TMatrixD | _AT |
TMatrixD | _B |
TMatrixD | _BT |
TMatrixD | _c |
TMatrixD | _C11 |
TMatrixD | _C11T |
TMatrixD | _C21 |
TMatrixD | _C21T |
TMatrixD | _C22 |
TMatrixD | _C22T |
TMatrixD | _C31 |
TMatrixD | _C31T |
TMatrixD | _C32 |
TMatrixD | _C32T |
TMatrixD | _C33 |
TMatrixD | _C33T |
std::vector< TAbsFitConstraint * > | _constraints |
TMatrixD | _deltaA |
TMatrixD | _deltaAstar |
TMatrixD | _deltaY |
TMatrixD | _deltaYstar |
TMatrixD | _lambda |
TMatrixD | _lambdaT |
TMatrixD | _lambdaVFit |
Double_t | _maxDeltaS |
Double_t | _maxF |
Int_t | _maxNbIter |
std::vector< TAbsFitParticle * > | _measParticles |
Int_t | _nbIter |
Int_t | _nParA |
Int_t | _nParB |
Int_t | _status |
std::vector< TAbsFitParticle * > | _unmeasParticles |
TMatrixD | _V |
TMatrixD | _VA |
TMatrixD | _VAinv |
TMatrixD | _VB |
TMatrixD | _VBinv |
Int_t | _verbosity |
TMatrixD | _Vinv |
TMatrixD | _yaVFit |
Definition at line 13 of file TKinFitter.h.
TKinFitter::TKinFitter | ( | ) |
Definition at line 19 of file TKinFitter.cc.
References reset().
TKinFitter::TKinFitter | ( | const TString & | name, |
const TString & | title | ||
) |
Definition at line 58 of file TKinFitter.cc.
References reset().
|
override |
Definition at line 171 of file TKinFitter.cc.
void TKinFitter::addConstraint | ( | TAbsFitConstraint * | constraint | ) |
Definition at line 292 of file TKinFitter.cc.
References _constraints, HLT_2024v13_cff::constraint, countMeasParams(), and resetStatus().
Referenced by TSLToyGen::doToyExperiments(), and CandMassKinFitter::set().
void TKinFitter::addMeasParticle | ( | TAbsFitParticle * | particle | ) |
Definition at line 194 of file TKinFitter.cc.
References _measParticles, countMeasParams(), and resetStatus().
Referenced by TSLToyGen::doToyExperiments(), and CandMassKinFitter::set().
void TKinFitter::addMeasParticles | ( | TAbsFitParticle * | p1, |
TAbsFitParticle * | p2 = nullptr , |
||
TAbsFitParticle * | p3 = nullptr , |
||
TAbsFitParticle * | p4 = nullptr , |
||
TAbsFitParticle * | p5 = nullptr , |
||
TAbsFitParticle * | p6 = nullptr , |
||
TAbsFitParticle * | p7 = nullptr , |
||
TAbsFitParticle * | p8 = nullptr , |
||
TAbsFitParticle * | p9 = nullptr |
||
) |
Definition at line 208 of file TKinFitter.cc.
References _measParticles, countMeasParams(), LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, and resetStatus().
void TKinFitter::addUnmeasParticle | ( | TAbsFitParticle * | particle | ) |
Definition at line 243 of file TKinFitter.cc.
References _unmeasParticles, countUnmeasParams(), and resetStatus().
Referenced by TSLToyGen::doToyExperiments().
void TKinFitter::addUnmeasParticles | ( | TAbsFitParticle * | p1, |
TAbsFitParticle * | p2 = nullptr , |
||
TAbsFitParticle * | p3 = nullptr , |
||
TAbsFitParticle * | p4 = nullptr , |
||
TAbsFitParticle * | p5 = nullptr , |
||
TAbsFitParticle * | p6 = nullptr , |
||
TAbsFitParticle * | p7 = nullptr , |
||
TAbsFitParticle * | p8 = nullptr , |
||
TAbsFitParticle * | p9 = nullptr |
||
) |
Definition at line 257 of file TKinFitter.cc.
References _unmeasParticles, countUnmeasParams(), LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, and resetStatus().
|
protected |
Definition at line 1005 of file TKinFitter.cc.
References _deltaA, _unmeasParticles, TAbsFitParticle::applycorr(), TAbsFitParticle::getNPar(), and submitPVValidationJobs::params.
Referenced by fit().
|
protected |
Definition at line 1023 of file TKinFitter.cc.
References _constraints, _deltaY, _measParticles, TAbsFitParticle::applycorr(), HLT_2024v13_cff::constraint, TAbsFitParticle::getNPar(), and submitPVValidationJobs::params.
Referenced by fit().
|
protected |
Definition at line 959 of file TKinFitter.cc.
References _constraints, _measParticles, _unmeasParticles, _yaVFit, DummyCfis::c, HLT_2024v13_cff::constraint, TAbsFitParticle::getNPar(), alignCSCRings::r, and TAbsFitParticle::setCovMatrixFit().
Referenced by fit().
|
protected |
Definition at line 521 of file TKinFitter.cc.
References _A, _AT, _constraints, _nParA, _unmeasParticles, TAbsFitParticle::getDerivative(), and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 556 of file TKinFitter.cc.
References _B, _BT, _constraints, _measParticles, _nParB, _verbosity, HLT_2024v13_cff::constraint, TAbsFitParticle::getDerivative(), JetComb::kMult, and printMatrix().
Referenced by fit().
|
protected |
Definition at line 781 of file TKinFitter.cc.
References _A, _B, _c, _constraints, _measParticles, _nParA, _nParB, _unmeasParticles, _verbosity, a, simBeamSpotPI::alpha, HLT_2024v13_cff::constraint, TAbsFitParticle::getParCurr(), TAbsFitParticle::getParIni(), JetComb::kMult, printMatrix(), and y.
Referenced by fit().
|
protected |
Definition at line 658 of file TKinFitter.cc.
References _A, _AT, _B, _BT, _C11, _C11T, _nParA, _V, _VAinv, _VB, JetComb::kMult, and callgraph::m2.
Referenced by fit().
|
protected |
Definition at line 687 of file TKinFitter.cc.
References _AT, _B, _C21, _C21T, _V, _VAinv, _VB, and JetComb::kMult.
Referenced by fit().
|
protected |
|
protected |
Definition at line 718 of file TKinFitter.cc.
References _A, _AT, _B, _C31, _C31T, _nParA, _V, _VAinv, _VB, JetComb::kMult, and callgraph::m2.
Referenced by fit().
|
protected |
Definition at line 744 of file TKinFitter.cc.
References _A, _C32, _C32T, _VAinv, _VB, and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 759 of file TKinFitter.cc.
References _A, _AT, _C33, _C33T, _nParA, _VAinv, _VB, and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 865 of file TKinFitter.cc.
References _c, _C32T, _deltaA, _deltaAstar, _nbIter, and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 883 of file TKinFitter.cc.
References _c, _C31T, _deltaY, _deltaYstar, _nbIter, and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 901 of file TKinFitter.cc.
References _c, _C33, _lambda, _lambdaT, and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 474 of file TKinFitter.cc.
References _constraints, _measParticles, _nParB, _status, _V, _Vinv, HLT_2024v13_cff::constraint, MillePedeFileConverter_cfg::e, TAbsFitParticle::getCovMatrix(), and TAbsFitParticle::getNPar().
Referenced by fit().
|
protected |
Definition at line 638 of file TKinFitter.cc.
References _A, _AT, _status, _VA, _VAinv, _VB, MillePedeFileConverter_cfg::e, and JetComb::kMult.
Referenced by fit().
|
protected |
Definition at line 618 of file TKinFitter.cc.
References _B, _BT, _status, _V, _VB, _VBinv, MillePedeFileConverter_cfg::e, and JetComb::kMult.
Referenced by fit().
|
protected |
|
protected |
Definition at line 1081 of file TKinFitter.cc.
References _maxDeltaS, _maxF, and F().
Referenced by fit().
|
protected |
Definition at line 173 of file TKinFitter.cc.
References _constraints, _measParticles, and _nParB.
Referenced by addConstraint(), addMeasParticle(), and addMeasParticles().
|
protected |
Definition at line 185 of file TKinFitter.cc.
References _nParA, and _unmeasParticles.
Referenced by addUnmeasParticle(), and addUnmeasParticles().
Int_t TKinFitter::fit | ( | ) |
Definition at line 318 of file TKinFitter.cc.
References _A, _B, _c, _C32T, _deltaA, _deltaAstar, _deltaY, _deltaYstar, _lambda, _lambdaT, _maxNbIter, _nbIter, _nParA, _status, _V, _VB, _VBinv, _verbosity, applyDeltaA(), applyDeltaY(), applyVFit(), calcA(), calcB(), calcC(), calcC11(), calcC21(), calcC22(), calcC31(), calcC32(), calcC33(), calcDeltaA(), calcDeltaY(), calcLambda(), calcV(), calcVA(), calcVB(), calcVFit(), converged(), getF(), getS(), print(), printMatrix(), resetParams(), and resetStatus().
Referenced by TSLToyGen::doToyExperiments(), trackingPlots.Iteration::modules(), and CandMassKinFitter::set().
|
inline |
Definition at line 66 of file TKinFitter.h.
References _measParticles.
|
inline |
|
inline |
Double_t TKinFitter::getF | ( | ) |
Definition at line 1054 of file TKinFitter.cc.
References _constraints, and F().
Referenced by TSLToyGen::doToyExperiments(), fit(), and print().
|
inline |
|
inline |
Definition at line 55 of file TKinFitter.h.
References _maxF.
Referenced by TSLToyGen::doToyExperiments().
|
inline |
|
inline |
Definition at line 65 of file TKinFitter.h.
References _measParticles.
|
inline |
Definition at line 50 of file TKinFitter.h.
References _nbIter.
Referenced by TSLToyGen::doToyExperiments().
|
inline |
Definition at line 45 of file TKinFitter.h.
References _constraints, and _nParA.
Referenced by TSLToyGen::doToyExperiments(), print(), and CandMassKinFitter::set().
|
inline |
|
inline |
Double_t TKinFitter::getS | ( | ) |
Definition at line 1066 of file TKinFitter.cc.
References _deltaY, _nbIter, _Vinv, and JetComb::kMult.
Referenced by TSLToyGen::doToyExperiments(), fit(), print(), and CandMassKinFitter::set().
|
inline |
Definition at line 51 of file TKinFitter.h.
References _status.
Referenced by TSLToyGen::doToyExperiments().
|
protected |
|
inline |
Definition at line 69 of file TKinFitter.h.
References _unmeasParticles.
|
inline |
|
inline |
|
inline |
Definition at line 64 of file TKinFitter.h.
References _measParticles.
|
inline |
Definition at line 68 of file TKinFitter.h.
References _unmeasParticles.
void TKinFitter::print | ( | void | ) |
Definition at line 1125 of file TKinFitter.cc.
References _constraints, _measParticles, _nbIter, _nParB, _status, _unmeasParticles, _yaVFit, TAbsFitParticle::getCovMatrix(), getF(), TAbsFitParticle::getInfoString(), getNDF(), TAbsFitParticle::getNPar(), TAbsFitParticle::getParCurr(), getS(), getStatusString(), and dqm-mbProfile::log.
Referenced by fit().
|
protected |
Definition at line 1205 of file TKinFitter.cc.
References mps_fire::i, dqm-mbProfile::log, makeMuonMisalignmentScenario::matrix, METSkim_cff::Min, and Skims_PA_cff::name.
Referenced by calcB(), calcC(), and fit().
void TKinFitter::reset | ( | void | ) |
Definition at line 97 of file TKinFitter.cc.
References _A, _AT, _B, _BT, _c, _C11, _C11T, _C21, _C21T, _C22, _C22T, _C31, _C31T, _C32, _C32T, _C33, _C33T, _constraints, _deltaA, _deltaAstar, _deltaY, _deltaYstar, _lambda, _lambdaT, _lambdaVFit, _maxDeltaS, _maxF, _maxNbIter, _measParticles, _nbIter, _nParA, _nParB, _status, _unmeasParticles, _V, _VA, _VAinv, _VB, _VBinv, _verbosity, _Vinv, _yaVFit, and MillePedeFileConverter_cfg::e.
Referenced by TKinFitter().
|
protected |
Definition at line 154 of file TKinFitter.cc.
References _constraints, _measParticles, _unmeasParticles, HLT_2024v13_cff::constraint, and TAbsFitParticle::reset().
Referenced by fit().
void TKinFitter::resetStatus | ( | ) |
Definition at line 147 of file TKinFitter.cc.
References _nbIter, and _status.
Referenced by addConstraint(), addMeasParticle(), addMeasParticles(), addUnmeasParticle(), addUnmeasParticles(), and fit().
void TKinFitter::setCovMatrix | ( | TMatrixD & | V | ) |
Definition at line 462 of file TKinFitter.cc.
References _nParB, _V, and cms::cuda::V.
|
inline |
Definition at line 52 of file TKinFitter.h.
References _maxDeltaS, and StEvtSolProducer_cfi::maxDeltaS.
Referenced by TSLToyGen::doToyExperiments(), and CandMassKinFitter::set().
|
inline |
Definition at line 54 of file TKinFitter.h.
References _maxF, and StEvtSolProducer_cfi::maxF.
Referenced by TSLToyGen::doToyExperiments(), and CandMassKinFitter::set().
|
inline |
Definition at line 48 of file TKinFitter.h.
References _maxNbIter.
Referenced by TSLToyGen::doToyExperiments(), and CandMassKinFitter::set().
void TKinFitter::setVerbosity | ( | Int_t | verbosity = 1 | ) |
Definition at line 304 of file TKinFitter.cc.
References _verbosity, and verbosity.
Referenced by TSLToyGen::doToyExperiments(), and CandMassKinFitter::set().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 124 of file TKinFitter.h.
Referenced by calcC(), calcDeltaA(), calcDeltaY(), calcLambda(), fit(), and reset().
|
private |
Definition at line 126 of file TKinFitter.h.
Referenced by calcC11(), calcVFit(), and reset().
|
private |
Definition at line 127 of file TKinFitter.h.
|
private |
Definition at line 128 of file TKinFitter.h.
Referenced by calcC21(), calcVFit(), and reset().
|
private |
Definition at line 129 of file TKinFitter.h.
Referenced by calcC21(), calcVFit(), and reset().
|
private |
Definition at line 130 of file TKinFitter.h.
Referenced by calcC22(), calcVFit(), and reset().
|
private |
Definition at line 131 of file TKinFitter.h.
|
private |
Definition at line 132 of file TKinFitter.h.
|
private |
Definition at line 133 of file TKinFitter.h.
Referenced by calcC31(), calcDeltaY(), and reset().
|
private |
Definition at line 134 of file TKinFitter.h.
|
private |
Definition at line 135 of file TKinFitter.h.
Referenced by calcC32(), calcDeltaA(), fit(), and reset().
|
private |
Definition at line 136 of file TKinFitter.h.
Referenced by calcC33(), calcLambda(), calcVFit(), and reset().
|
private |
Definition at line 137 of file TKinFitter.h.
|
private |
Definition at line 152 of file TKinFitter.h.
Referenced by addConstraint(), applyDeltaY(), applyVFit(), calcA(), calcB(), calcC(), calcV(), countMeasParams(), getF(), getNDF(), nbConstraints(), print(), reset(), and resetParams().
|
private |
Definition at line 139 of file TKinFitter.h.
Referenced by applyDeltaA(), calcDeltaA(), fit(), and reset().
|
private |
Definition at line 141 of file TKinFitter.h.
Referenced by calcDeltaA(), fit(), and reset().
|
private |
Definition at line 140 of file TKinFitter.h.
Referenced by applyDeltaY(), calcDeltaY(), fit(), getS(), and reset().
|
private |
Definition at line 142 of file TKinFitter.h.
Referenced by calcDeltaY(), fit(), and reset().
|
private |
Definition at line 143 of file TKinFitter.h.
Referenced by calcLambda(), fit(), and reset().
|
private |
Definition at line 144 of file TKinFitter.h.
Referenced by calcLambda(), fit(), and reset().
|
private |
Definition at line 146 of file TKinFitter.h.
Referenced by calcVFit(), and reset().
|
private |
Definition at line 110 of file TKinFitter.h.
Referenced by converged(), getMaxDeltaS(), reset(), and setMaxDeltaS().
|
private |
Definition at line 111 of file TKinFitter.h.
Referenced by converged(), getMaxF(), reset(), and setMaxF().
|
private |
Definition at line 109 of file TKinFitter.h.
Referenced by fit(), getMaxNumberIter(), reset(), and setMaxNbIter().
|
private |
Definition at line 153 of file TKinFitter.h.
Referenced by addMeasParticle(), addMeasParticles(), applyDeltaY(), applyVFit(), calcB(), calcC(), calcV(), countMeasParams(), get4Vec(), getMeasParticle(), nbMeasParticles(), print(), reset(), and resetParams().
|
private |
Definition at line 157 of file TKinFitter.h.
Referenced by calcDeltaA(), calcDeltaY(), fit(), getNbIter(), getS(), print(), reset(), and resetStatus().
|
private |
Definition at line 149 of file TKinFitter.h.
Referenced by calcA(), calcC(), calcC11(), calcC31(), calcC33(), calcVFit(), countUnmeasParams(), fit(), getNDF(), getNParA(), and reset().
|
private |
Definition at line 150 of file TKinFitter.h.
Referenced by calcB(), calcC(), calcV(), countMeasParams(), getNParB(), print(), reset(), and setCovMatrix().
|
private |
Definition at line 156 of file TKinFitter.h.
Referenced by calcV(), calcVA(), calcVB(), fit(), getStatus(), getStatusString(), print(), reset(), and resetStatus().
|
private |
Definition at line 154 of file TKinFitter.h.
Referenced by addUnmeasParticle(), addUnmeasParticles(), applyDeltaA(), applyVFit(), calcA(), calcC(), countUnmeasParams(), getUnmeasParticle(), nbUnmeasParticles(), print(), reset(), and resetParams().
|
private |
Definition at line 118 of file TKinFitter.h.
Referenced by calcC11(), calcC21(), calcC31(), calcV(), calcVB(), fit(), getCovMatrix(), reset(), and setCovMatrix().
|
private |
Definition at line 122 of file TKinFitter.h.
|
private |
|
private |
|
private |
Definition at line 121 of file TKinFitter.h.
|
private |
Definition at line 112 of file TKinFitter.h.
Referenced by calcB(), calcC(), fit(), getVerbosity(), reset(), and setVerbosity().
|
private |
Definition at line 119 of file TKinFitter.h.
|
private |
Definition at line 147 of file TKinFitter.h.
Referenced by applyVFit(), calcVFit(), getCovMatrixFit(), print(), and reset().