8#ifndef TRACK_SPLITTING_TOOL_H
9#define TRACK_SPLITTING_TOOL_H 1
41 Particle(
const TensorType::Element &element);
Header file for the three view transverse tracks algorithm class.
ThreeViewTransverseTracksAlgorithm class.
const pandora::Cluster * m_pCluster1
Address of short cluster in view 1.
const pandora::Cluster * m_pCluster2
Address of short cluster in view 2.
float m_short2MinX
The min x coordinate of short cluster 2.
float m_short2MaxX
The max x coordinate of short cluster 2.
float m_short1MaxX
The max x coordinate of short cluster 1.
float m_short1MinX
The min x coordinate of short cluster 1.
float m_longMaxX
The max x coordinate of the long cluster.
float m_longMinX
The min x coordinate of the long cluster.
const pandora::Cluster * m_pLongCluster
Address of the long cluster.
TrackSplittingTool class.
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
unsigned int m_minMatchedSamplingPointRatio
The min ratio between 1st and 2nd highest msps for simple ambiguity resolution.
float m_maxShortDeltaXFraction
Max x distance between ends of two short clusters (measured as fraction of long cluster x length)
float m_minXOverlapFraction
The min x overlap fraction (between long clusters and short cluster vs. shared overlap)
void FindTracks(ThreeViewTransverseTracksAlgorithm *const pAlgorithm, const TensorType &overlapTensor, SplitPositionMap &splitPositionMap) const
Find remaining tracks, hidden by spurious track segments (and maybe other ambiguities) in the tensor.
float m_minAbsoluteLongDeltaX
Min x distance between ends of short and long clusters (measured as an absolute distance)
float m_minSplitToVertexProjection
Min projected distance between split position and either inner or outer vertex of long cluster.
float m_minLongDeltaXFraction
Min x distance between ends of short and long clusters (measured as fraction of long cluster x length...
float m_maxAbsoluteShortDeltaX
Max x distance between ends of two short clusters (measured as an absolute distance)
bool PassesChecks(ThreeViewTransverseTracksAlgorithm *const pAlgorithm, const TensorType::Element &element, const bool isMinX, pandora::ClusterSet &usedClusters, SplitPositionMap &splitPositionMap) const
Whether a provided tensor element can be used to construct a pfo.
float m_maxSplitVsFitPositionDistance
Max allowed distance between split position and sliding linear fit position at the split x coordinate...
bool CheckSplitPosition(const pandora::CartesianVector &splitPosition, const float splitX, const TwoDSlidingFitResult &longFitResult) const
Check a candidate split position for consistency with the associated track cluster sliding linear fit...
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
bool Run(ThreeViewTransverseTracksAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
void SelectElements(const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, IteratorList &iteratorList) const
Select a list of the relevant elements from a set of connected tensor elements.
unsigned int m_minMatchedSamplingPoints
The min number of matched sampling points for particle creation.
TrackSplittingTool()
Default constructor.
TransverseTensorTool class.
ThreeViewTransverseTracksAlgorithm::MatchingType::TensorType TensorType
std::vector< TensorType::ElementList::const_iterator > IteratorList
TwoDSlidingFitResult class.
std::unordered_map< const pandora::Cluster *, pandora::CartesianPointVector > SplitPositionMap
std::unordered_set< const Cluster * > ClusterSet
StatusCode
The StatusCode enum.