LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/

Type of track point information. More...

#include "Track.h"

Inheritance diagram for proxy::TrackPoint:
proxy::TrackPointWrapper< TrackPointData >

Public Member Functions

 TrackPoint (TrackPointData const &data)
 
 TrackPoint (TrackPointData &&data)
 
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::HithitPtr () 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...
 

Static Private Attributes

static constexpr bool asserts = details::StaticAsserts<TrackPointWrapper<TrackPointData>>::value
 

Detailed Description

Type of track point information.

See also
proxy::TrackPointWrapper

For its interface, see proxy::TrackPointWrapper.

Definition at line 683 of file Track.h.

Constructor & Destructor Documentation

proxy::TrackPoint::TrackPoint ( TrackPointData const &  data)
inline

Definition at line 688 of file Track.h.

688 : TrackPointData(data) {}
std::tuple< recob::Track const *, art::Ptr< recob::Hit >, recob::TrackFitHitInfo const *, std::size_t > TrackPointData
Container of track point information.
Definition: Track.h:555
proxy::TrackPoint::TrackPoint ( TrackPointData &&  data)
inline

Definition at line 689 of file Track.h.

689 : TrackPointData(std::move(data)) {}
std::tuple< recob::Track const *, art::Ptr< recob::Hit >, recob::TrackFitHitInfo const *, std::size_t > TrackPointData
Container of track point information.
Definition: Track.h:555

Member Function Documentation

recob::TrackFitHitInfo const* proxy::TrackPointWrapper< TrackPointData >::fitInfoPtr ( ) const
inlineinherited

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 663 of file Track.h.

664  { return get<FitHitInfoIndex>(); }
auto proxy::TrackPointWrapper< TrackPointData >::flags ( ) const-> decltype(auto)
inlineinherited

Returns the flags associated with the trajectory point.

See also
recob::Track::FlagsAtPoint()

Definition at line 635 of file Track.h.

636  { return track().Trajectory().FlagsAtPoint(index()); }
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
Definition: Track.h:101
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.
Definition: Track.h:667
recob::Track const & track() const
Returns the track this point belongs to.
Definition: Track.h:615
recob::Hit const* proxy::TrackPointWrapper< TrackPointData >::hit ( ) const
inlineinherited

Returns a pointer to the hit on the trajectory point, if any.

Definition at line 670 of file Track.h.

671  { decltype(auto) ptr = hitPtr(); return ptr? ptr.get(): nullptr; }
art::Ptr< recob::Hit > hitPtr() const
Returns the hit associated with the trajectory point.
Definition: Track.h:652
auto get() const -> decltype(auto)
Definition: Track.h:603
art::Ptr<recob::Hit> proxy::TrackPointWrapper< TrackPointData >::hitPtr ( ) const
inlineinherited

Returns the hit associated with the trajectory point.

Returns
an art pointer to the hit associated to this point

Definition at line 652 of file Track.h.

652 { return get<HitIndex>(); }
auto proxy::TrackPointWrapper< TrackPointData >::index ( ) const-> decltype(auto)
inlineinherited

Returns the index of this point in the trajectory.

Definition at line 667 of file Track.h.

667 { return get<IndexIndex >(); }
bool proxy::TrackPointWrapper< TrackPointData >::isPointValid ( ) const
inlineinherited

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 644 of file Track.h.

644 { return flags().isPointValid(); }
auto flags() const -> decltype(auto)
Definition: Track.h:635
auto proxy::TrackPointWrapper< TrackPointData >::momentum ( ) const-> decltype(auto)
inlineinherited

Returns the momentum vector of the trajectory point.

See also
recob::Track::MomentumVectorAtPoint()

Definition at line 625 of file Track.h.

References track.

626  { return track().Trajectory().MomentumVectorAtPoint(index()); }
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
Definition: Track.h:101
auto index() const -> decltype(auto)
Returns the index of this point in the trajectory.
Definition: Track.h:667
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.
Definition: Track.h:615
auto proxy::TrackPointWrapper< TrackPointData >::position ( ) const-> decltype(auto)
inlineinherited

Returns the position of the trajectory point.

See also
recob::Track::LocationAtPoint()

Definition at line 620 of file Track.h.

References track.

621  { return track().Trajectory().LocationAtPoint(index()); }
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
Definition: Track.h:101
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.
Definition: Track.h:667
recob::Track const & track() const
Returns the track this point belongs to.
Definition: Track.h:615
recob::Track const& proxy::TrackPointWrapper< TrackPointData >::track ( ) const
inlineinherited

Returns the track this point belongs to.

Definition at line 615 of file Track.h.

616  { return *get<TrackIndex>(); }

Member Data Documentation

constexpr bool proxy::TrackPoint::asserts = details::StaticAsserts<TrackPointWrapper<TrackPointData>>::value
staticprivate

Definition at line 693 of file Track.h.


The documentation for this struct was generated from the following file: