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

TransverseOverlapResult class. More...

#include <LArTrackOverlapResult.h>

Inheritance diagram for lar_content::TransverseOverlapResult:
lar_content::TrackOverlapResult lar_content::DeltaRayOverlapResult

Public Member Functions

 TransverseOverlapResult ()
 Default constructor. More...
 
 TransverseOverlapResult (const unsigned int nMatchedSamplingPoints, const unsigned int nSamplingPoints, const float chi2, const XOverlap &xOverlap)
 Constructor. More...
 
 TransverseOverlapResult (const TransverseOverlapResult &rhs)
 Copy constructor. More...
 
 ~TransverseOverlapResult ()
 Destructor. More...
 
const XOverlapGetXOverlap () const
 Get the x overlap object. More...
 
TransverseOverlapResultoperator= (const TransverseOverlapResult &rhs)
 Track 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

XOverlap m_xOverlap
 The x overlap object. 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

TransverseOverlapResult class.

Definition at line 131 of file LArTrackOverlapResult.h.

Constructor & Destructor Documentation

lar_content::TransverseOverlapResult::TransverseOverlapResult ( )

Default constructor.

Definition at line 120 of file LArTrackOverlapResult.cc.

120  : TrackOverlapResult(), m_xOverlap(XOverlap(0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f))
121 {
122 }
TrackOverlapResult()
Default constructor.
XOverlap m_xOverlap
The x overlap object.
lar_content::TransverseOverlapResult::TransverseOverlapResult ( const unsigned int  nMatchedSamplingPoints,
const unsigned int  nSamplingPoints,
const float  chi2,
const XOverlap xOverlap 
)

Constructor.

Parameters
nMatchedSamplingPoints
nSamplingPoints
chi2
xOverlap

Definition at line 126 of file LArTrackOverlapResult.cc.

127  :
128  TrackOverlapResult(nMatchedSamplingPoints, nSamplingPoints, chi2),
129  m_xOverlap(xOverlap)
130 {
131 }
TrackOverlapResult()
Default constructor.
XOverlap m_xOverlap
The x overlap object.
lar_content::TransverseOverlapResult::TransverseOverlapResult ( const TransverseOverlapResult rhs)

Copy constructor.

Parameters
rhs

Definition at line 135 of file LArTrackOverlapResult.cc.

135  :
136  TrackOverlapResult(rhs),
137  m_xOverlap(rhs.IsInitialized() ? rhs.GetXOverlap() : XOverlap(0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f))
138 {
139 }
TrackOverlapResult()
Default constructor.
XOverlap m_xOverlap
The x overlap object.
lar_content::TransverseOverlapResult::~TransverseOverlapResult ( )

Destructor.

Definition at line 143 of file LArTrackOverlapResult.cc.

144 {
145 }

Member Function Documentation

const XOverlap & lar_content::TransverseOverlapResult::GetXOverlap ( ) const
inline

Get the x overlap object.

Returns
the x overlap object

Definition at line 462 of file LArTrackOverlapResult.h.

463 {
464  if (m_isInitialized)
465  return m_xOverlap;
466 
467  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
468 }
bool m_isInitialized
Whether the track overlap result has been initialized.
XOverlap m_xOverlap
The x overlap object.
TransverseOverlapResult & lar_content::TransverseOverlapResult::operator= ( const TransverseOverlapResult rhs)

Track overlap result assigment operator.

Parameters
rhsthe track overlap result to assign

Definition at line 149 of file LArTrackOverlapResult.cc.

150 {
152 
153  if (rhs.IsInitialized())
154  {
155  m_xOverlap = rhs.GetXOverlap();
156  }
157  else
158  {
159  m_xOverlap = XOverlap(0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f);
160  }
161 
162  return *this;
163 }
TrackOverlapResult & operator=(const TrackOverlapResult &rhs)
Track overlap result assigment operator.
XOverlap m_xOverlap
The x overlap object.

Member Data Documentation

XOverlap lar_content::TransverseOverlapResult::m_xOverlap
private

The x overlap object.

Definition at line 176 of file LArTrackOverlapResult.h.


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