#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 |
Static Public Attributes | |
static constexpr unsigned int | invalidKFlayer_ = nKFlayer_ |
static constexpr std::pair< unsigned, unsigned > | layerMap_ [nEta_/2][nGPlayer_+1] |
static const unsigned int | nEta_ = 16 |
static const unsigned int | nGPlayer_ = 7 |
static const unsigned int | nKFlayer_ = 7 |
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 656 of file KFbase.cc.
References dumpMFGeometry_cfg::delta, tmtt::Settings::kalmanDebugLevel(), PHI, tmtt::TrackFitGeneric::settings_, and Z.
Referenced by kalmanUpdate().
|
protected |
Definition at line 641 of file KFbase.cc.
References dumpMFGeometry_cfg::delta, nHelixPar_, and createJobs::tmp.
Referenced by kalmanUpdate().
|
protected |
Definition at line 832 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, nano_mu_local_reco_cff::bool, tmtt::L1track3D::cellLocationHT(), D0, TauDecayModes::dec, alignBH_cfg::fixed, tmtt::KalmanState::hitPattern(), mps_fire::i, tmtt::L1track3D::iEtaReg(), invalidKFlayer_, 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_2023v12_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_, jetUpdater_cfi::sort, T, submitPVValidationJobs::text, trackParams(), and Z0.
Referenced by fit().
|
overridevirtual |
Reimplemented from tmtt::TrackFitGeneric.
Definition at line 38 of file KFbase.cc.
References a, b, nano_mu_local_reco_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::kalmanChi2RphiScale(), tmtt::Settings::kalmanDebugLevel(), kalmanLayer(), tmtt::Settings::kfLayerVsChiSq5(), 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_, jetUpdater_cfi::sort, tmtt::L1track3D::stubs(), T, tmtt::L1track3D::tanLambda(), submitPVValidationJobs::text, tpa_, trackParams(), trackParams_BeamConstr(), Z0, and tmtt::L1track3D::z0().
Referenced by trackingPlots.Iteration::modules().
|
protected |
Definition at line 569 of file KFbase.cc.
Referenced by kalmanUpdate().
|
protectedpure virtual |
Implemented in tmtt::KFParamsComb.
Referenced by doKF().
|
inlineprotectedvirtual |
|
protectedvirtual |
Definition at line 746 of file KFbase.cc.
References tmtt::Settings::kfUseMaybeLayers(), nEta_, nKFlayer_, numEtaRegions_, and tmtt::TrackFitGeneric::settings_.
Referenced by doKF().
|
protected |
Definition at line 777 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, and tmtt::TrackFitGeneric::settings_.
Referenced by doKF().
|
protectedvirtual |
Definition at line 679 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, Exception, tmtt::Settings::kfUseMaybeLayers(), layerMap_, nEta_, numEtaRegions_, and tmtt::TrackFitGeneric::settings_.
Referenced by doKF(), fit(), kalmanDeadLayers(), and printStubLayers().
|
protectedvirtual |
Definition at line 398 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 |
Definition at line 539 of file KFbase.cc.
Referenced by matrixRinv().
|
protected |
Definition at line 546 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 518 of file KFbase.cc.
References listAllStates_, eostools::move(), and tmtt::TrackFitGeneric::settings_.
Referenced by doKF(), and kalmanUpdate().
|
protected |
Definition at line 894 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(), submitPVValidationJobs::text, cmsswSequenceInfo::tp, and tmtt::Stub::z().
Referenced by kalmanUpdate(), and printStubs().
|
protected |
Definition at line 866 of file KFbase.cc.
References Reference_intrackfit_cff::barrel, alignBH_cfg::fixed, mps_fire::i, dqmiolumiharvest::j, kalmanLayer(), and submitPVValidationJobs::text.
Referenced by fit().
|
protected |
|
protected |
Definition at line 838 of file KFbase.cc.
References D0, alignBH_cfg::fixed, mps_fire::i, tmtt::Settings::invPtToInvR(), PHI0, QOVERPT, tmtt::TrackFitGeneric::settings_, T, submitPVValidationJobs::text, cmsswSequenceInfo::tp, and Z0.
Referenced by fit().
|
protected |
Definition at line 675 of file KFbase.cc.
References listAllStates_.
Referenced by fit(), and ~KFbase().
|
protectedvirtual |
Definition at line 578 of file KFbase.cc.
References tmtt::Stub::alpha(), tmtt::Stub::barrel(), alignCSCRings::corr, pfMETCorrectionType0_cfi::correction, D0, d0, dumpMFGeometry_cfg::delta, reco::deltaPhi(), h, tmtt::Settings::invPtToInvR(), tmtt::Settings::kalmanHOalpha(), tmtt::Settings::kalmanHOfw(), tmtt::Settings::kalmanHOhelixExp(), tmtt::Settings::kalmanHOprojZcorr(), matrixH(), nHelixPar_, conifer::pow(), tmtt::Stub::psModule(), tmtt::Stub::r(), tmtt::TrackFitGeneric::settings_, T, vectorM(), tmtt::Stub::z(), and Z0.
Referenced by kalmanUpdate().
|
inlineprotected |
Definition at line 145 of file KFbase.h.
References nano_mu_digi_cff::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 179 of file KFbase.h.
Referenced by fit(), and kalmanDeadLayers().
|
static |
|
protected |
Definition at line 178 of file KFbase.h.
Referenced by fit(), kalmanDeadLayers(), and sectorPhi().
Definition at line 61 of file KFbase.h.
Referenced by kalmanLayer(), and hph::Setup::Setup().
|
protected |
Definition at line 184 of file KFbase.h.
Referenced by mkState(), and resetStates().
|
static |
Definition at line 52 of file KFbase.h.
Referenced by kalmanAmbiguousLayer(), and kalmanLayer().
|
protected |
Definition at line 174 of file KFbase.h.
Referenced by adjustState(), doKF(), fit(), tmtt::KFParamsComb::isGoodState(), kalmanUpdate(), tmtt::KFParamsComb::matrixF(), tmtt::KFParamsComb::matrixH(), matrixRinv(), residual(), tmtt::KFParamsComb::seedC(), tmtt::KFParamsComb::seedX(), tmtt::KFParamsComb::trackParams(), and tmtt::KFParamsComb::trackParams_BeamConstr().
|
static |
Definition at line 51 of file KFbase.h.
Referenced by kalmanAmbiguousLayer().
|
protected |
Definition at line 176 of file KFbase.h.
Referenced by kalmanAmbiguousLayer(), and kalmanLayer().
|
protected |
Definition at line 181 of file KFbase.h.
Referenced by fit(), and kalmanUpdate().
|
protected |
Definition at line 186 of file KFbase.h.
Referenced by fit(), and tmtt::KFParamsComb::isGoodState().