Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
LArTrackPfo.cc
Go to the documentation of this file.
1
10
11#include "Objects/CaloHit.h"
12
13using namespace pandora;
14
15namespace lar_content
16{
17
19 ParticleFlowObject(parameters),
20 m_trackStateVector(parameters.m_trackStateVector)
21{
22}
23
24//------------------------------------------------------------------------------------------------------------------------------------------
25
27{
28 if (m_trackStateVector.empty())
29 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
30
31 return (*m_trackStateVector.begin()).GetPosition();
32}
33
34//------------------------------------------------------------------------------------------------------------------------------------------
35
37{
38 if (m_trackStateVector.empty())
39 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
40
41 return (*m_trackStateVector.rbegin()).GetPosition();
42}
43
44//------------------------------------------------------------------------------------------------------------------------------------------
45
47{
48 if (m_trackStateVector.empty())
49 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
50
51 return (*m_trackStateVector.begin()).GetDirection();
52}
53
54//------------------------------------------------------------------------------------------------------------------------------------------
55
57{
58 if (m_trackStateVector.empty())
59 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
60
61 return (*m_trackStateVector.rbegin()).GetDirection();
62}
63
64} // namespace lar_content
Header file for the calo hit class.
Header file for the lar pfo class.
const pandora::CartesianVector & GetEndDirection() const
Get end direction.
const pandora::CartesianVector & GetVertexPosition() const
Get vertex position.
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition LArTrackPfo.h:73
const pandora::CartesianVector & GetVertexDirection() const
Get vertex direction.
const pandora::CartesianVector & GetEndPosition() const
Get end position.
LArTrackPfo(const LArTrackPfoParameters &parameters)
Constructor.
CartesianVector class.
ParticleFlowObject class.
StatusCodeException class.