#include <KFbase.h>
Public Types | |
enum | MEAS_IDS { PHI, Z } |
enum | PAR_IDS { INV2R, PHI0, T, Z0, D0 } |
enum | PAR_IDS_VAR { QOVERPT } |
Public Member Functions | |
L1fittedTrack | fit (const L1track3D &l1track3D) override |
KFbase (const KFbase &kf)=delete | |
KFbase (const Settings *settings, const uint nHelixPar, const std::string &fitterName="", const uint nMeas=2) | |
KFbase (KFbase &&kf)=delete | |
KFbase & | operator= (const KFbase &kf)=delete |
KFbase & | operator= (KFbase &&kf)=delete |
~KFbase () override | |
Public Member Functions inherited from tmtt::TrackFitGeneric | |
TrackFitGeneric (const Settings *settings, const std::string &fitterName="") | |
virtual | ~TrackFitGeneric ()=default |
Protected Member Functions | |
virtual void | adjustChi2 (const KalmanState *state, const TMatrixD &covRinv, const TVectorD &delta, double &chi2rphi, double &chi2rz) const |
void | adjustState (const TMatrixD &K, const TMatrixD &pxcov, const TVectorD &x, const TMatrixD &h, const TVectorD &delta, TVectorD &new_x, TMatrixD &new_xcov) const |
float | approxB (float z, float r) const |
const KalmanState * | doKF (const L1track3D &l1track3D, const std::vector< Stub * > &stubs, const TP *tpa) |
TMatrixD | getKalmanGainMatrix (const TMatrixD &h, const TMatrixD &pxcov, const TMatrixD &covRinv) const |
virtual bool | isGoodState (const KalmanState &state) const =0 |
virtual bool | isHLS () |
virtual bool | kalmanAmbiguousLayer (unsigned int iEtaReg, unsigned int kfLayer) |
std::set< unsigned > | kalmanDeadLayers (bool &remove2PSCut) const |
virtual unsigned int | kalmanLayer (unsigned int iEtaReg, unsigned int layerIDreduced, bool barrel, float r, float z) const |
virtual const KalmanState * | kalmanUpdate (unsigned nSkipped, unsigned layer, Stub *stub, const KalmanState *state, const TP *tp) |
virtual TMatrixD | matrixF (const Stub *stub=nullptr, const KalmanState *state=nullptr) const =0 |
virtual TMatrixD | matrixH (const Stub *stub) const =0 |
TMatrixD | matrixHCHt (const TMatrixD &h, const TMatrixD &c) const |
TMatrixD | matrixRinv (const TMatrixD &matH, const TMatrixD &matCref, const TMatrixD &matV) const |
virtual TMatrixD | matrixV (const Stub *stub, const KalmanState *state) const =0 |
const KalmanState * | mkState (const L1track3D &candidate, unsigned nSkipped, unsigned layer, const KalmanState *last_state, const TVectorD &x, const TMatrixD &pxx, const TMatrixD &K, const TMatrixD &dcov, Stub *stub, double chi2rphi, double chi2rz) |
void | printStub (const Stub *stub) const |
void | printStubLayers (const std::vector< Stub * > &stubs, unsigned int iEtaReg) const |
void | printStubs (const std::vector< Stub * > &stubs) const |
void | printTP (const TP *tp) const |
void | resetStates () |
virtual TVectorD | residual (const Stub *stub, const TVectorD &x, double candQoverPt) const |
double | sectorPhi () const |
virtual TMatrixD | seedC (const L1track3D &l1track3D) const =0 |
virtual TVectorD | seedX (const L1track3D &l1track3D) const =0 |
virtual TVectorD | trackParams (const KalmanState *state) const =0 |
virtual TVectorD | trackParams_BeamConstr (const KalmanState *state, double &chi2rphi_bcon) const =0 |
virtual TVectorD | vectorM (const Stub *stub) const =0 |
Protected Attributes | |
unsigned int | iEtaReg_ |
unsigned int | iPhiSec_ |
std::vector< std::unique_ptr< const KalmanState > > | listAllStates_ |
unsigned | nHelixPar_ |
unsigned | nMeas_ |
unsigned | numEtaRegions_ |
unsigned int | numUpdateCalls_ |
const TP * | tpa_ |
Protected Attributes inherited from tmtt::TrackFitGeneric | |
const std::string | fitterName_ |
const Settings * | settings_ |
tmtt::KFbase::KFbase | ( | const Settings * | settings, |
const uint | nHelixPar, | ||
const std::string & | fitterName = "" , |
||
const uint | nMeas = 2 |
||
) |
|
inlineoverride |
|
delete |
|
delete |
|
protectedvirtual |
Definition at line 659 of file KFbase.cc.
References dumpMFGeometry_cfg::delta, tmtt::Settings::kalmanDebugLevel(), PHI, tmtt::TrackFitGeneric::settings_, and Z.
Referenced by kalmanUpdate().
|
protected |
Definition at line 644 of file KFbase.cc.
References dumpMFGeometry_cfg::delta, nHelixPar_, and createJobs::tmp.
Referenced by kalmanUpdate().
|
protected |
Definition at line 880 of file KFbase.cc.
References funct::abs(), tmtt::Settings::bApprox_gradient(), tmtt::Settings::bApprox_intercept(), alignCSCRings::r, and tmtt::TrackFitGeneric::settings_.
Referenced by tmtt::KFParamsComb::matrixV().
|
protected |
Definition at line 166 of file KFbase.cc.
References a, b, electrons_cff::bool, tmtt::L1track3D::cellLocationHT(), D0, TauDecayModes::dec, alignBH_cfg::fixed, tmtt::KalmanState::hitPattern(), mps_fire::i, tmtt::L1track3D::iEtaReg(), tmtt::L1track3D::iPhiSec(), isGoodState(), align_cfg::iteration, kalmanAmbiguousLayer(), kalmanDeadLayers(), tmtt::Settings::kalmanDebugLevel(), kalmanLayer(), tmtt::Settings::kalmanMaxNumStubs(), tmtt::Settings::kalmanMaxSkipLayersEasy(), tmtt::Settings::kalmanMaxSkipLayersHard(), tmtt::Settings::kalmanMaxStubsEasy(), tmtt::Settings::kalmanMaxStubsPerLayer(), tmtt::Settings::kalmanMinNumStubs(), tmtt::Settings::kalmanRemove2PScut(), kalmanUpdate(), SiStripPI::max, HLT_FULL_cff::maxIterations, mkState(), tmtt::KalmanState::nextLayer(), nHelixPar_, tmtt::KalmanState::nSkippedLayers(), tmtt::KalmanState::nStubLayers(), tmtt::L1track3D::numStubs(), AlCaHLTBitMon_ParallelJobs::p, PHI0, QOVERPT, seedC(), seedX(), tmtt::TrackFitGeneric::settings_, findQualityFiles::size, T, runonSM::text, trackParams(), and Z0.
Referenced by fit().
|
overridevirtual |
Reimplemented from tmtt::TrackFitGeneric.
Definition at line 38 of file KFbase.cc.
References a, b, electrons_cff::bool, tmtt::L1track3D::cellLocationHT(), D0, d0, tmtt::L1track3D::d0(), doKF(), tmtt::Settings::enableDigitize(), alignBH_cfg::fixed, spr::goodTrack(), tmtt::Settings::hybrid(), tmtt::L1track3D::iEtaReg(), iEtaReg_, tmtt::L1track3D::iPhiSec(), iPhiSec_, tmtt::Settings::kalmanAddBeamConstr(), tmtt::Settings::kalmanDebugLevel(), kalmanLayer(), tmtt::L1track3D::matchedTP(), nHelixPar_, tmtt::L1track3D::numStubs(), numUpdateCalls_, PHI0, tmtt::L1track3D::phi0(), printStubLayers(), printStubs(), printTP(), tmtt::L1track3D::pt(), QOVERPT, tmtt::L1track3D::qOverPt(), resetStates(), tmtt::L1fittedTrack::setInfoKF(), tmtt::TrackFitGeneric::settings_, tmtt::L1track3D::stubs(), T, tmtt::L1track3D::tanLambda(), runonSM::text, tpa_, trackParams(), trackParams_BeamConstr(), Z0, and tmtt::L1track3D::z0().
Referenced by trackingPlots.Iteration::modules().
|
protected |
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by doKF().
|
inlineprotectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 825 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, iEtaReg_, iPhiSec_, kalmanLayer(), tmtt::Settings::killRecover(), tmtt::Settings::killScenario(), tmtt::StubKiller::layer1, tmtt::StubKiller::layer1disk1, tmtt::StubKiller::layer1layer2, tmtt::StubKiller::layer5, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, and tmtt::TrackFitGeneric::settings_.
Referenced by doKF().
|
protectedvirtual |
Definition at line 682 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, Exception, HLT_FULL_cff::nEta, and numEtaRegions_.
Referenced by doKF(), fit(), kalmanDeadLayers(), and printStubLayers().
|
protectedvirtual |
Definition at line 408 of file KFbase.cc.
References adjustChi2(), adjustState(), tmtt::Stub::barrel(), dumpMFGeometry_cfg::delta, getKalmanGainMatrix(), mps_fire::i, tmtt::Settings::kalmanDebugLevel(), matrixF(), matrixH(), matrixRinv(), matrixV(), mkState(), nHelixPar_, numUpdateCalls_, printStub(), residual(), and tmtt::TrackFitGeneric::settings_.
Referenced by doKF().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by kalmanUpdate().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by kalmanUpdate(), and residual().
|
protected |
|
protected |
Definition at line 556 of file KFbase.cc.
References tmtt::Settings::kalmanDebugLevel(), matrixHCHt(), nHelixPar_, and tmtt::TrackFitGeneric::settings_.
Referenced by kalmanUpdate().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by kalmanUpdate().
|
protected |
Definition at line 528 of file KFbase.cc.
References listAllStates_, eostools::move(), and tmtt::TrackFitGeneric::settings_.
Referenced by doKF(), and kalmanUpdate().
|
protected |
Definition at line 942 of file KFbase.cc.
References tmtt::Stub::assocTPs(), alignBH_cfg::fixed, tmtt::Stub::index(), tmtt::Stub::layerId(), tmtt::Stub::phi(), tmtt::Stub::r(), tmtt::Stub::sigmaPar(), tmtt::Stub::sigmaPerp(), runonSM::text, cmsswSequenceInfo::tp, and tmtt::Stub::z().
Referenced by kalmanUpdate(), and printStubs().
|
protected |
Definition at line 914 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, alignBH_cfg::fixed, mps_fire::i, dqmiolumiharvest::j, kalmanLayer(), alignCSCRings::r, and runonSM::text.
Referenced by fit().
|
protected |
|
protected |
Definition at line 886 of file KFbase.cc.
References D0, alignBH_cfg::fixed, mps_fire::i, tmtt::Settings::invPtToInvR(), PHI0, QOVERPT, tmtt::TrackFitGeneric::settings_, T, runonSM::text, cmsswSequenceInfo::tp, and Z0.
Referenced by fit().
|
protected |
|
protectedvirtual |
Definition at line 588 of file KFbase.cc.
References tmtt::Stub::alpha(), tmtt::Stub::barrel(), alignCSCRings::corr, pfMETCorrectionType0_cfi::correction, dumpMFGeometry_cfg::delta, reco::deltaPhi(), tmtt::Settings::invPtToInvR(), tmtt::Settings::kalmanHOalpha(), tmtt::Settings::kalmanHOfw(), tmtt::Settings::kalmanHOhelixExp(), tmtt::Settings::kalmanHOprojZcorr(), matrixH(), funct::pow(), tmtt::Stub::psModule(), tmtt::Stub::r(), tmtt::TrackFitGeneric::settings_, T, vectorM(), tmtt::Stub::z(), Z0, and HLTMuonOfflineAnalyzer_cfi::z0.
Referenced by kalmanUpdate().
|
inlineprotected |
Definition at line 124 of file KFbase.h.
References dqmMemoryStats::float, iPhiSec_, M_PI, tmtt::Settings::numPhiNonants(), tmtt::Settings::numPhiSectors(), and tmtt::TrackFitGeneric::settings_.
Referenced by tmtt::KFParamsComb::seedX(), tmtt::KFParamsComb::trackParams(), tmtt::KFParamsComb::trackParams_BeamConstr(), and tmtt::KFParamsComb::vectorM().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by doKF().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by doKF().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by fit().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by residual().
|
protected |
Definition at line 158 of file KFbase.h.
Referenced by fit(), and kalmanDeadLayers().
|
protected |
Definition at line 157 of file KFbase.h.
Referenced by fit(), kalmanDeadLayers(), and sectorPhi().
|
protected |
Definition at line 163 of file KFbase.h.
Referenced by mkState(), and resetStates().
|
protected |
Definition at line 153 of file KFbase.h.
Referenced by adjustState(), doKF(), fit(), tmtt::KFParamsComb::isGoodState(), kalmanUpdate(), tmtt::KFParamsComb::matrixF(), tmtt::KFParamsComb::matrixH(), matrixRinv(), tmtt::KFParamsComb::seedC(), tmtt::KFParamsComb::seedX(), tmtt::KFParamsComb::trackParams(), and tmtt::KFParamsComb::trackParams_BeamConstr().
|
protected |
Definition at line 155 of file KFbase.h.
Referenced by kalmanLayer().
|
protected |
Definition at line 160 of file KFbase.h.
Referenced by fit(), and kalmanUpdate().
|
protected |
Definition at line 165 of file KFbase.h.
Referenced by fit(), and tmtt::KFParamsComb::isGoodState().