8#ifndef LAR_THREE_VIEW_TRANSVERSE_TRACKS_ALGORITHM_H
9#define LAR_THREE_VIEW_TRANSVERSE_TRACKS_ALGORITHM_H 1
22class TransverseTensorTool;
130 typedef ThreeViewTransverseTracksAlgorithm::MatchingType::TensorType
TensorType;
131 typedef std::vector<TensorType::ElementList::const_iterator>
IteratorList;
Header file for the algorithm class.
Header file for the lar track overlap result class.
Header file for the n view track matching algorithm class.
Header file for the three view matching control class.
NViewTrackMatchingAlgorithm class.
ThreeViewTransverseTracksAlgorithm class.
std::map< unsigned int, FitSegmentMatrix > FitSegmentTensor
float m_minSamplingPointsPerLayer
The minimum number of sampling points per layer to allow particle creation.
ThreeViewTransverseTracksAlgorithm()
Default constructor.
float m_minOverallMatchedFraction
The minimum matched sampling fraction to allow particle creation.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
void CalculateOverlapResult(const pandora::Cluster *const pClusterU, const pandora::Cluster *const pClusterV, const pandora::Cluster *const pClusterW)
Calculate cluster overlap result and store in container.
void ExamineOverlapContainer()
Examine contents of overlap container, collect together best-matching 2D particles and modify cluster...
unsigned int m_maxFitSegmentIndex
The maximum number of fit segments used when identifying best overlap result.
void GetFitSegmentTensor(const TwoDSlidingFitResult &slidingFitResultU, const TwoDSlidingFitResult &slidingFitResultV, const TwoDSlidingFitResult &slidingFitResultW, FitSegmentTensor &fitSegmentTensor) const
Get the number of matched points for three fit segments and accompanying sliding fit results.
std::map< unsigned int, TransverseOverlapResult > FitSegmentToOverlapResultMap
unsigned int m_nMaxTensorToolRepeats
The maximum number of repeat loops over tensor tools.
void GetPreviousOverlapResults(const unsigned int indexU, const unsigned int indexV, const unsigned int indexW, FitSegmentTensor &fitSegmentSumTensor, TransverseOverlapResultVector &transverseOverlapResultVector) const
Get track overlap results for possible connected segments.
float m_minSegmentMatchedFraction
The minimum segment matched sampling fraction to allow segment grouping.
std::vector< TransverseTensorTool * > TensorToolVector
void GetBestOverlapResult(const FitSegmentTensor &fitSegmentTensor, TransverseOverlapResult &bestTransverseOverlapResult) const
Get the best overlap result, by examining the fit segment tensor.
pandora::StatusCode GetSegmentOverlap(const FitSegment &fitSegmentU, const FitSegment &fitSegmentV, const FitSegment &fitSegmentW, const TwoDSlidingFitResult &slidingFitResultU, const TwoDSlidingFitResult &slidingFitResultV, const TwoDSlidingFitResult &slidingFitResultW, TransverseOverlapResult &transverseOverlapResult) const
Get the overlap result for three fit segments and the accompanying sliding fit results.
std::map< unsigned int, FitSegmentToOverlapResultMap > FitSegmentMatrix
TensorToolVector m_algorithmToolVector
The algorithm tool vector.
NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > > BaseAlgorithm
float m_pseudoChi2Cut
The pseudo chi2 cut to identify matched sampling points.
unsigned int m_minOverallMatchedPoints
The minimum number of matched segment sampling points to allow particle creation.
unsigned int m_minSegmentMatchedPoints
The minimum number of matched segment sampling points to allow segment grouping.
TransverseOverlapResult class.
TransverseTensorTool class.
ThreeViewTransverseTracksAlgorithm::MatchingType::TensorType TensorType
std::vector< TensorType::ElementList::const_iterator > IteratorList
virtual bool Run(ThreeViewTransverseTracksAlgorithm *const pAlgorithm, TensorType &overlapTensor)=0
Run the algorithm tool.
TwoDSlidingFitResult class.
std::vector< TransverseOverlapResult > TransverseOverlapResultVector
StatusCode
The StatusCode enum.