Public Member Functions | Private Attributes | List of all members
lar_content::FragmentOverlapResult Class Reference

FragmentOverlapResult class. More...

#include <LArTrackOverlapResult.h>

Inheritance diagram for lar_content::FragmentOverlapResult:
lar_content::TrackOverlapResult

Public Member Functions

 FragmentOverlapResult ()
 Default constructor. More...
 
 FragmentOverlapResult (const TrackOverlapResult trackOverlapResult, const pandora::CaloHitList &caloHitList, const pandora::ClusterList &clusterList)
 Constructor. More...
 
 FragmentOverlapResult (const unsigned int nMatchedSamplingPoints, const unsigned int nSamplingPoints, const float chi2, const pandora::CaloHitList &caloHitList, const pandora::ClusterList &clusterList)
 Constructor. More...
 
 FragmentOverlapResult (const FragmentOverlapResult &rhs)
 Copy constructor. More...
 
 ~FragmentOverlapResult ()
 Destructor. More...
 
const pandora::CaloHitList & GetFragmentCaloHitList () const
 Get the list of fragment-associated hits. More...
 
const pandora::ClusterList & GetFragmentClusterList () const
 Get the list of fragment-associated clusters. More...
 
pandora::HitType GetFragmentHitType () const
 Get the fragment hit type. More...
 
FragmentOverlapResultoperator= (const FragmentOverlapResult &rhs)
 Fragments overlap result assigment operator. More...
 
- Public Member Functions inherited from lar_content::TrackOverlapResult
 TrackOverlapResult ()
 Default constructor. More...
 
 TrackOverlapResult (const unsigned int nMatchedSamplingPoints, const unsigned int nSamplingPoints, const float chi2)
 Constructor. More...
 
 TrackOverlapResult (const TrackOverlapResult &rhs)
 Copy constructor. More...
 
virtual ~TrackOverlapResult ()
 Destructor. More...
 
bool IsInitialized () const
 Whether the track overlap result has been initialized. More...
 
unsigned int GetNMatchedSamplingPoints () const
 Get the number of matched sampling points. More...
 
unsigned int GetNSamplingPoints () const
 Get the number of sampling points. More...
 
float GetMatchedFraction () const
 Get the fraction of sampling points resulting in a match. More...
 
float GetChi2 () const
 Get the absolute chi2 value. More...
 
float GetReducedChi2 () const
 Get the chi2 per samping point value. More...
 
bool operator< (const TrackOverlapResult &rhs) const
 Track overlap result less than operator. More...
 
bool operator> (const TrackOverlapResult &rhs) const
 Track overlap result greater than operator. More...
 
TrackOverlapResultoperator= (const TrackOverlapResult &rhs)
 Track overlap result assigment operator. More...
 

Private Attributes

pandora::CaloHitList m_caloHitList
 The list of fragment-associated hits. More...
 
pandora::ClusterList m_clusterList
 The list of fragment-associated clusters. More...
 

Additional Inherited Members

- Protected Attributes inherited from lar_content::TrackOverlapResult
bool m_isInitialized
 Whether the track overlap result has been initialized. More...
 
unsigned int m_nMatchedSamplingPoints
 The number of matched sampling points. More...
 
unsigned int m_nSamplingPoints
 The number of sampling points. More...
 
float m_matchedFraction
 The fraction of sampling points resulting in a match. More...
 
float m_chi2
 The absolute chi2 value. More...
 
float m_reducedChi2
 The chi2 per samping point value. More...
 

Detailed Description

FragmentOverlapResult class.

Definition at line 268 of file LArTrackOverlapResult.h.

Constructor & Destructor Documentation

lar_content::FragmentOverlapResult::FragmentOverlapResult ( )

Default constructor.

Definition at line 237 of file LArTrackOverlapResult.cc.

238 {
239 }
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
TrackOverlapResult()
Default constructor.
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
lar_content::FragmentOverlapResult::FragmentOverlapResult ( const TrackOverlapResult  trackOverlapResult,
const pandora::CaloHitList &  caloHitList,
const pandora::ClusterList &  clusterList 
)

Constructor.

Parameters
trackOverlapResult
caloHitList
clusterList

Definition at line 242 of file LArTrackOverlapResult.cc.

243  :
244  TrackOverlapResult(trackOverlapResult),
245  m_caloHitList(caloHitList),
246  m_clusterList(clusterList)
247 {
248 }
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
TrackOverlapResult()
Default constructor.
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
lar_content::FragmentOverlapResult::FragmentOverlapResult ( const unsigned int  nMatchedSamplingPoints,
const unsigned int  nSamplingPoints,
const float  chi2,
const pandora::CaloHitList &  caloHitList,
const pandora::ClusterList &  clusterList 
)

Constructor.

Parameters
nMatchedSamplingPoints
nSamplingPoints
chi2
caloHitList
clusterList

Definition at line 252 of file LArTrackOverlapResult.cc.

253  :
254  TrackOverlapResult(nMatchedSamplingPoints, nSamplingPoints, chi2),
255  m_caloHitList(caloHitList),
256  m_clusterList(clusterList)
257 {
258 }
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
TrackOverlapResult()
Default constructor.
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
lar_content::FragmentOverlapResult::FragmentOverlapResult ( const FragmentOverlapResult rhs)

Copy constructor.

Parameters
rhs

Definition at line 262 of file LArTrackOverlapResult.cc.

262  :
263  TrackOverlapResult(rhs),
264  m_caloHitList(rhs.IsInitialized() ? rhs.GetFragmentCaloHitList() : CaloHitList()),
265  m_clusterList(rhs.IsInitialized() ? rhs.GetFragmentClusterList() : ClusterList())
266 {
267 }
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
TrackOverlapResult()
Default constructor.
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
lar_content::FragmentOverlapResult::~FragmentOverlapResult ( )

Destructor.

Definition at line 271 of file LArTrackOverlapResult.cc.

272 {
273 }

Member Function Documentation

const pandora::CaloHitList & lar_content::FragmentOverlapResult::GetFragmentCaloHitList ( ) const
inline

Get the list of fragment-associated hits.

Returns
the list of fragment-associated hits

Definition at line 488 of file LArTrackOverlapResult.h.

489 {
490  return m_caloHitList;
491 }
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
const pandora::ClusterList & lar_content::FragmentOverlapResult::GetFragmentClusterList ( ) const
inline

Get the list of fragment-associated clusters.

Returns
the list of fragment-associated clusters

Definition at line 495 of file LArTrackOverlapResult.h.

496 {
497  return m_clusterList;
498 }
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
pandora::HitType lar_content::FragmentOverlapResult::GetFragmentHitType ( ) const

Get the fragment hit type.

Returns
the fragment hit type

Definition at line 288 of file LArTrackOverlapResult.cc.

289 {
290  if (m_caloHitList.empty())
291  throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
292 
293  return (*(m_caloHitList.begin()))->GetHitType();
294 }
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.
FragmentOverlapResult & lar_content::FragmentOverlapResult::operator= ( const FragmentOverlapResult rhs)

Fragments overlap result assigment operator.

Parameters
rhsthe track overlap result to assign

Definition at line 277 of file LArTrackOverlapResult.cc.

278 {
280  m_caloHitList = rhs.GetFragmentCaloHitList();
281  m_clusterList = rhs.GetFragmentClusterList();
282 
283  return *this;
284 }
pandora::ClusterList m_clusterList
The list of fragment-associated clusters.
TrackOverlapResult & operator=(const TrackOverlapResult &rhs)
Track overlap result assigment operator.
pandora::CaloHitList m_caloHitList
The list of fragment-associated hits.

Member Data Documentation

pandora::CaloHitList lar_content::FragmentOverlapResult::m_caloHitList
private

The list of fragment-associated hits.

Definition at line 338 of file LArTrackOverlapResult.h.

pandora::ClusterList lar_content::FragmentOverlapResult::m_clusterList
private

The list of fragment-associated clusters.

Definition at line 339 of file LArTrackOverlapResult.h.


The documentation for this class was generated from the following files: