Type of track point information.
More...
#include "Track.h"
Type of track point information.
- See also
proxy::TrackPointWrapper
For its interface, see proxy::TrackPointWrapper
.
Definition at line 664 of file Track.h.
Definition at line 666 of file Track.h.
std::tuple< recob::Track const *, art::Ptr< recob::Hit >, recob::TrackFitHitInfo const *, std::size_t > TrackPointData
Container of track point information.
Definition at line 667 of file Track.h.
std::tuple< recob::Track const *, art::Ptr< recob::Hit >, recob::TrackFitHitInfo const *, std::size_t > TrackPointData
Container of track point information.
Returns fit info associated with the trajectory point.
- Returns
- a pointer to the fit info, or
nullptr
if not merged in proxy
If the track proxy this point comes from had no fit information, nullptr
is returned. The fit information is extracted using the tag in proxy::Tracks::TrackFitHitInfoTag
.
Definition at line 643 of file Track.h.
643 {
return get<FitHitInfoIndex>(); }
Returns the flags associated with the trajectory point.
- See also
recob::Track::FlagsAtPoint()
Definition at line 616 of file Track.h.
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
PointFlags_t const & FlagsAtPoint(size_t i) const
Returns the flags for the specified trajectory point.
auto index() const -> decltype(auto)
Returns the index of this point in the trajectory.
recob::Track const & track() const
Returns the track this point belongs to.
Returns a pointer to the hit on the trajectory point, if any.
Definition at line 649 of file Track.h.
651 decltype(
auto) ptr =
hitPtr();
652 return ptr ? ptr.
get() :
nullptr;
art::Ptr< recob::Hit > hitPtr() const
Returns the hit associated with the trajectory point.
auto get() const -> decltype(auto)
Returns the hit associated with the trajectory point.
- Returns
- an art pointer to the hit associated to this point
Definition at line 632 of file Track.h.
632 {
return get<HitIndex>(); }
Returns the index of this point in the trajectory.
Definition at line 646 of file Track.h.
646 {
return get<IndexIndex>(); }
Returns whether the trajectory point is valid.
Even if the trajectory point (position and momentum) are not valid, the hit is still associated to the track/tracjectory.
Definition at line 624 of file Track.h.
624 {
return flags().isPointValid(); }
auto flags() const -> decltype(auto)
Returns the momentum vector of the trajectory point.
- See also
recob::Track::MomentumVectorAtPoint()
Definition at line 604 of file Track.h.
References track.
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
auto index() const -> decltype(auto)
Returns the index of this point in the trajectory.
T MomentumVectorAtPoint(unsigned int p) const
Momentum vector at point p. Use e.g. as:
recob::Track const & track() const
Returns the track this point belongs to.
Returns the position of the trajectory point.
- See also
recob::Track::LocationAtPoint()
Definition at line 597 of file Track.h.
References track.
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
T LocationAtPoint(unsigned int p) const
Position at point p. Use e.g. as:
auto index() const -> decltype(auto)
Returns the index of this point in the trajectory.
recob::Track const & track() const
Returns the track this point belongs to.
Returns the track this point belongs to.
Definition at line 593 of file Track.h.
593 {
return *get<TrackIndex>(); }
constexpr bool proxy::TrackPoint::asserts |
|
staticprivate |
Initial value:=
details::StaticAsserts<TrackPointWrapper<TrackPointData>>
::value
Definition at line 670 of file Track.h.
The documentation for this struct was generated from the following file:
- lardata/v09_16_03/source/lardata/RecoBaseProxy/Track.h