Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
LArPfoObjects.h
Go to the documentation of this file.
1
8#ifndef LAR_PFO_OBJECTS_H
9#define LAR_PFO_OBJECTS_H 1
10
12#include "Objects/TrackState.h"
13
14#include <vector>
15
16namespace pandora
17{
18class CaloHit;
19}
20
21//------------------------------------------------------------------------------------------------------------------------------------------
22
23namespace lar_content
24{
25
30{
31public:
39 LArTrackState(const pandora::CartesianVector &position, const pandora::CartesianVector &direction, const pandora::CaloHit *const pCaloHit);
40
47 LArTrackState(const pandora::CartesianVector &position, const pandora::CartesianVector &direction);
48
55
61 const pandora::CaloHit *GetCaloHit() const;
62
63private:
65};
66
67typedef std::vector<LArTrackState> LArTrackStateVector;
68
69//------------------------------------------------------------------------------------------------------------------------------------------
70
74class LArTrackTrajectoryPoint : public std::pair<float, LArTrackState>
75{
76public:
83 LArTrackTrajectoryPoint(const float projectedDistance, const LArTrackState &larTrackState);
84
92 LArTrackTrajectoryPoint(const float projectedDistance, const LArTrackState &larTrackState, const int index);
93
99 int GetIndex() const;
100
101private:
103};
104
105typedef std::vector<LArTrackTrajectoryPoint> LArTrackTrajectory;
106
107//------------------------------------------------------------------------------------------------------------------------------------------
108
198
199//------------------------------------------------------------------------------------------------------------------------------------------
200//------------------------------------------------------------------------------------------------------------------------------------------
201
202inline LArTrackTrajectoryPoint::LArTrackTrajectoryPoint(const float projectedDistance, const LArTrackState &larTrackState) :
203 std::pair<float, LArTrackState>(projectedDistance, larTrackState),
204 m_index(-1)
205{
206}
207
208//------------------------------------------------------------------------------------------------------------------------------------------
209
210inline LArTrackTrajectoryPoint::LArTrackTrajectoryPoint(const float projectedDistance, const LArTrackState &larTrackState, const int index) :
211 std::pair<float, LArTrackState>(projectedDistance, larTrackState),
212 m_index(index)
213{
214}
215
216//------------------------------------------------------------------------------------------------------------------------------------------
217
219{
220 return m_index;
221}
222
223} // namespace lar_content
224
225#endif // #ifndef LAR_PFO_OBJECTS_H
Header file for the cartesian vector class.
Header file for the track state class.
LArShowerPCA class.
const pandora::CartesianVector & GetPrimaryAxis() const
Return primary axis.
const pandora::CartesianVector & GetTertiaryAxis() const
Return tertiary axis.
const pandora::CartesianVector m_secondaryAxis
The secondary axis.
const pandora::CartesianVector m_primaryAxis
The primary axis.
const pandora::CartesianVector & GetEigenValues() const
Return vector of eigenvalues.
const pandora::CartesianVector & GetAxisLengths() const
Return vector of lengths.
float GetPrimaryLength() const
Return primary length.
const pandora::CartesianVector m_tertiaryAxis
The tertiary axis.
float GetTertiaryLength() const
Return tertiary length.
float GetSecondaryLength() const
Return secondary length.
const pandora::CartesianVector m_eigenValues
The vector of eigenvalues.
const pandora::CartesianVector m_centroid
The centroid.
const pandora::CartesianVector & GetCentroid() const
Return centroid.
const pandora::CartesianVector & GetSecondaryAxis() const
Return secondary axis.
const pandora::CartesianVector m_axisLengths
The vector of lengths.
LArTrackState class.
const pandora::CaloHit * GetCaloHit() const
Return calo hit at this trajectory point.
const pandora::CaloHit * m_pCaloHit
const pandora::CartesianVector & GetDirection() const
Return direction at this trajectory point.
LArTrackTrajectoryPoint class.
LArTrackTrajectoryPoint(const float projectedDistance, const LArTrackState &larTrackState)
Constructor.
int GetIndex() const
Get the index associated with the trajectory point.
int m_index
The index associated with the trajectory point.
CaloHit class.
Definition CaloHit.h:26
CartesianVector class.
TrackState class.
Definition TrackState.h:22
std::vector< LArTrackTrajectoryPoint > LArTrackTrajectory
std::vector< LArTrackState > LArTrackStateVector
ObjectCreationHelper< CaloHitParameters, CaloHitMetadata, pandora::CaloHit > CaloHit