1 #ifndef TRACKTRAJECTORYCREATIONBOOKKEEPER_H 2 #define TRACKTRAJECTORYCREATIONBOOKKEEPER_H 26 using namespace recob;
35 : hasMomenta_(hasMomenta), hits(&outhits)
51 positions.push_back(point);
52 momenta.push_back(vect);
54 flags.push_back(flag);
71 std::vector<art::Ptr<Hit> >*
hits;
74 std::vector<PointFlags_t>
flags;
recob::TrajectoryPointFlags PointFlags_t
Type for flags of a point/hit.
tracking::Point_t Point_t
void addPoint(Point_t &&point, Vector_t &&vect, art::Ptr< Hit > hit, PointFlags_t &&flag)
Reconstruction base classes.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >> Point_t
std::vector< PointFlags_t > flags
std::vector< Vector_t > momenta
tracking::Vector_t Vector_t
Helper class to aid the creation of a recob::TrackTrajectory, keeping data vectors in sync...
A trajectory in space reconstructed from hits.
std::vector< art::Ptr< Hit > > * hits
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...
Detector simulation of raw signals on wires.
Declaration of signal hit object.
std::vector< Point_t > positions
recob::tracking::Vector_t Vector_t
Set of flags pertaining a point of the track.
TrackTrajectory::PointFlags_t PointFlags_t
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 ...
TrackTrajectory finalizeTrackTrajectory()
Get the finalized recob::TrackTrajectory object; internal data vectors are moved so no more points sh...