#include <Track.h>
Classes | |
struct | Status |
Public Member Functions | |
int | algoint () const |
TrackAlgorithm | algorithm () const |
bool | canReachRadius (float R) const |
int | charge () const |
float | chi2 () const |
float | d0BeamSpot (const float x_bs, const float y_bs, bool linearize=false) const |
float | emomEta () const |
float | emomPhi () const |
float | epT () const |
const float * | errArray () const |
const SMatrixSym66 & | errors () const |
SMatrixSym66 & | errors_nc () |
bool | getDuplicateValue () const |
int | getEtaRegion () const |
int | getNSeedHits () const |
Status | getStatus () const |
bool | hasNanNSillyValues () const |
bool | hasSillyValues (bool dump, bool fix, const char *pref="") |
float | invpT () const |
bool | isFindable () const |
bool | isNotFindable () const |
int | label () const |
float | maxReachRadius () const |
SVector3 | momentum () const |
float | momEta () const |
float | momPhi () const |
float | p () const |
const SVector6 & | parameters () const |
SVector6 & | parameters_nc () |
const float * | posArray () const |
float | posEta () const |
SVector3 | position () const |
float | posPhi () const |
float | posR () const |
float | posRsq () const |
ProdType | prodType () const |
float | pT () const |
float | px () const |
float | py () const |
float | pz () const |
float | rAtZ (float Z) const |
float | score () const |
void | setAlgoint (int algo) |
void | setAlgorithm (TrackAlgorithm algo) |
void | setCharge (int chg) |
void | setChi2 (float chi2) |
void | setDuplicateValue (bool d) |
void | setEtaRegion (int r) |
void | setLabel (int lbl) |
void | setNotFindable () |
void | setNSeedHits (int n) |
void | setProdType (ProdType ptyp) |
void | setScore (float s) |
void | setState (const TrackState &newState) |
void | setStatus (Status s) |
const TrackState & | state () const |
TrackState & | state_nc () |
float | swimPhiToR (const float x, const float y) const |
float | theta () const |
TrackBase () | |
TrackBase (const TrackState &state, float chi2, int label) | |
TrackBase (int charge, const SVector3 &position, const SVector3 &momentum, const SMatrixSym66 &errors, float chi2) | |
float | x () const |
float | y () const |
float | z () const |
float | zAtR (float R, float *r_reached=nullptr) const |
Static Public Member Functions | |
static const char * | algoint_to_cstr (int algo) |
Protected Attributes | |
float | chi2_ = 0. |
int | label_ = -1 |
short int | lastHitIdx_ = -1 |
short int | nFoundHits_ = 0 |
float | score_ = 0. |
TrackState | state_ |
Status | status_ |
|
strong |
|
strong |
track algorithm; copy from TrackBase.h to keep in standalone builds
Definition at line 286 of file Track.h.
|
inline |
|
inline |
Definition at line 140 of file Track.h.
|
inline |
Definition at line 341 of file Track.h.
References mkfit::TrackBase::Status::algorithm, and status_.
|
static |
Definition at line 331 of file Track.cc.
References algoSize, and names.
Referenced by mkfit::Shell::Compare(), mkfit::Shell::FillByLabelMaps_CkfBase(), mkfit::Shell::PrintIterations(), mkfit::ConfigJson::save_Iterations(), and mkfit::Shell::Status().
|
inline |
Definition at line 342 of file Track.h.
References mkfit::TrackBase::Status::algorithm, and status_.
Referenced by mkfit::Event::select_tracks_iter().
bool mkfit::TrackBase::canReachRadius | ( | float | R | ) | const |
Definition at line 213 of file Track.cc.
References funct::abs(), mkfit::Config::Bfield, charge(), f, Matriplex::hypot(), dqmdumpme::k, pT(), dttmaxenums::R, mkfit::Const::sol, x(), and y().
|
inline |
Definition at line 185 of file Track.h.
References mkfit::TrackState::charge, and state_.
Referenced by mkfit::MkFinder::bkFitInputTracks(), canReachRadius(), mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), mkfit::MkFinder::copy_in(), d0BeamSpot(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHitIdx(), mkfit::MkFitter::inputTracksAndHits(), mkfit::MkFitter::inputTracksForFit(), maxReachRadius(), rAtZ(), mkfit::MkFinder::selectHitIndices(), mkfit::MkFitter::slurpInTracksAndHits(), swimPhiToR(), and zAtR().
|
inline |
Definition at line 186 of file Track.h.
References chi2_.
Referenced by mkfit::TrackCand::addHitIdx(), mkfit::Track::addHitIdx(), mkfit::MkFinder::bkFitOutputTracks(), mkfit::TrackCand::considerHitForOverlap(), mkfit::MkFinder::copy_in(), mkfit::getScoreCand(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHitIdx(), mkfit::MkFitter::inputTracksAndHits(), mkfit::MkFitter::inputTracksForFit(), mkfit::StdSeq::Quality::quality_process(), setChi2(), mkfit::MkFitter::slurpInTracksAndHits(), and mkfit::sortByHitsChi2().
float mkfit::TrackBase::d0BeamSpot | ( | const float | x_bs, |
const float | y_bs, | ||
bool | linearize = false |
||
) | const |
Definition at line 191 of file Track.cc.
References funct::abs(), mkfit::Config::Bfield, charge(), funct::cos(), f, Matriplex::hypot(), dqmdumpme::k, momPhi(), pT(), px(), py(), funct::sin(), mkfit::Const::sol, x(), and y().
Referenced by mkfit::StdSeq::clean_cms_seedtracks_iter().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 147 of file Track.h.
References mkfit::TrackState::errors, and state_.
Referenced by mkfit::MkFinder::copy_in(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHitIdx(), mkfit::MkFitter::inputTracksAndHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), and mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams().
|
inline |
Definition at line 154 of file Track.h.
References mkfit::TrackState::errors, and state_.
Referenced by mkfit::MkFinder::bkFitOutputTracks(), and mkfit::MkFinder::copy_out().
|
inline |
Definition at line 270 of file Track.h.
References mkfit::TrackBase::Status::duplicate, and status_.
Referenced by mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), and mkfit::TrackExtra::setMCTrackIDInfo().
|
inline |
Definition at line 277 of file Track.h.
References mkfit::TrackBase::Status::eta_region, and status_.
Referenced by mkfit::Shell::CheckMkFitLayerPlanVsReferenceHits().
|
inline |
Definition at line 275 of file Track.h.
References mkfit::TrackBase::Status::n_seed_hits, and status_.
Referenced by mkfit::CombCandidate::compactifyHitStorageForBestCand(), and mkfit::TrackCand::exportTrack().
|
inline |
Definition at line 262 of file Track.h.
References status_.
Referenced by mkfit::MkFinder::copy_in().
bool mkfit::TrackBase::hasNanNSillyValues | ( | ) | const |
Definition at line 177 of file Track.cc.
References mkfit::TrackState::errors, mps_fire::i, mkfit::isFinite(), dqmiolumiharvest::j, mkfit::LL, and state_.
bool mkfit::TrackBase::hasSillyValues | ( | bool | dump, |
bool | fix, | ||
const char * | pref = "" |
||
) |
Definition at line 155 of file Track.cc.
References GCP_Ntuples_cfg::dump, mkfit::TrackState::errors, mps_fire::i, mkfit::isFinite(), dqmiolumiharvest::j, label(), mkfit::LL, pT(), and state_.
|
inline |
Definition at line 172 of file Track.h.
References mkfit::TrackState::invpT(), and state_.
Referenced by mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), rAtZ(), and zAtR().
|
inline |
Definition at line 265 of file Track.h.
References mkfit::TrackBase::Status::not_findable, and status_.
Referenced by mkfit::MkFinder::bkFitFitTracks(), and mkfit::MkFinder::selectHitIndices().
|
inline |
Definition at line 266 of file Track.h.
References mkfit::TrackBase::Status::not_findable, and status_.
|
inline |
Definition at line 188 of file Track.h.
References label_.
Referenced by mkfit::MkFinder::bkFitFitTracks(), mkfit::Shell::CheckMkFitLayerPlanVsReferenceHits(), mkfit::MkFinder::copy_in(), mkfit::TrackCand::exportTrack(), hasSillyValues(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHitIdx(), mkfit::MkFitter::inputTracksAndHits(), mkfit::MkFitter::inputTracksForFit(), mkfit::print(), mkfit::StdSeq::Quality::quality_process(), mkfit::MkFinder::selectHitIndices(), mkfit::TrackExtra::setMCTrackIDInfo(), and mkfit::MkFitter::slurpInTracksAndHits().
float mkfit::TrackBase::maxReachRadius | ( | ) | const |
Definition at line 219 of file Track.cc.
References funct::abs(), mkfit::Config::Bfield, charge(), f, Matriplex::hypot(), dqmdumpme::k, pT(), px(), py(), mkfit::Const::sol, x(), and y().
|
inline |
|
inline |
Definition at line 175 of file Track.h.
References mkfit::TrackState::momEta(), and state_.
Referenced by mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), mkfit::StdSeq::Quality::quality_process(), mkfit::MkFinder::selectHitIndices(), and mkfit::sortTracksByEta().
|
inline |
Definition at line 174 of file Track.h.
References mkfit::TrackState::momPhi(), and state_.
Referenced by mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), d0BeamSpot(), mkfit::StdSeq::Quality::quality_process(), mkfit::MkFinder::selectHitIndices(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), mkfit::TrackExtra::setMCTrackIDInfo(), mkfit::sortTracksByPhi(), and swimPhiToR().
|
inline |
Definition at line 173 of file Track.h.
References mkfit::TrackState::p(), and state_.
Referenced by mkfit::Track::getLastFoundHitIdx(), mkfit::Track::getLastFoundHitLyr(), mkfit::Track::getLastFoundHitOnTrack(), and Electron.Electron::ptErr().
|
inline |
Definition at line 146 of file Track.h.
References mkfit::TrackState::parameters, and state_.
Referenced by mkfit::MkFinder::copy_in(), mkfit::MkFinder::findCandidates(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHitIdx(), mkfit::MkFitter::inputTracksAndHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), and mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams().
|
inline |
Definition at line 153 of file Track.h.
References mkfit::TrackState::parameters, and state_.
Referenced by mkfit::MkFinder::bkFitOutputTracks(), and mkfit::MkFinder::copy_out().
|
inline |
|
inline |
Definition at line 166 of file Track.h.
References mkfit::getEta(), mkfit::TrackState::parameters, and state_.
Referenced by mkfit::MkFinder::bkFitFitTracks().
|
inline |
|
inline |
Definition at line 165 of file Track.h.
References mkfit::getPhi(), mkfit::TrackState::parameters, and state_.
Referenced by mkfit::MkFinder::bkFitFitTracks().
|
inline |
Definition at line 163 of file Track.h.
References mkfit::getHypot(), mkfit::TrackState::parameters, and state_.
Referenced by mkfit::MkFinder::selectHitIndices().
|
inline |
|
inline |
Definition at line 272 of file Track.h.
References mkfit::TrackBase::Status::prod_type, and status_.
Referenced by mkfit::MkFinder::bkFitFitTracks(), mkfit::TrackCand::exportTrack(), and mkfit::MkFinder::selectHitIndices().
|
inline |
Definition at line 171 of file Track.h.
References mkfit::TrackState::pT(), and state_.
Referenced by mkfit::MkFinder::bkFitFitTracks(), canReachRadius(), mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), d0BeamSpot(), mkfit::MkBuilder::findTracksStandard(), mkfit::getScoreCand(), hasSillyValues(), maxReachRadius(), mkfit::CandCloner::processSeedRange(), mkfit::StdSeq::Quality::quality_process(), mkfit::MkFinder::selectHitIndices(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), and swimPhiToR().
|
inline |
Definition at line 168 of file Track.h.
References mkfit::TrackState::px(), and state_.
Referenced by d0BeamSpot(), maxReachRadius(), rAtZ(), and zAtR().
|
inline |
Definition at line 169 of file Track.h.
References mkfit::TrackState::py(), and state_.
Referenced by d0BeamSpot(), maxReachRadius(), rAtZ(), and zAtR().
|
inline |
Definition at line 170 of file Track.h.
References mkfit::TrackState::pz(), and state_.
Referenced by zAtR().
float mkfit::TrackBase::rAtZ | ( | float | Z | ) | const |
Definition at line 305 of file Track.cc.
References simBeamSpotPI::alpha, mkfit::Config::Bfield, charge(), funct::cos(), PVValHelper::dz, f, Matriplex::hypot(), invpT(), dqmdumpme::k, px(), py(), funct::sin(), mkfit::Const::sol, funct::tan(), theta(), x(), y(), beamSpotPI::Z, and z().
|
inline |
Definition at line 187 of file Track.h.
References score_.
Referenced by mkfit::MkBuilder::findTracksStandard(), mkfit::CombCandidate::mergeCandsAndBestShortOne(), mkfit::CandCloner::processSeedRange(), mkfit::sortByScoreCand(), and mkfit::sortByScoreTrackCand().
|
inline |
Definition at line 344 of file Track.h.
References mkfit::TrackBase::Status::algorithm, and status_.
|
inline |
Definition at line 343 of file Track.h.
References mkfit::TrackBase::Status::algorithm, and status_.
|
inline |
Definition at line 190 of file Track.h.
References mkfit::TrackState::charge, chg, and state_.
Referenced by mkfit::MkFinder::copy_out(), and mkfit::MkFinder::findCandidates().
|
inline |
Definition at line 191 of file Track.h.
Referenced by mkfit::MkFinder::bkFitOutputTracks(), and mkfit::MkFinder::copy_out().
|
inline |
Definition at line 269 of file Track.h.
References ztail::d, mkfit::TrackBase::Status::duplicate, and status_.
|
inline |
Definition at line 278 of file Track.h.
References mkfit::TrackBase::Status::eta_region, and status_.
|
inline |
Definition at line 193 of file Track.h.
References label_.
Referenced by mkfit::MkFinder::copy_out().
|
inline |
Definition at line 267 of file Track.h.
References mkfit::TrackBase::Status::not_findable, and status_.
|
inline |
Definition at line 276 of file Track.h.
References dqmiodumpmetadata::n, mkfit::TrackBase::Status::n_seed_hits, and status_.
|
inline |
Definition at line 273 of file Track.h.
References mkfit::TrackBase::Status::prod_type, and status_.
|
inline |
Definition at line 192 of file Track.h.
References alignCSCRings::s, and score_.
Referenced by mkfit::MkFinder::bkFitOutputTracks(), mkfit::MkFinder::findCandidates(), mkfit::CombCandidate::mergeCandsAndBestShortOne(), mkfit::CandCloner::processSeedRange(), and mkfit::CombCandidate::reset().
|
inline |
|
inline |
Definition at line 263 of file Track.h.
References alignCSCRings::s, and status_.
Referenced by mkfit::MkFinder::copy_out().
|
inline |
|
inline |
float mkfit::TrackBase::swimPhiToR | ( | const float | x, |
const float | y | ||
) | const |
Definition at line 203 of file Track.cc.
References funct::abs(), charge(), HGC3DClusterGenMatchSelector_cfi::dR, mkfit::getHypot(), momPhi(), mkfit::Const::PI, pT(), mkfit::squashPhiGeneral(), findQualityFiles::v, x(), and y().
|
inline |
Definition at line 176 of file Track.h.
References state_, and mkfit::TrackState::theta().
Referenced by mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), rAtZ(), and Tau.Tau::zImpact().
|
inline |
Definition at line 160 of file Track.h.
References mkfit::TrackState::parameters, and state_.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), canReachRadius(), mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), d0BeamSpot(), maxReachRadius(), geometryXMLparser.Alignable::pos(), mkfit::StdSeq::Quality::quality_process(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), rAtZ(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), mkfit::TrackExtra::setMCTrackIDInfo(), swimPhiToR(), and zAtR().
|
inline |
Definition at line 161 of file Track.h.
References mkfit::TrackState::parameters, and state_.
Referenced by svgfig.Ellipse::__repr__(), canReachRadius(), mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), d0BeamSpot(), maxReachRadius(), geometryXMLparser.Alignable::pos(), mkfit::StdSeq::Quality::quality_process(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), rAtZ(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), mkfit::TrackExtra::setMCTrackIDInfo(), swimPhiToR(), and zAtR().
|
inline |
Definition at line 162 of file Track.h.
References mkfit::TrackState::parameters, and state_.
Referenced by mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r3D(), rAtZ(), mkfit::MkFinder::selectHitIndices(), and zAtR().
float mkfit::TrackBase::zAtR | ( | float | R, |
float * | r_reached = nullptr |
||
) | const |
Definition at line 228 of file Track.cc.
References mkfit::Config::Bfield, HltBtagPostValidation_cff::c, charge(), funct::cos(), f, Matriplex::hypot(), mps_fire::i, l1ctLayer2EG_cff::id, invpT(), dqmdumpme::k, mkfit::Config::Niter, px(), py(), pz(), dttmaxenums::R, funct::sin(), mkfit::Const::sol, x(), y(), and z().
|
protected |
Definition at line 355 of file Track.h.
Referenced by mkfit::TrackCand::addHitIdx(), mkfit::Track::addHitIdx(), chi2(), and setChi2().
|
protected |
Definition at line 360 of file Track.h.
Referenced by Modules.SwitchProducer::__addParameter(), SequenceTypes.DummyModule::__repr__(), Modules.SwitchProducer::__setattr__(), Mixins._Labelable::_findDependencies(), label(), setLabel(), and Mixins._Labelable::setLabel().
|
protected |
Definition at line 357 of file Track.h.
Referenced by mkfit::TrackCand::addHitIdx(), mkfit::Track::addHitIdx(), mkfit::Track::countAndSetNFoundHits(), mkfit::Track::endHitsOnTrack(), mkfit::TrackCand::exportTrack(), mkfit::Track::foundLayers(), mkfit::TrackCand::getLastFoundHitLyr(), mkfit::Track::getLastFoundHitPos(), mkfit::TrackCand::getLastFoundPixelHitLyr(), mkfit::TrackCand::getLastHitIdx(), mkfit::Track::getLastHitIdx(), mkfit::TrackCand::getLastHitLyr(), mkfit::Track::getLastHitLyr(), mkfit::TrackCand::getLastHitOnTrack(), mkfit::Track::getLastHitOnTrack(), mkfit::Track::getMCHitIDFromLayer(), mkfit::TrackCand::lastCcIndex(), mkfit::Track::mcHitIDsVec(), mkfit::TrackCand::nHitsByTypeEncoded(), mkfit::Track::nInsideMinusOneHits(), mkfit::TrackCand::nLayersByTypeEncoded(), mkfit::Track::nTailMinusOneHits(), mkfit::Track::nTotalHits(), mkfit::TrackCand::nUniqueLayers(), mkfit::Track::nUniqueLayers(), mkfit::TrackCand::refLastHoTNode(), mkfit::Track::resetHits(), mkfit::Track::resizeHits(), mkfit::Track::resizeHitsForInput(), mkfit::TrackCand::setLastCcIndex(), mkfit::Track::sortHitsByLayer(), mkfit::Track::Track(), and mkfit::TrackCand::TrackCand().
|
protected |
Definition at line 358 of file Track.h.
Referenced by mkfit::TrackCand::addHitIdx(), mkfit::Track::addHitIdx(), mkfit::Track::countAndSetNFoundHits(), mkfit::TrackCand::nFoundHits(), mkfit::Track::nFoundHits(), mkfit::TrackCand::nTotalHits(), mkfit::Track::resetHits(), mkfit::Track::resizeHits(), mkfit::TrackCand::setNFoundHits(), mkfit::Track::Track(), and mkfit::TrackCand::TrackCand().
|
protected |
Definition at line 356 of file Track.h.
Referenced by mkfit::TrackCand::resetShortTrack(), score(), and setScore().
|
protected |
Definition at line 354 of file Track.h.
Referenced by charge(), emomEta(), emomPhi(), epT(), errArray(), errors(), errors_nc(), hasNanNSillyValues(), hasSillyValues(), invpT(), momentum(), momEta(), momPhi(), p(), parameters(), parameters_nc(), posArray(), posEta(), position(), posPhi(), posR(), posRsq(), pT(), px(), py(), pz(), setCharge(), setState(), state(), state_nc(), theta(), x(), y(), and z().
|
protected |
Definition at line 359 of file Track.h.
Referenced by algoint(), algorithm(), getDuplicateValue(), getEtaRegion(), getNSeedHits(), getStatus(), isFindable(), isNotFindable(), mkfit::Track::nOverlapHits(), prodType(), setAlgoint(), setAlgorithm(), setDuplicateValue(), setEtaRegion(), setNotFindable(), mkfit::Track::setNOverlapHits(), setNSeedHits(), setProdType(), and setStatus().