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.
|
private |
|
private |
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
inlineprivate |
|
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
.
|
inline |
Returns the flags associated with the trajectory point.
recob::Track::FlagsAtPoint()
Definition at line 636 of file Track.h.
|
inlineprivate |
|
inline |
Returns a pointer to the hit on the trajectory point, if any.
Definition at line 671 of file Track.h.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the momentum vector of the trajectory point.
Definition at line 626 of file Track.h.
|
protecteddefault |
|
protecteddefault |
|
inline |
Returns the position of the trajectory point.
recob::Track::LocationAtPoint()
Definition at line 621 of file Track.h.
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |