11 #include "Objects/CaloHit.h" 18 LArTrackState::LArTrackState(
const CartesianVector &
position,
const CartesianVector &
direction,
const CaloHit *
const pCaloHit) :
19 TrackState(position, direction),
27 TrackState(position, direction),
36 return this->GetMomentum();
46 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
53 const CartesianVector &tertiaryAxis,
const CartesianVector &eigenValues) :
55 m_primaryAxis(primaryAxis),
56 m_secondaryAxis(secondaryAxis),
57 m_tertiaryAxis(tertiaryAxis),
58 m_eigenValues(eigenValues),
59 m_axisLengths(((eigenValues.GetX() >
std::numeric_limits<
float>::epsilon()) ? 6.
f *
std::sqrt(eigenValues.GetX()) : 0.
f),
60 ((eigenValues.GetY() >
std::numeric_limits<
float>::epsilon()) ? 6.
f *
std::sqrt(eigenValues.GetY()) : 0.
f),
61 ((eigenValues.GetZ() >
std::numeric_limits<
float>::epsilon()) ? 6.
f *
std::sqrt(eigenValues.GetZ()) : 0.
f))
const pandora::CartesianVector & GetCentroid() const
Return centroid.
float GetPrimaryLength() const
Return primary length.
Header file for lar pfo objects.
const pandora::CartesianVector & GetDirection() const
Return direction at this trajectory point.
const pandora::CartesianVector m_eigenValues
The vector of eigenvalues.
const pandora::CartesianVector m_tertiaryAxis
The tertiary axis.
const pandora::CaloHit * GetCaloHit() const
Return calo hit at this trajectory point.
const pandora::CartesianVector & GetEigenValues() const
Return vector of eigenvalues.
float GetTertiaryLength() const
Return tertiary length.
const pandora::CartesianVector m_primaryAxis
The primary axis.
const pandora::CartesianVector & GetAxisLengths() const
Return vector of lengths.
const pandora::CartesianVector m_centroid
The centroid.
const pandora::CartesianVector m_axisLengths
The vector of lengths.
LArShowerPCA(const pandora::CartesianVector ¢roid, const pandora::CartesianVector &primaryAxis, const pandora::CartesianVector &secondaryAxis, const pandora::CartesianVector &tertiaryAxis, const pandora::CartesianVector &eigenvalues)
Constructor.
const pandora::CartesianVector & GetSecondaryAxis() const
Return secondary axis.
const pandora::CartesianVector & GetTertiaryAxis() const
Return tertiary axis.
float GetSecondaryLength() const
Return secondary length.
LArTrackState(const pandora::CartesianVector &position, const pandora::CartesianVector &direction, const pandora::CaloHit *const pCaloHit)
Constructor.
const pandora::CartesianVector m_secondaryAxis
The secondary axis.
const pandora::CartesianVector & GetPrimaryAxis() const
Return primary axis.