LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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< 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... | |
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< 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< 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< 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 31 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 34 of file TrackTrajectoryCreationBookKeeper.h.
References hits().
|
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 50 of file TrackTrajectoryCreationBookKeeper.h.
|
inline |
Add a single point; different version of the functions are provided using const references or rvalue references.
Definition at line 56 of file TrackTrajectoryCreationBookKeeper.h.
References hits().
|
inline |
Get the finalized recob::TrackTrajectory object; internal data vectors are moved so no more points should be added.
Definition at line 65 of file TrackTrajectoryCreationBookKeeper.h.
|
delete |
Avoid copies of this object.
|
delete |
Avoid copies of this object.
|
private |
Definition at line 74 of file TrackTrajectoryCreationBookKeeper.h.
|
private |
Definition at line 70 of file TrackTrajectoryCreationBookKeeper.h.
Definition at line 71 of file TrackTrajectoryCreationBookKeeper.h.
|
private |
Definition at line 73 of file TrackTrajectoryCreationBookKeeper.h.
|
private |
Definition at line 72 of file TrackTrajectoryCreationBookKeeper.h.