LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Helper class to aid the creation of a recob::TrackTrajectory, keeping data vectors in sync. More...
#include "TrackTrajectoryCreationBookKeeper.h"
Public Member Functions | |
TrackTrajectoryCreationBookKeeper (std::vector< art::Ptr< recob::Hit >> &outhits, bool hasMomenta) | |
Constructor: needs reference to output hit vector, and hasMomenta bool (true if Vector_t are momenta, false if they are directions). More... | |
recob::TrackTrajectory | finalizeTrackTrajectory () |
Get the finalized recob::TrackTrajectory object; internal data vectors are moved so no more points should be added. More... | |
TrackTrajectoryCreationBookKeeper (const TrackTrajectoryCreationBookKeeper &)=delete | |
Avoid copies of this object. More... | |
TrackTrajectoryCreationBookKeeper (TrackTrajectoryCreationBookKeeper &&)=delete | |
Avoid copies of this object. More... | |
TrackTrajectoryCreationBookKeeper & | operator= (const TrackTrajectoryCreationBookKeeper &)=delete |
Avoid copies of this object. More... | |
TrackTrajectoryCreationBookKeeper & | operator= (TrackTrajectoryCreationBookKeeper &&)=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) |
Add a single point; different version of the functions are provided using const references or rvalue references. More... | |
void | addPoint (Point_t &&point, Vector_t &&vect, art::Ptr< recob::Hit > hit, PointFlags_t &&flag) |
Add a single point; different version of the functions are provided using const references or rvalue references. More... | |
Private Attributes | |
bool | hasMomenta_ |
std::vector< art::Ptr< recob::Hit > > * | hits |
std::vector< Point_t > | positions |
std::vector< Vector_t > | momenta |
std::vector< PointFlags_t > | flags |
Helper class to aid the creation of a recob::TrackTrajectory, keeping data vectors in sync.
Helper class to aid the creation of a recob::TrackTrajectory, keeping data vectors (Point_t, Vector_t, PointFlags_t, Hit) in sync. Elements of those vectors are added sequentially using the addPoint functions. Once all points have been added a call to the function finalizeTrackTrajectory, builds the track moving the content of the vectors.
Definition at line 33 of file TrackTrajectoryCreationBookKeeper.h.
|
inline |
Constructor: needs reference to output hit vector, and hasMomenta bool (true if Vector_t are momenta, false if they are directions).
Definition at line 36 of file TrackTrajectoryCreationBookKeeper.h.
References addPoint(), flags, hits, momenta, operator=(), and positions.
|
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.
Definition at line 52 of file TrackTrajectoryCreationBookKeeper.h.
Referenced by trkmkr::TrackCreationBookKeeper::addPoint(), trkmkr::TrackCreationBookKeeper::TrackCreationBookKeeper(), and TrackTrajectoryCreationBookKeeper().
|
inline |
Add a single point; different version of the functions are provided using const references or rvalue references.
Definition at line 62 of file TrackTrajectoryCreationBookKeeper.h.
References flags, hits, momenta, and positions.
|
inline |
Get the finalized recob::TrackTrajectory object; internal data vectors are moved so no more points should be added.
Definition at line 72 of file TrackTrajectoryCreationBookKeeper.h.
References flags, hasMomenta_, momenta, and positions.
Referenced by trkmkr::TrackCreationBookKeeper::finalizeTrack(), and trkmkr::TrackCreationBookKeeper::setTotChi2().
|
delete |
Avoid copies of this object.
Referenced by TrackTrajectoryCreationBookKeeper().
|
delete |
Avoid copies of this object.
|
private |
Definition at line 83 of file TrackTrajectoryCreationBookKeeper.h.
Referenced by addPoint(), finalizeTrackTrajectory(), and TrackTrajectoryCreationBookKeeper().
|
private |
Definition at line 79 of file TrackTrajectoryCreationBookKeeper.h.
Referenced by finalizeTrackTrajectory().
|
private |
Definition at line 80 of file TrackTrajectoryCreationBookKeeper.h.
Referenced by addPoint(), and TrackTrajectoryCreationBookKeeper().
|
private |
Definition at line 82 of file TrackTrajectoryCreationBookKeeper.h.
Referenced by addPoint(), finalizeTrackTrajectory(), and TrackTrajectoryCreationBookKeeper().
|
private |
Definition at line 81 of file TrackTrajectoryCreationBookKeeper.h.
Referenced by addPoint(), finalizeTrackTrajectory(), and TrackTrajectoryCreationBookKeeper().