LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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
 

Detailed Description

Type of track point information.

See also
proxy::TrackPointWrapper

For its interface, see proxy::TrackPointWrapper.

Definition at line 664 of file Track.h.

Constructor & Destructor Documentation

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

Definition at line 666 of file Track.h.

666 : 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:533
proxy::TrackPoint::TrackPoint ( TrackPointData &&  data)
inline

Definition at line 667 of file Track.h.

667 : 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:533

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

643 { 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 616 of file Track.h.

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

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

Definition at line 649 of file Track.h.

650  {
651  decltype(auto) ptr = hitPtr();
652  return ptr ? ptr.get() : nullptr;
653  }
art::Ptr< recob::Hit > hitPtr() const
Returns the hit associated with the trajectory point.
Definition: Track.h:632
auto get() const -> decltype(auto)
Definition: Track.h:579
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 632 of file Track.h.

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

Returns the index of this point in the trajectory.

Definition at line 646 of file Track.h.

646 { 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 624 of file Track.h.

624 { return flags().isPointValid(); }
auto flags() const -> decltype(auto)
Definition: Track.h:616
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 604 of file Track.h.

References track.

605  {
607  }
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
Definition: Track.h:132
auto index() const -> decltype(auto)
Returns the index of this point in the trajectory.
Definition: Track.h:646
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:593
auto proxy::TrackPointWrapper< TrackPointData >::position ( ) const-> decltype(auto)
inlineinherited

Returns the position of the trajectory point.

See also
recob::Track::LocationAtPoint()

Definition at line 597 of file Track.h.

References track.

598  {
599  return track().Trajectory().LocationAtPoint(index());
600  }
const recob::TrackTrajectory & Trajectory() const
Access to the stored recob::TrackTrajectory.
Definition: Track.h:132
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:646
recob::Track const & track() const
Returns the track this point belongs to.
Definition: Track.h:593
recob::Track const& proxy::TrackPointWrapper< TrackPointData >::track ( ) const
inlineinherited

Returns the track this point belongs to.

Definition at line 593 of file Track.h.

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

Member Data Documentation

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: