10 #include "Objects/Cluster.h" 17 TwoViewDeltaRayOverlapResult::TwoViewDeltaRayOverlapResult() :
18 m_isInitialized(false),
20 m_commonMuonPfoList(),
21 m_pBestMatchedCluster(nullptr),
22 m_matchedClusterList(),
23 m_reducedChiSquared(
std::numeric_limits<float>::max())
30 const Cluster *
const pBestMatchedCluster,
const ClusterList &matchedClusterList,
const float reducedChiSquared) :
62 unsigned int highestNHits(0);
63 const Cluster *pBestMatchedCluster(
nullptr);
67 if (!pMatchedCluster->IsAvailable())
70 if (pMatchedCluster->GetNCaloHits() > highestNHits)
72 highestNHits = pMatchedCluster->GetNCaloHits();
73 pBestMatchedCluster = pMatchedCluster;
77 return pBestMatchedCluster;
102 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
152 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
170 return !(*
this < rhs);
178 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
191 m_downsamplingFactor(0.
f),
192 m_nSamplingPoints(0),
193 m_nMatchedSamplingPoints(0),
194 m_correlationCoefficient(0.
f),
202 const unsigned int nMatchedSamplingPoints,
const float correlationCoefficient,
const TwoViewXOverlap &twoViewXOverlap) :
238 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
TwoViewTransverseOverlapResult & operator=(const TwoViewTransverseOverlapResult &rhs)
Track overlap result assigment operator.
TwoViewTransverseOverlapResult class.
virtual ~TrackTwoViewOverlapResult()
Destructor.
TrackTwoViewOverlapResult & operator=(const TrackTwoViewOverlapResult &rhs)
Track overlap result assigment operator.
float GetReducedChiSquared() const
Get the reduced chi squared value.
pandora::ClusterList m_matchedClusterList
The list of clusters that lie on the projected hits.
TrackTwoViewOverlapResult()
Default constructor.
virtual ~TwoViewDeltaRayOverlapResult()
Destructor.
bool m_isInitialized
Whether the track overlap result has been initialized.
TwoViewDeltaRayOverlapResult()
Default constructor.
float m_reducedChiSquared
The reduced chi squared of the best matched cluster.
bool operator<(const TwoViewTransverseOverlapResult &rhs) const
Track two view overlap result less than operator.
TwoViewTransverseOverlapResult()
Default constructor.
float GetLocallyMatchedFraction() const
Get the locally matched fraction.
pandora::PfoList m_commonMuonPfoList
The list of muon pfos whose clusters lie close to delta ray clusters in all views.
const pandora::Cluster * GetBestMatchedAvailableCluster() const
Get the best matched available cluster.
float GetXSpan0() const
Get the x span in the view 0.
bool operator>(const TrackTwoViewOverlapResult &rhs) const
Track two view overlap result greater than operator.
TwoViewXOverlap m_xOverlap
The x overlap object.
float GetXSpan1() const
Get the x span in the view 1.
const pandora::Cluster * GetBestMatchedCluster() const
Get the best matched cluster.
TwoViewDeltaRayOverlapResult class.
~TwoViewTransverseOverlapResult()
Destructor.
float m_correlationCoefficient
The correlation coefficient.
bool operator<(const TwoViewDeltaRayOverlapResult &rhs) const
Track two view overlap result less than operator.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
TwoViewDeltaRayOverlapResult & operator=(const TwoViewDeltaRayOverlapResult &rhs)
Track overlap result assigment operator.
const pandora::Cluster * m_pBestMatchedCluster
The largest cluster that lies on the projected hits.
float GetTwoViewXOverlapSpan() const
Get the x overlap span.
float m_downsamplingFactor
The downsampling factor.
TrackTwoViewOverlapResult class.
unsigned int m_nSamplingPoints
The number of sampling points.
const pandora::ClusterList & GetMatchedClusterList() const
Get the matched cluster list.
bool operator<(const TrackTwoViewOverlapResult &rhs) const
Track two view overlap result less than operator.
Header file for the lar track two view overlap result class.
TwoViewXOverlap m_twoViewXOverlap
The two view x overlap object.
const pandora::PfoList & GetCommonMuonPfoList() const
Get the common muon pfo list.
bool m_isInitialized
Whether the two view delta ray overlap result has been initialized.
unsigned int m_nMatchedSamplingPoints
The number of matched sampling points.
const TwoViewXOverlap & GetXOverlap() const
Get the x overlap object.