LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 63 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 72 of file TrackingTypes.h.

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

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 76 of file TrackingTypes.h.

Referenced by recob::tracking::makePlane().

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

Member Data Documentation

Vector_t recob::tracking::TrajectoryPoint_t::momentum

momentum at the trajectory [GeV/c].

Definition at line 66 of file TrackingTypes.h.

Point_t recob::tracking::TrajectoryPoint_t::position

position in the trajectory [cm].

Definition at line 65 of file TrackingTypes.h.

Referenced by recob::tracking::makePlane().


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