9 #include "Objects/CaloHit.h"
11 #include "Pandora/PandoraInternal.h"
20 TrackOverlapResult::TrackOverlapResult() :
21 m_isInitialized(
false),
22 m_nMatchedSamplingPoints(0),
24 m_matchedFraction(0.f),
33 m_isInitialized(
true),
34 m_nMatchedSamplingPoints(nMatchedSamplingPoints),
35 m_nSamplingPoints(nSamplingPoints),
36 m_matchedFraction(0.f),
41 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
50 m_isInitialized(rhs.m_isInitialized),
51 m_nMatchedSamplingPoints(rhs.m_nMatchedSamplingPoints),
52 m_nSamplingPoints(rhs.m_nSamplingPoints),
53 m_matchedFraction(rhs.m_matchedFraction),
55 m_reducedChi2(rhs.m_reducedChi2)
73 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
97 return !(*
this < rhs);
105 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
127 const unsigned int nMatchedSamplingPoints,
const unsigned int nSamplingPoints,
const float chi2,
const XOverlap &xOverlap) :
137 m_xOverlap(rhs.IsInitialized() ? rhs.GetXOverlap() :
XOverlap(0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f))
171 throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
193 m_innerChi2(innerChi2),
194 m_outerChi2(outerChi2)
201 const float chi2,
const float innerChi2,
const float outerChi2) :
203 m_innerChi2(innerChi2),
204 m_outerChi2(outerChi2)
212 m_innerChi2(rhs.IsInitialized() ? rhs.GetInnerChi2() : 0.f),
213 m_outerChi2(rhs.IsInitialized() ? rhs.GetOuterChi2() : 0.f)
243 const TrackOverlapResult trackOverlapResult,
const pandora::CaloHitList &caloHitList,
const pandora::ClusterList &clusterList) :
245 m_caloHitList(caloHitList),
246 m_clusterList(clusterList)
253 const float chi2,
const pandora::CaloHitList &caloHitList,
const pandora::ClusterList &clusterList) :
255 m_caloHitList(caloHitList),
256 m_clusterList(clusterList)
264 m_caloHitList(rhs.IsInitialized() ? rhs.GetFragmentCaloHitList() : CaloHitList()),
265 m_clusterList(rhs.IsInitialized() ? rhs.GetFragmentClusterList() : ClusterList())
291 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
306 const float chi2,
const XOverlap &xOverlap,
const PfoList &commonMuonPfoList) :
308 m_commonMuonPfoList(commonMuonPfoList)
316 m_commonMuonPfoList(rhs.GetCommonMuonPfoList())
LongitudinalOverlapResult class.
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
float m_chi2
The absolute chi2 value.
FragmentOverlapResult class.
unsigned int GetNMatchedSamplingPoints() const
Get the number of matched sampling points.
bool IsInitialized() const
Whether the track overlap result has been initialized.
virtual ~TrackOverlapResult()
Destructor.
FragmentOverlapResult()
Default constructor.
FragmentOverlapResult & operator=(const FragmentOverlapResult &rhs)
Fragments overlap result assigment operator.
float GetInnerChi2() const
~TransverseOverlapResult()
Destructor.
TrackOverlapResult()
Default constructor.
unsigned int m_nMatchedSamplingPoints
The number of matched sampling points.
bool m_isInitialized
Whether the track overlap result has been initialized.
float GetOuterChi2() const
float m_outerChi2
The outer chi squared.
float m_innerChi2
The inner chi squared.
bool operator<(const TrackOverlapResult &rhs) const
Track overlap result less than operator.
LongitudinalOverlapResult()
Default constructor.
const XOverlap & GetXOverlap() const
Get the x overlap object.
~FragmentOverlapResult()
Destructor.
TransverseOverlapResult operator+(const TransverseOverlapResult &lhs, const TransverseOverlapResult &rhs)
Transverse overlap result + operator.
pandora::HitType GetFragmentHitType() const
Get the fragment hit type.
const pandora::CaloHitList & GetFragmentCaloHitList() const
Get the list of fragment-associated hits.
unsigned int GetNSamplingPoints() const
Get the number of sampling points.
TransverseOverlapResult()
Default constructor.
const pandora::PfoList & GetCommonMuonPfoList() const
Get the common muon pfo list.
DeltaRayOverlapResult class.
TransverseOverlapResult class.
TrackOverlapResult class.
LongitudinalOverlapResult & operator=(const LongitudinalOverlapResult &rhs)
Track overlap result assigment operator.
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
TrackOverlapResult & operator=(const TrackOverlapResult &rhs)
Track overlap result assigment operator.
Header file for the lar track overlap result class.
bool operator>(const TrackOverlapResult &rhs) const
Track overlap result greater than operator.
float m_reducedChi2
The chi2 per samping point value.
~LongitudinalOverlapResult()
Destructor.
virtual ~DeltaRayOverlapResult()
Destructor.
pandora::PfoList m_commonMuonPfoList
The list of cosmic ray pfos that, in each view, lie close to the clusters of the tensor element...
unsigned int m_nSamplingPoints
The number of sampling points.
float m_matchedFraction
The fraction of sampling points resulting in a match.
DeltaRayOverlapResult()
Default constructor.
TransverseOverlapResult & operator=(const TransverseOverlapResult &rhs)
Track overlap result assigment operator.
BEGIN_PROLOG don t mess with this pandoraTrackGausCryoW true
const pandora::ClusterList & GetFragmentClusterList() const
Get the list of fragment-associated clusters.
float GetChi2() const
Get the absolute chi2 value.
DeltaRayOverlapResult & operator=(const DeltaRayOverlapResult &rhs)
Track overlap result assigment operator.
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
XOverlap m_xOverlap
The x overlap object.