#include <Track.h>
Public Member Functions | |
void | addHitIdx (int hitIdx, int hitLyr, float chi2) |
void | addHitIdx (const HitOnTrack &hot, float chi2) |
const HitOnTrack * | beginHitsOnTrack () const |
HitOnTrack * | beginHitsOnTrack_nc () |
bool | canReachRadius (float R) const |
void | countAndSetNFoundHits () |
const HitOnTrack * | endHitsOnTrack () const |
std::vector< int > | foundLayers () const |
int | getHitIdx (int posHitIdx) const |
int | getHitLyr (int posHitIdx) const |
HitOnTrack | getHitOnTrack (int posHitIdx) const |
const HitOnTrack * | getHitsOnTrackArray () const |
int | getLastFoundHitIdx () const |
int | getLastFoundHitLyr () const |
HitOnTrack | getLastFoundHitOnTrack () const |
int | getLastFoundHitPos () const |
int | getLastFoundMCHitID (const std::vector< HitVec > &globalHitVec) const |
int | getLastHitIdx () const |
int | getLastHitLyr () const |
HitOnTrack | getLastHitOnTrack () const |
int | getMCHitIDFromLayer (const std::vector< HitVec > &globalHitVec, int layer) const |
HitVec | hitsVector (const std::vector< HitVec > &globalHitVec) const |
float | maxReachRadius () const |
void | mcHitIDsVec (const std::vector< HitVec > &globalHitVec, const MCHitInfoVec &globalMCHitInfo, std::vector< int > &mcHitIDs) const |
int | nFoundHits () const |
int | nInsideMinusOneHits () const |
int | nOverlapHits () const |
int | nTailMinusOneHits () const |
int | nTotalHits () const |
int | nUniqueLayers () const |
float | rAtZ (float Z) const |
void | reserveHits (int nHits) |
void | resetHits () |
void | resizeHits (int nHits, int nFoundHits) |
void | resizeHitsForInput () |
void | setHitIdx (int posHitIdx, int newIdx) |
void | setHitIdxAtPos (int pos, const HitOnTrack &hot) |
void | setHitIdxLyr (int posHitIdx, int newIdx, int newLyr) |
void | setNOverlapHits (int n) |
void | sortHitsByLayer () |
float | swimPhiToR (const float x, const float y) const |
Track () | |
Track (const TrackBase &base) | |
Track (const TrackState &state, float chi2, int label, int nHits, const HitOnTrack *hits) | |
Track (int charge, const SVector3 &position, const SVector3 &momentum, const SMatrixSym66 &errors, float chi2) | |
Track (const Track &t) | |
float | zAtR (float R, float *r_reached=nullptr) const |
Public Member Functions inherited from mkfit::TrackBase | |
int | algoint () const |
TrackAlgorithm | algorithm () 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 |
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 | 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 | 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 |
Private Attributes | |
std::vector< HitOnTrack > | hitsOnTrk_ |
|
inlineexplicit |
Definition at line 371 of file Track.h.
References mkfit::TrackBase::lastHitIdx_, and mkfit::TrackBase::nFoundHits_.
|
inline |
Definition at line 377 of file Track.h.
References addHitIdx(), f, h, hfClusterShapes_cfi::hits, nHits, and reserveHits().
|
inline |
Definition at line 385 of file Track.h.
|
inline |
Definition at line 444 of file Track.h.
References mkfit::TrackBase::chi2(), mkfit::TrackBase::chi2_, hitsOnTrk_, mkfit::TrackBase::lastHitIdx_, and mkfit::TrackBase::nFoundHits_.
Referenced by mkfit::StdSeq::clean_cms_seedtracks_iter(), and Track().
|
inline |
Definition at line 453 of file Track.h.
References addHitIdx(), mkfit::TrackBase::chi2(), mkfit::HitOnTrack::index, and mkfit::HitOnTrack::layer.
Referenced by addHitIdx().
|
inline |
Definition at line 501 of file Track.h.
References hitsOnTrk_.
Referenced by mkfit::MkFinder::copy_in().
|
inline |
Definition at line 504 of file Track.h.
References hitsOnTrk_.
Referenced by mkfit::MkFinder::copy_out().
bool mkfit::Track::canReachRadius | ( | float | R | ) | const |
Definition at line 283 of file Track.cc.
References funct::abs(), mkfit::Config::Bfield, mkfit::TrackBase::charge(), f, dqmdumpme::k, mkfit::TrackBase::pT(), dttmaxenums::R, mkfit::Const::sol, mkfit::TrackBase::x(), and mkfit::TrackBase::y().
|
inline |
Definition at line 510 of file Track.h.
References hitsOnTrk_, mps_fire::i, mkfit::TrackBase::lastHitIdx_, and mkfit::TrackBase::nFoundHits_.
|
inline |
Definition at line 502 of file Track.h.
References hitsOnTrk_, and mkfit::TrackBase::lastHitIdx_.
Referenced by mkfit::MkFinder::copy_in().
|
inline |
Definition at line 575 of file Track.h.
References hitsOnTrk_, mkfit::TrackBase::lastHitIdx_, and hgcalTBTopologyTester_cfi::layers.
|
inline |
Definition at line 457 of file Track.h.
References hitsOnTrk_.
Referenced by mkfit::StdSeq::clean_cms_seedtracks_iter(), mkfit::TrackExtra::findMatchingSeedHits(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHits(), mkfit::print(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), and mkfit::TrackExtra::setMCTrackIDInfo().
|
inline |
Definition at line 458 of file Track.h.
References hitsOnTrk_.
Referenced by mkfit::StdSeq::clean_cms_seedtracks_iter(), mkfit::TrackExtra::findMatchingSeedHits(), mkfit::MkFitter::inputTracksAndHits(), mkfit::print(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), and mkfit::TrackExtra::setMCTrackIDInfo().
|
inline |
Definition at line 455 of file Track.h.
References hitsOnTrk_.
Referenced by mkfit::Shell::CheckMkFitLayerPlanVsReferenceHits(), mkfit::MkFitter::inputSeedsTracksAndHits(), mkfit::MkFitter::inputTracksAndHitIdx(), mkfit::MkFitter::inputTracksAndHits(), and mkfit::print().
|
inline |
Definition at line 500 of file Track.h.
References hitsOnTrk_.
Referenced by mkfit::MkFinder::bkFitInputTracks(), and mkfit::MkFitter::inputTracksForFit().
|
inline |
Definition at line 475 of file Track.h.
References getLastFoundHitPos(), hitsOnTrk_, and mkfit::TrackBase::p().
|
inline |
Definition at line 479 of file Track.h.
References getLastFoundHitPos(), hitsOnTrk_, and mkfit::TrackBase::p().
|
inline |
Definition at line 471 of file Track.h.
References getLastFoundHitPos(), hitsOnTrk_, and mkfit::TrackBase::p().
Referenced by getLastFoundMCHitID().
|
inline |
Definition at line 464 of file Track.h.
References hitsOnTrk_, and mkfit::TrackBase::lastHitIdx_.
Referenced by getLastFoundHitIdx(), getLastFoundHitLyr(), and getLastFoundHitOnTrack().
|
inline |
Definition at line 484 of file Track.h.
References getLastFoundHitOnTrack(), mkfit::HitOnTrack::index, and mkfit::HitOnTrack::layer.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 399 of file Track.h.
References hitsOnTrk_, mkfit::HitOnTrack::index, mkfit::HitOnTrack::layer, and mkfit::Config::nMaxTrkHits.
float mkfit::Track::maxReachRadius | ( | ) | const |
Definition at line 289 of file Track.cc.
References funct::abs(), mkfit::Config::Bfield, mkfit::TrackBase::charge(), f, dqmdumpme::k, mkfit::TrackBase::pT(), mkfit::TrackBase::px(), mkfit::TrackBase::py(), mkfit::Const::sol, mkfit::TrackBase::x(), and mkfit::TrackBase::y().
|
inline |
Definition at line 410 of file Track.h.
References hitsOnTrk_, mkfit::HitOnTrack::index, mkfit::TrackBase::lastHitIdx_, and mkfit::HitOnTrack::layer.
|
inline |
Definition at line 518 of file Track.h.
References mkfit::TrackBase::nFoundHits_.
Referenced by mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), mkfit::MkFinder::copy_in(), mkfit::getScoreCand(), mkfit::print(), mkfit::StdSeq::Quality::quality_process(), resizeHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), mkfit::TrackExtra::setMCTrackIDInfo(), and mkfit::sortByHitsChi2().
|
inline |
Definition at line 524 of file Track.h.
References hitsOnTrk_, mps_fire::i, mkfit::TrackBase::lastHitIdx_, and dqmiodumpmetadata::n.
Referenced by mkfit::MkFinder::copy_in(), and mkfit::getScoreCand().
|
inline |
Definition at line 521 of file Track.h.
References mkfit::TrackBase::Status::n_overlaps, and mkfit::TrackBase::status_.
Referenced by mkfit::getScoreCand().
|
inline |
Definition at line 536 of file Track.h.
References hitsOnTrk_, mps_fire::i, mkfit::TrackBase::lastHitIdx_, and dqmiodumpmetadata::n.
Referenced by mkfit::MkFinder::copy_in(), and mkfit::getScoreCand().
|
inline |
Definition at line 519 of file Track.h.
References mkfit::TrackBase::lastHitIdx_.
Referenced by mkfit::MkFinder::bkFitInputTracks(), mkfit::Shell::CheckMkFitLayerPlanVsReferenceHits(), mkfit::StdSeq::clean_cms_seedtracks_iter(), mkfit::MkFinder::copy_in(), mkfit::TrackExtra::findMatchingSeedHits(), mkfit::print(), mkfit::MkFinder::selectHitIndices(), mkfit::TrackExtra::setCMSSWTrackIDInfoByHits(), mkfit::TrackExtra::setCMSSWTrackIDInfoByTrkParams(), and mkfit::TrackExtra::setMCTrackIDInfo().
|
inline |
Definition at line 547 of file Track.h.
References hitsOnTrk_, heavyIonCSV_trainingSettings::idx, mkfit::TrackBase::lastHitIdx_, and jetUpdater_cfi::sort.
float mkfit::Track::rAtZ | ( | float | Z | ) | const |
Definition at line 375 of file Track.cc.
References simBeamSpotPI::alpha, mkfit::Config::Bfield, mkfit::TrackBase::charge(), funct::cos(), PVValHelper::dz, f, mkfit::TrackBase::invpT(), dqmdumpme::k, mkfit::TrackBase::px(), mkfit::TrackBase::py(), funct::sin(), mkfit::Const::sol, funct::tan(), mkfit::TrackBase::theta(), mkfit::TrackBase::x(), mkfit::TrackBase::y(), beamSpotPI::Z, and mkfit::TrackBase::z().
|
inline |
Definition at line 425 of file Track.h.
References hitsOnTrk_, and nHits.
Referenced by Track().
|
inline |
Definition at line 427 of file Track.h.
References hitsOnTrk_, mkfit::TrackBase::lastHitIdx_, and mkfit::TrackBase::nFoundHits_.
|
inline |
Definition at line 434 of file Track.h.
References hitsOnTrk_, mkfit::TrackBase::lastHitIdx_, nFoundHits(), mkfit::TrackBase::nFoundHits_, and nHits.
Referenced by mkfit::MkFinder::copy_out().
void mkfit::Track::resizeHitsForInput | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 522 of file Track.h.
References dqmiodumpmetadata::n, mkfit::TrackBase::Status::n_overlaps, and mkfit::TrackBase::status_.
void mkfit::Track::sortHitsByLayer | ( | ) |
Definition at line 267 of file Track.cc.
References hitsOnTrk_, and mkfit::TrackBase::lastHitIdx_.
Referenced by mkfit::StdSeq::clean_cms_seedtracks_iter().
float mkfit::Track::swimPhiToR | ( | const float | x, |
const float | y | ||
) | const |
Definition at line 273 of file Track.cc.
References funct::abs(), mkfit::TrackBase::charge(), HGC3DClusterGenMatchSelector_cfi::dR, mkfit::getHypot(), mkfit::TrackBase::momPhi(), mkfit::Const::PI, mkfit::TrackBase::pT(), mkfit::squashPhiGeneral(), findQualityFiles::v, mkfit::TrackBase::x(), and mkfit::TrackBase::y().
float mkfit::Track::zAtR | ( | float | R, |
float * | r_reached = nullptr |
||
) | const |
Definition at line 298 of file Track.cc.
References mkfit::Config::Bfield, HltBtagPostValidation_cff::c, mkfit::TrackBase::charge(), funct::cos(), f, mps_fire::i, l1ctLayer2EG_cff::id, mkfit::TrackBase::invpT(), dqmdumpme::k, mkfit::Config::Niter, mkfit::TrackBase::px(), mkfit::TrackBase::py(), mkfit::TrackBase::pz(), dttmaxenums::R, funct::sin(), mkfit::Const::sol, mkfit::TrackBase::x(), mkfit::TrackBase::y(), and mkfit::TrackBase::z().
|
private |
Definition at line 586 of file Track.h.
Referenced by addHitIdx(), beginHitsOnTrack(), beginHitsOnTrack_nc(), countAndSetNFoundHits(), endHitsOnTrack(), foundLayers(), getHitIdx(), getHitLyr(), getHitOnTrack(), getHitsOnTrackArray(), getLastFoundHitIdx(), getLastFoundHitLyr(), getLastFoundHitOnTrack(), getLastFoundHitPos(), getLastHitIdx(), getLastHitLyr(), getLastHitOnTrack(), getMCHitIDFromLayer(), hitsVector(), mcHitIDsVec(), nInsideMinusOneHits(), nTailMinusOneHits(), nUniqueLayers(), reserveHits(), resetHits(), resizeHits(), resizeHitsForInput(), setHitIdx(), setHitIdxAtPos(), setHitIdxLyr(), and sortHitsByLayer().