Find missing tracks, due to merging of multiple particle deposits into single hits during hit creation.
43 ClusterSet usedClusters;
45 overlapTensor.GetSortedKeyClusters(sortedKeyClusters);
47 for (
const Cluster *
const pKeyCluster : sortedKeyClusters)
49 unsigned int nU(0), nV(0), nW(0);
51 overlapTensor.GetConnectedElements(pKeyCluster,
false, elementList, nU, nV, nW);
55 const bool includeU(eIter->GetClusterU()->IsAvailable() && !usedClusters.count(eIter->GetClusterU()));
56 const bool includeV(eIter->GetClusterV()->IsAvailable() && !usedClusters.count(eIter->GetClusterV()));
57 const bool includeW(eIter->GetClusterW()->IsAvailable() && !usedClusters.count(eIter->GetClusterW()));
59 unsigned int nAvailable(0);
70 const TransverseOverlapResult &overlapResult(eIter->GetOverlapResult());
81 if ((overlapResult.GetXOverlap().GetXSpanU() < std::numeric_limits<float>::epsilon()) ||
82 (overlapResult.GetXOverlap().GetXSpanV() < std::numeric_limits<float>::epsilon()) ||
83 (overlapResult.GetXOverlap().GetXSpanW() < std::numeric_limits<float>::epsilon()))
88 const float xOverlapSpan(overlapResult.GetXOverlap().GetXOverlapSpan());
99 ProtoParticle protoParticle;
101 protoParticle.m_clusterList.push_back(eIter->GetClusterU());
103 protoParticle.m_clusterList.push_back(eIter->GetClusterV());
105 protoParticle.m_clusterList.push_back(eIter->GetClusterW());
107 protoParticleVector.push_back(protoParticle);
108 usedClusters.insert(eIter->GetClusterU());
109 usedClusters.insert(eIter->GetClusterV());
110 usedClusters.insert(eIter->GetClusterW());
float m_maxReducedChiSquared
The max reduced chi squared value for the unavailable tensor element.
float m_minMatchedFraction
The min matched sampling point fraction for the unavailable tensor element.
float m_minXOverlapFraction
The min x overlap fraction for the two available clusters in the tensor element.
std::vector< Element > ElementList
std::vector< art::Ptr< recob::Cluster > > ClusterVector
unsigned int m_minMatchedSamplingPoints
The min number of matched sampling points for the unavailable tensor element.