LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
trk::TrackTree Struct Reference

#include "TrackContainmentAlg.hh"

Public Member Functions

 TrackTree ()
 
 TrackTree (recob::Track const &t)
 
std::string Leaflist ()
 

Public Attributes

double start_x
 
double start_y
 
double start_z
 
double start_theta
 
double start_phi
 
double end_x
 
double end_y
 
double end_z
 
double end_theta
 
double end_phi
 
double length
 
double length_simple
 

Detailed Description

Definition at line 30 of file TrackContainmentAlg.hh.

Constructor & Destructor Documentation

trk::TrackTree::TrackTree ( )
inline

Definition at line 32 of file TrackContainmentAlg.hh.

32 {}
trk::TrackTree::TrackTree ( recob::Track const &  t)
inline

Definition at line 34 of file TrackContainmentAlg.hh.

35  : start_x(t.Vertex().X())
36  , start_y(t.Vertex().Y())
37  , start_z(t.Vertex().Z())
38  , start_theta(t.VertexDirection().Theta())
39  , start_phi(t.VertexDirection().Phi())
40  , end_x(t.End().X())
41  , end_y(t.End().Y())
42  , end_z(t.End().Z())
43  , end_theta(t.EndDirection().Theta())
44  , end_phi(t.EndDirection().Phi())
45  , length(t.Length())
46  , length_simple((t.End() - t.Vertex()).R())
47  {}

Member Function Documentation

std::string trk::TrackTree::Leaflist ( )
inline

Definition at line 62 of file TrackContainmentAlg.hh.

Referenced by trk::TrackContainmentAlg::SetupOutputTree().

63  {
64  return "start_x/D:start_y/D:start_z/D:start_theta/D:start_phi/D:end_x/D:end_y/D:end_z/"
65  "D:end_theta/D:end_phi/D:length/D:length_simple/D";
66  }

Member Data Documentation

double trk::TrackTree::end_phi

Definition at line 58 of file TrackContainmentAlg.hh.

double trk::TrackTree::end_theta

Definition at line 57 of file TrackContainmentAlg.hh.

double trk::TrackTree::end_x

Definition at line 54 of file TrackContainmentAlg.hh.

double trk::TrackTree::end_y

Definition at line 55 of file TrackContainmentAlg.hh.

double trk::TrackTree::end_z

Definition at line 56 of file TrackContainmentAlg.hh.

double trk::TrackTree::length

Definition at line 59 of file TrackContainmentAlg.hh.

double trk::TrackTree::length_simple

Definition at line 60 of file TrackContainmentAlg.hh.

double trk::TrackTree::start_phi

Definition at line 53 of file TrackContainmentAlg.hh.

double trk::TrackTree::start_theta

Definition at line 52 of file TrackContainmentAlg.hh.

double trk::TrackTree::start_x

Definition at line 49 of file TrackContainmentAlg.hh.

double trk::TrackTree::start_y

Definition at line 50 of file TrackContainmentAlg.hh.

double trk::TrackTree::start_z

Definition at line 51 of file TrackContainmentAlg.hh.


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