LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
recob::tracking::TrajectoryPoint_t Struct Reference

A point in the trajectory, with position and momentum. More...

#include "TrackingTypes.h"

Public Member Functions

 TrajectoryPoint_t ()=default
 Default constructor: sets at origin with no momentum. More...
 
 TrajectoryPoint_t (Point_t pos, Vector_t mom)
 Constructor: assigns position and momentum. More...
 
Vector_t direction () const
 Returns the direction of the trajectory (unit vector of the momentum). More...
 

Public Attributes

Point_t position
 position in the trajectory [cm]. More...
 
Vector_t momentum
 momentum at the trajectory [GeV/c]. More...
 

Detailed Description

A point in the trajectory, with position and momentum.

Definition at line 85 of file TrackingTypes.h.

Constructor & Destructor Documentation

recob::tracking::TrajectoryPoint_t::TrajectoryPoint_t ( )
default

Default constructor: sets at origin with no momentum.

recob::tracking::TrajectoryPoint_t::TrajectoryPoint_t ( Point_t  pos,
Vector_t  mom 
)
inline

Constructor: assigns position and momentum.

Definition at line 94 of file TrackingTypes.h.

94 : position(pos), momentum(mom) {}
Vector_t momentum
momentum at the trajectory [GeV/c].
Definition: TrackingTypes.h:88
Point_t position
position in the trajectory [cm].
Definition: TrackingTypes.h:87

Member Function Documentation

Vector_t recob::tracking::TrajectoryPoint_t::direction ( ) const
inline

Returns the direction of the trajectory (unit vector of the momentum).

Definition at line 97 of file TrackingTypes.h.

Referenced by recob::tracking::makePlane(), and lar::util::TrackPitchInView().

97 { return momentum.Unit(); }
Vector_t momentum
momentum at the trajectory [GeV/c].
Definition: TrackingTypes.h:88

Member Data Documentation

Vector_t recob::tracking::TrajectoryPoint_t::momentum

momentum at the trajectory [GeV/c].

Definition at line 88 of file TrackingTypes.h.

Point_t recob::tracking::TrajectoryPoint_t::position

position in the trajectory [cm].

Definition at line 87 of file TrackingTypes.h.

Referenced by recob::tracking::makePlane(), and lar::util::TrackPitchInView().


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