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);
57 positions.push_back(std::move(point));
58 momenta.push_back(std::move(vect));
60 flags.push_back(std::move(flag));
66 return TrackTrajectory(std::move(positions),std::move(momenta),std::move(flags),hasMomenta_);
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)
Add a single point; different version of the functions are provided using const references or rvalue ...
Reconstruction base classes.
Declaration of signal hit object.
std::vector< PointFlags_t > flags
std::vector< Vector_t > momenta
recob::tracking::Point_t Point_t
tracking::Vector_t Vector_t
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
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
Data product for reconstructed trajectory in space.
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.
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
TrackTrajectory finalizeTrackTrajectory()
Get the finalized recob::TrackTrajectory object; internal data vectors are moved so no more points sh...