Wrapper for a track data proxy. More...
#include <Track.h>
Public Member Functions | |
recob::Track const & | track () const |
Returns the track this point belongs to. More... | |
auto | position () const -> decltype(auto) |
auto | momentum () const -> decltype(auto) |
art::Ptr< recob::Hit > | hitPtr () const |
Returns the hit associated with the trajectory point. More... | |
recob::TrackFitHitInfo const * | fitInfoPtr () const |
Returns fit info associated with the trajectory point. More... | |
auto | index () const -> decltype(auto) |
Returns the index of this point in the trajectory. More... | |
recob::Hit const * | hit () const |
Returns a pointer to the hit on the trajectory point, if any. More... | |
Flags interface | |
auto | flags () const -> decltype(auto) |
bool | isPointValid () const |
Returns whether the trajectory point is valid. More... | |
Protected Member Functions | |
TrackPointWrapper ()=default | |
TrackPointWrapper (TrackPointWrapper const &)=default | |
TrackPointWrapper (TrackPointWrapper &&)=default | |
TrackPointWrapper & | operator= (TrackPointWrapper const &)=default |
TrackPointWrapper & | operator= (TrackPointWrapper &&)=default |
Private Types | |
using | This_t = TrackPointWrapper< Data > |
using | Wrapped_t = std::add_const_t< Data > |
Private Member Functions | |
Wrapped_t const & | base () const |
template<std::size_t N> | |
auto | get () const -> decltype(auto) |
Static Private Attributes | |
static constexpr std::size_t | TrackIndex = 0 |
static constexpr std::size_t | HitIndex = 1 |
static constexpr std::size_t | FitHitInfoIndex = 2 |
static constexpr std::size_t | IndexIndex = 3 |
static constexpr std::size_t | NIndices = 4 |
Wrapper for a track data proxy.
Data | the point data type; requirements are described below |
This class provides a user interface to data pertaining a single trajectory point of a recob::Track
.
This type wraps a generic data structure with tuple interface. It is expected that the following information is returned:
recob::Track::Point_t
from std::get<0>(Data const&)
recob::Track::Vector_t
from std::get<1>(Data const&)
recob::Track::PointFlags_t
from std::get<2>(Data const&)
art::Ptr<recob::Hit>
from std::get<3>(Data const&)
The "pointers" can be any object returning the required type when dereferenced.
Definition at line 256 of file lardata/RecoBaseProxy/Track.h.
|
private |
Definition at line 588 of file lardata/RecoBaseProxy/Track.h.
|
private |
Definition at line 589 of file lardata/RecoBaseProxy/Track.h.
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
inlineprivate |
Definition at line 600 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns fit info associated with the trajectory point.
nullptr
if not merged in proxyIf 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 664 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns the flags associated with the trajectory point.
recob::Track::FlagsAtPoint()
Definition at line 636 of file lardata/RecoBaseProxy/Track.h.
|
inlineprivate |
Definition at line 604 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns a pointer to the hit on the trajectory point, if any.
Definition at line 671 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns the hit associated with the trajectory point.
Definition at line 653 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns the index of this point in the trajectory.
Definition at line 668 of file lardata/RecoBaseProxy/Track.h.
|
inline |
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 645 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns the momentum vector of the trajectory point.
Definition at line 626 of file lardata/RecoBaseProxy/Track.h.
|
protecteddefault |
|
protecteddefault |
|
inline |
Returns the position of the trajectory point.
recob::Track::LocationAtPoint()
Definition at line 621 of file lardata/RecoBaseProxy/Track.h.
|
inline |
Returns the track this point belongs to.
Definition at line 616 of file lardata/RecoBaseProxy/Track.h.
|
staticprivate |
Definition at line 593 of file lardata/RecoBaseProxy/Track.h.
|
staticprivate |
Definition at line 592 of file lardata/RecoBaseProxy/Track.h.
|
staticprivate |
Definition at line 594 of file lardata/RecoBaseProxy/Track.h.
|
staticprivate |
Definition at line 595 of file lardata/RecoBaseProxy/Track.h.
|
staticprivate |
Definition at line 591 of file lardata/RecoBaseProxy/Track.h.