LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::LArTrackPfo Class Reference

lar pfo object More...

#include "LArTrackPfo.h"

Inheritance diagram for lar_content::LArTrackPfo:

Public Member Functions

 LArTrackPfo (const LArTrackPfoParameters &parameters)
 Constructor. More...
 
const pandora::CartesianVector & GetVertexPosition () const
 Get vertex position. More...
 
const pandora::CartesianVector & GetEndPosition () const
 Get end position. More...
 
const pandora::CartesianVector & GetVertexDirection () const
 Get vertex direction. More...
 
const pandora::CartesianVector & GetEndDirection () const
 Get end direction. More...
 

Public Attributes

const LArTrackStateVector m_trackStateVector
 The vector of track states. More...
 

Detailed Description

lar pfo object

Definition at line 41 of file LArTrackPfo.h.

Constructor & Destructor Documentation

lar_content::LArTrackPfo::LArTrackPfo ( const LArTrackPfoParameters parameters)

Constructor.

Definition at line 18 of file LArTrackPfo.cc.

18  :
19  ParticleFlowObject(parameters),
20  m_trackStateVector(parameters.m_trackStateVector)
21 {
22 }
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition: LArTrackPfo.h:70

Member Function Documentation

const CartesianVector & lar_content::LArTrackPfo::GetEndDirection ( ) const

Get end direction.

Definition at line 56 of file LArTrackPfo.cc.

References m_trackStateVector.

57 {
58  if (m_trackStateVector.empty())
59  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
60 
61  return (*m_trackStateVector.rbegin()).GetDirection();
62 }
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition: LArTrackPfo.h:70
const CartesianVector & lar_content::LArTrackPfo::GetEndPosition ( ) const

Get end position.

Definition at line 36 of file LArTrackPfo.cc.

References m_trackStateVector.

37 {
38  if (m_trackStateVector.empty())
39  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
40 
41  return (*m_trackStateVector.rbegin()).GetPosition();
42 }
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition: LArTrackPfo.h:70
const CartesianVector & lar_content::LArTrackPfo::GetVertexDirection ( ) const

Get vertex direction.

Definition at line 46 of file LArTrackPfo.cc.

References m_trackStateVector.

Referenced by lar_content::TrackParticleBuildingAlgorithm::CreatePfo().

47 {
48  if (m_trackStateVector.empty())
49  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
50 
51  return (*m_trackStateVector.begin()).GetDirection();
52 }
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition: LArTrackPfo.h:70
const CartesianVector & lar_content::LArTrackPfo::GetVertexPosition ( ) const

Get vertex position.

Definition at line 26 of file LArTrackPfo.cc.

References m_trackStateVector.

Referenced by lar_content::TrackParticleBuildingAlgorithm::CreatePfo().

27 {
28  if (m_trackStateVector.empty())
29  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
30 
31  return (*m_trackStateVector.begin()).GetPosition();
32 }
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition: LArTrackPfo.h:70

Member Data Documentation

const LArTrackStateVector lar_content::LArTrackPfo::m_trackStateVector

The vector of track states.

Definition at line 70 of file LArTrackPfo.h.

Referenced by GetEndDirection(), GetEndPosition(), GetVertexDirection(), and GetVertexPosition().


The documentation for this class was generated from the following files: