LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::TrackTwoViewOverlapResult Class Reference

TrackTwoViewOverlapResult class. More...

#include "LArTrackTwoViewOverlapResult.h"

Inheritance diagram for lar_content::TrackTwoViewOverlapResult:
lar_content::TwoViewTransverseOverlapResult

Public Member Functions

 TrackTwoViewOverlapResult ()
 Default constructor. More...
 
 TrackTwoViewOverlapResult (const float matchingScore)
 constructor More...
 
 TrackTwoViewOverlapResult (const TrackTwoViewOverlapResult &rhs)
 Copy constructor. More...
 
virtual ~TrackTwoViewOverlapResult ()
 Destructor. More...
 
bool IsInitialized () const
 Whether the track overlap result has been initialized. More...
 
float GetMatchingScore () const
 Get the matching score of the overlap result. More...
 
bool operator< (const TrackTwoViewOverlapResult &rhs) const
 Track two view overlap result less than operator. More...
 
bool operator> (const TrackTwoViewOverlapResult &rhs) const
 Track two view overlap result greater than operator. More...
 
TrackTwoViewOverlapResultoperator= (const TrackTwoViewOverlapResult &rhs)
 Track overlap result assigment operator. More...
 

Protected Attributes

bool m_isInitialized
 Whether the track overlap result has been initialized. More...
 
float m_matchingScore
 The compatability score for the two objects associated with the overlap result. More...
 

Detailed Description

Constructor & Destructor Documentation

lar_content::TrackTwoViewOverlapResult::TrackTwoViewOverlapResult ( )

Default constructor.

Definition at line 116 of file LArTrackTwoViewOverlapResult.cc.

116  :
117  m_isInitialized(false),
118  m_matchingScore(0)
119 {
120 }
bool m_isInitialized
Whether the track overlap result has been initialized.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
lar_content::TrackTwoViewOverlapResult::TrackTwoViewOverlapResult ( const float  matchingScore)

constructor

Parameters
matchingScore

Definition at line 124 of file LArTrackTwoViewOverlapResult.cc.

124  :
125  m_isInitialized(true),
126  m_matchingScore(matchingScore)
127 {
128 }
bool m_isInitialized
Whether the track overlap result has been initialized.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
lar_content::TrackTwoViewOverlapResult::TrackTwoViewOverlapResult ( const TrackTwoViewOverlapResult rhs)

Copy constructor.

Parameters
rhs

Definition at line 132 of file LArTrackTwoViewOverlapResult.cc.

132  :
133  m_isInitialized(rhs.m_isInitialized),
134  m_matchingScore(rhs.m_matchingScore)
135 {
136 }
bool m_isInitialized
Whether the track overlap result has been initialized.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
lar_content::TrackTwoViewOverlapResult::~TrackTwoViewOverlapResult ( )
virtual

Destructor.

Definition at line 140 of file LArTrackTwoViewOverlapResult.cc.

141 {
142 }

Member Function Documentation

float lar_content::TrackTwoViewOverlapResult::GetMatchingScore ( ) const
inline

Get the matching score of the overlap result.

Returns
matching score

Definition at line 363 of file LArTrackTwoViewOverlapResult.h.

References lar_content::TwoViewDeltaRayOverlapResult::m_isInitialized.

364 {
365  if (m_isInitialized)
366  return m_matchingScore;
367 
368  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
369 }
bool m_isInitialized
Whether the track overlap result has been initialized.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
bool lar_content::TrackTwoViewOverlapResult::IsInitialized ( ) const
inline

Whether the track overlap result has been initialized.

Returns
boolean

Definition at line 356 of file LArTrackTwoViewOverlapResult.h.

References lar_content::TwoViewDeltaRayOverlapResult::m_isInitialized.

Referenced by lar_content::TwoViewTransverseTracksAlgorithm::TwoViewTransverseTracksAlgorithm().

357 {
358  return m_isInitialized;
359 }
bool m_isInitialized
Whether the track overlap result has been initialized.
bool lar_content::TrackTwoViewOverlapResult::operator< ( const TrackTwoViewOverlapResult rhs) const

Track two view overlap result less than operator.

Parameters
rhsthe track two view overlap result for comparison

Definition at line 146 of file LArTrackTwoViewOverlapResult.cc.

References m_isInitialized, and m_matchingScore.

147 {
148  if (this == &rhs)
149  return false;
150 
151  if (!m_isInitialized && !rhs.m_isInitialized)
152  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
153 
154  if (!m_isInitialized)
155  return true;
156 
157  if (!rhs.m_isInitialized)
158  return false;
159 
160  return (m_matchingScore < rhs.m_matchingScore);
161 }
bool m_isInitialized
Whether the track overlap result has been initialized.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
TrackTwoViewOverlapResult & lar_content::TrackTwoViewOverlapResult::operator= ( const TrackTwoViewOverlapResult rhs)

Track overlap result assigment operator.

Parameters
rhsthe track overlap result to assign

Definition at line 175 of file LArTrackTwoViewOverlapResult.cc.

References m_isInitialized, and m_matchingScore.

Referenced by lar_content::TwoViewTransverseOverlapResult::operator=().

176 {
177  if (this == &rhs)
178  throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
179 
180  m_isInitialized = rhs.m_isInitialized;
181  m_matchingScore = rhs.m_matchingScore;
182 
183  return *this;
184 }
bool m_isInitialized
Whether the track overlap result has been initialized.
float m_matchingScore
The compatability score for the two objects associated with the overlap result.
bool lar_content::TrackTwoViewOverlapResult::operator> ( const TrackTwoViewOverlapResult rhs) const

Track two view overlap result greater than operator.

Parameters
rhsthe track two view overlap result for comparison

Definition at line 165 of file LArTrackTwoViewOverlapResult.cc.

166 {
167  if (this == &rhs)
168  return false;
169 
170  return !(*this < rhs);
171 }

Member Data Documentation

bool lar_content::TrackTwoViewOverlapResult::m_isInitialized
protected

Whether the track overlap result has been initialized.

Definition at line 195 of file LArTrackTwoViewOverlapResult.h.

Referenced by operator<(), lar_content::TwoViewTransverseOverlapResult::operator<(), operator=(), and lar_content::TwoViewTransverseOverlapResult::operator=().

float lar_content::TrackTwoViewOverlapResult::m_matchingScore
protected

The compatability score for the two objects associated with the overlap result.

Definition at line 196 of file LArTrackTwoViewOverlapResult.h.

Referenced by operator<(), lar_content::TwoViewTransverseOverlapResult::operator<(), operator=(), and lar_content::TwoViewTransverseOverlapResult::operator=().


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