#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 Settings *settings, const uint nHelixPar, const std::string &fitterName="", const uint nMeas=2) | |
KFbase (const KFbase &kf)=delete | |
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_ |
Enumerator | |
---|---|
INV2R | |
PHI0 | |
T | |
Z0 | |
D0 |
Definition at line 33 of file KFbase.h.
tmtt::KFbase::KFbase | ( | const Settings * | settings, |
const uint | nHelixPar, | ||
const std::string & | fitterName = "" , |
||
const uint | nMeas = 2 |
||
) |
|
inlineoverride |
|
delete |
|
delete |
|
protectedvirtual |
Definition at line 667 of file KFbase.cc.
References tmtt::KalmanState::chi2rphi(), tmtt::KalmanState::chi2rz(), tmtt::Settings::kalmanDebugLevel(), PHI, tmtt::TrackFitGeneric::settings_, and Z.
Referenced by kalmanUpdate().
|
protected |
Definition at line 652 of file KFbase.cc.
References CommonMethods::delta(), nHelixPar_, and createJobs::tmp.
Referenced by kalmanUpdate().
|
protected |
Definition at line 899 of file KFbase.cc.
References funct::abs(), tmtt::Settings::bApprox_gradient(), tmtt::Settings::bApprox_intercept(), and tmtt::TrackFitGeneric::settings_.
Referenced by tmtt::KFParamsComb::matrixV().
|
protected |
Definition at line 174 of file KFbase.cc.
References a, b, tmtt::L1track3D::cellLocationHT(), tmtt::KalmanState::chi2scaled(), D0, TauDecayModes::dec, 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(), phase1PixelTopology::layer, SiStripPI::max, 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, tmtt::L1track3D::cellLocationHT(), tmtt::KalmanState::chi2rphi(), tmtt::KalmanState::chi2rz(), D0, d0, tmtt::L1track3D::d0(), doKF(), tmtt::Settings::enableDigitize(), spr::goodTrack(), tmtt::KalmanState::hitPattern(), tmtt::Settings::hybrid(), tmtt::L1track3D::iEtaReg(), iEtaReg_, tmtt::L1track3D::iPhiSec(), iPhiSec_, tmtt::Settings::kalmanAddBeamConstr(), tmtt::Settings::kalmanChi2RphiScale(), tmtt::Settings::kalmanDebugLevel(), kalmanLayer(), tmtt::Settings::kfLayerVsChiSq5(), tmtt::Stub::layerId(), tmtt::L1track3D::matchedTP(), nHelixPar_, tmtt::KalmanState::nSkippedLayers(), tmtt::KalmanState::nStubLayers(), 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::KalmanState::stubs(), tmtt::L1track3D::stubs(), T, tmtt::L1track3D::tanLambda(), runonSM::text, tpa_, trackParams(), trackParams_BeamConstr(), Z0, and tmtt::L1track3D::z0().
Referenced by trackingPlots.Iteration::modules().
|
protected |
Definition at line 587 of file KFbase.cc.
Referenced by kalmanUpdate().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by doKF().
|
inlineprotectedvirtual |
|
protectedvirtual |
Definition at line 811 of file KFbase.cc.
References tmtt::Settings::kfUseMaybeLayers(), HLT_FULL_cff::nEta, numEtaRegions_, and tmtt::TrackFitGeneric::settings_.
Referenced by doKF().
|
protected |
Definition at line 844 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, iEtaReg_, iPhiSec_, kalmanLayer(), tmtt::Settings::killRecover(), tmtt::Settings::killScenario(), phase1PixelTopology::layer, 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 690 of file KFbase.cc.
References Exception, tmtt::Settings::kfUseMaybeLayers(), HLT_FULL_cff::nEta, numEtaRegions_, and tmtt::TrackFitGeneric::settings_.
Referenced by doKF(), fit(), kalmanDeadLayers(), and printStubLayers().
|
protectedvirtual |
Definition at line 416 of file KFbase.cc.
References adjustChi2(), adjustState(), tmtt::KalmanState::barrel(), tmtt::Stub::barrel(), tmtt::KalmanState::candidate(), CommonMethods::delta(), getKalmanGainMatrix(), mps_fire::i, tmtt::Settings::kalmanDebugLevel(), phase1PixelTopology::layer, tmtt::KalmanState::matrixC(), matrixF(), matrixH(), matrixRinv(), matrixV(), mkState(), nHelixPar_, numUpdateCalls_, printStub(), tmtt::L1track3D::qOverPt(), residual(), tmtt::TrackFitGeneric::settings_, and tmtt::KalmanState::vectorX().
Referenced by doKF().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by kalmanUpdate().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by kalmanUpdate(), and residual().
|
protected |
Definition at line 557 of file KFbase.cc.
Referenced by matrixRinv().
|
protected |
Definition at line 564 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 536 of file KFbase.cc.
References phase1PixelTopology::layer, listAllStates_, eostools::move(), and tmtt::TrackFitGeneric::settings_.
Referenced by doKF(), and kalmanUpdate().
|
protected |
Definition at line 961 of file KFbase.cc.
References tmtt::Stub::assocTPs(), 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 933 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, mps_fire::i, dqmiolumiharvest::j, kalmanLayer(), alignCSCRings::r, and runonSM::text.
Referenced by fit().
|
protected |
|
protected |
Definition at line 905 of file KFbase.cc.
References D0, tmtt::TP::d0(), mps_fire::i, tmtt::TP::index(), tmtt::Settings::invPtToInvR(), PHI0, tmtt::TP::phi0(), QOVERPT, tmtt::TP::qOverPt(), tmtt::TrackFitGeneric::settings_, T, tmtt::TP::tanLambda(), runonSM::text, tmtt::TP::useForAlgEff(), Z0, and tmtt::TP::z0().
Referenced by fit().
|
protected |
Definition at line 686 of file KFbase.cc.
References listAllStates_.
Referenced by fit(), and ~KFbase().
|
protectedvirtual |
Definition at line 596 of file KFbase.cc.
References tmtt::Stub::alpha(), tmtt::Stub::barrel(), alignCSCRings::corr, pixelCPEforGPU::correction(), CommonMethods::delta(), reco::deltaPhi(), h, 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(), and Z0.
Referenced by kalmanUpdate().
|
inlineprotected |
Definition at line 124 of file KFbase.h.
References 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 kalmanAmbiguousLayer(), and 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().