8 #ifndef LAR_THREE_D_SLIDING_CONE_FIT_RESULT_H
9 #define LAR_THREE_D_SLIDING_CONE_FIT_RESULT_H 1
11 #include "Api/PandoraApi.h"
16 #include <unordered_map>
47 SimpleCone(
const pandora::CartesianVector &coneApex,
const pandora::CartesianVector &coneDirection,
const float coneLength,
const float coneTanHalfAngle);
54 const pandora::CartesianVector &
GetConeApex()
const;
84 float GetMeanRT(
const pandora::Cluster *
const pCluster)
const;
104 float GetBoundedHitFraction(
const pandora::Cluster *
const pCluster,
const float coneLength,
const float coneTanHalfAngle)
const;
132 template <
typename T>
174 const float coneLength,
const float coneTanHalfAngle) :
175 m_coneApex(coneApex),
176 m_coneDirection(coneDirection),
177 m_coneLength(coneLength),
178 m_coneTanHalfAngle(coneTanHalfAngle)
234 #endif // #ifndef LAR_THREE_D_SLIDING_CONE_FIT_RESULT_H
float m_coneLength
The cone length.
const ThreeDSlidingFitResult m_slidingFitResult
The sliding fit result for the full cluster.
std::vector< ThreeDSlidingConeFitResult > ThreeDSlidingConeFitResultList
ThreeDSlidingConeFitResult(const T *const pT, const unsigned int slidingFitWindow, const float slidingFitLayerPitch)
Constructor.
std::vector< SimpleCone > SimpleConeList
SimpleCone(const pandora::CartesianVector &coneApex, const pandora::CartesianVector &coneDirection, const float coneLength, const float coneTanHalfAngle)
Constructor.
const ThreeDSlidingFitResult & GetSlidingFitResult() const
Get the sliding fit result for the full cluster.
std::list< pandora::TrackState > TrackStateLinkedList
The track state linked list typedef.
float GetConeTanHalfAngle() const
Get the tangent of the cone half-angle.
void GetSimpleConeList(const unsigned int nLayersForConeFit, const unsigned int nCones, const ConeSelection coneSelection, SimpleConeList &simpleConeList) const
Get the list of simple cones fitted to the three dimensional cluster.
std::map< int, pandora::TrackState > TrackStateMap
pandora::CartesianVector m_coneDirection
The cone direction.
const pandora::CartesianVector & GetConeApex() const
Get the cone apex.
float m_coneTanHalfAngle
The tangent of the cone half-angle.
float GetBoundedHitFraction(const pandora::Cluster *const pCluster) const
Get the fraction of hits in a provided cluster that are bounded within the cone, using fitted cone an...
Header file for the lar three dimensional sliding fit result class.
pandora::CartesianVector m_coneApex
The cone apex.
float GetMeanRT(const pandora::Cluster *const pCluster) const
Get the mean transverse distance to all hits in a cluster (whether contained or not) ...
std::unordered_map< const pandora::Cluster *, ThreeDSlidingConeFitResult > ThreeDSlidingConeFitResultMap
const TrackStateMap & GetTrackStateMap() const
Get the track state map, which caches results from the sliding fit result.
ThreeDSlidingFitResult class.
ConeSelection
ConeSelection enum.
float GetConeLength() const
Get the cone length.
ThreeDSlidingConeFitResult class.
const pandora::CartesianVector & GetConeDirection() const
Get the cone direction.
TrackStateMap m_trackStateMap
The track state map.