LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Helper class to aid the creation of a recob::Track, keeping data vectors in sync. More...
#include "TrackCreationBookKeeper.h"
Public Member Functions | |
TrackCreationBookKeeper (std::vector< art::Ptr< recob::Hit >> &outhits, OptionalOutputs &optionals, int tkID, int pdgHyp, bool hasMomenta, int nfitpars=4) | |
Constructor: needs reference to output hit vector, optional outputs struct, and other parameters needed when creating the track object. More... | |
void | setTotChi2 (double totChi2) |
Set the total chi2 value. More... | |
TrackCreationBookKeeper (const TrackCreationBookKeeper &)=delete | |
Avoid copies of this object. More... | |
TrackCreationBookKeeper (TrackCreationBookKeeper &&)=delete | |
Avoid copies of this object. More... | |
TrackCreationBookKeeper & | operator= (const TrackCreationBookKeeper &)=delete |
Avoid copies of this object. More... | |
TrackCreationBookKeeper & | operator= (TrackCreationBookKeeper &&)=delete |
Avoid copies of this object. More... | |
void | addPoint (const Point_t &point, const Vector_t &vect, art::Ptr< recob::Hit > hit, const PointFlags_t &flag, double chi2) |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument. More... | |
void | addPoint (const Point_t &point, const Vector_t &vect, art::Ptr< recob::Hit > hit, const PointFlags_t &flag, double chi2, OptionalPointElement &ope) |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument. More... | |
void | addPoint (Point_t &&point, Vector_t &&vect, art::Ptr< recob::Hit > hit, PointFlags_t &&flag, double chi2) |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument. More... | |
void | addPoint (Point_t &&point, Vector_t &&vect, art::Ptr< recob::Hit > hit, PointFlags_t &&flag, double chi2, OptionalPointElement &ope) |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument. More... | |
recob::Track | finalizeTrack (const recob::tracking::SMatrixSym55 &covStart, const recob::tracking::SMatrixSym55 &covEnd) |
Get the finalized recob::Track; needs the start and end covariance matrices. More... | |
recob::Track | finalizeTrack (recob::tracking::SMatrixSym55 &&covStart, recob::tracking::SMatrixSym55 &&covEnd) |
Get the finalized recob::Track; needs the start and end covariance matrices. More... | |
Private Attributes | |
trkmkr::TrackTrajectoryCreationBookKeeper | ttcbk_ |
int | tkID_ |
int | pdgHyp_ |
double | totChi2_ |
OptionalOutputs * | opts |
std::vector< double > | chi2v |
int | nfittedpars |
Helper class to aid the creation of a recob::Track, keeping data vectors in sync.
Helper class to aid the creation of a recob::Track, keeping output data (vectors of recob::tracking::Point_t, recob::tracking::Vector_t, recob::TrackTrajectory::PointFlags_t, recob::Hit, and trkmkr::OptionalOutputs struct) in sync. It internally stores and uses a trkmkr::TrackTrajectoryCreationBookKeeper object. Elements of those vectors are added sequentially using the addPoint functions. Once all points have been added a call to the function finalizeTrack, builds the track moving the content of the vectors.
Definition at line 32 of file TrackCreationBookKeeper.h.
|
inline |
Constructor: needs reference to output hit vector, optional outputs struct, and other parameters needed when creating the track object.
Definition at line 35 of file TrackCreationBookKeeper.h.
References trkmkr::TrackTrajectoryCreationBookKeeper::addPoint(), addPoint(), chi2v, operator=(), opts, trkmkr::OptionalOutputs::reset(), totChi2_, and ttcbk_.
|
delete |
Avoid copies of this object.
|
delete |
Avoid copies of this object.
|
inline |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument.
Definition at line 61 of file TrackCreationBookKeeper.h.
Referenced by addPoint(), trkf::TrackKalmanFitter::fillResult(), and TrackCreationBookKeeper().
|
inline |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument.
Definition at line 73 of file TrackCreationBookKeeper.h.
References addPoint(), trkmkr::OptionalOutputs::addPoint(), and opts.
|
inline |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument.
Definition at line 83 of file TrackCreationBookKeeper.h.
References trkmkr::TrackTrajectoryCreationBookKeeper::addPoint(), chi2v, totChi2_, and ttcbk_.
|
inline |
Add a single point; different version of the functions are provided using const references or rvalue references, with and without an OptionalPointElement argument.
Definition at line 95 of file TrackCreationBookKeeper.h.
References addPoint(), trkmkr::OptionalOutputs::addPoint(), and opts.
|
inline |
Get the finalized recob::Track; needs the start and end covariance matrices.
Definition at line 112 of file TrackCreationBookKeeper.h.
Referenced by trkf::TrackKalmanFitter::fillResult(), and setTotChi2().
|
inline |
Get the finalized recob::Track; needs the start and end covariance matrices.
Definition at line 123 of file TrackCreationBookKeeper.h.
References chi2v, trkmkr::TrackTrajectoryCreationBookKeeper::finalizeTrackTrajectory(), nfittedpars, pdgHyp_, tkID_, totChi2_, and ttcbk_.
|
delete |
Avoid copies of this object.
Referenced by TrackCreationBookKeeper().
|
delete |
Avoid copies of this object.
|
inline |
Set the total chi2 value.
Definition at line 108 of file TrackCreationBookKeeper.h.
References chi2v, finalizeTrack(), trkmkr::TrackTrajectoryCreationBookKeeper::finalizeTrackTrajectory(), nfittedpars, pdgHyp_, tkID_, totChi2_, and ttcbk_.
|
private |
Definition at line 141 of file TrackCreationBookKeeper.h.
Referenced by addPoint(), finalizeTrack(), setTotChi2(), and TrackCreationBookKeeper().
|
private |
Definition at line 143 of file TrackCreationBookKeeper.h.
Referenced by finalizeTrack(), and setTotChi2().
|
private |
Definition at line 140 of file TrackCreationBookKeeper.h.
Referenced by addPoint(), and TrackCreationBookKeeper().
|
private |
Definition at line 138 of file TrackCreationBookKeeper.h.
Referenced by finalizeTrack(), and setTotChi2().
|
private |
Definition at line 137 of file TrackCreationBookKeeper.h.
Referenced by finalizeTrack(), and setTotChi2().
|
private |
Definition at line 139 of file TrackCreationBookKeeper.h.
Referenced by addPoint(), finalizeTrack(), setTotChi2(), and TrackCreationBookKeeper().
|
private |
Definition at line 136 of file TrackCreationBookKeeper.h.
Referenced by addPoint(), finalizeTrack(), setTotChi2(), and TrackCreationBookKeeper().