All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
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

TrackTwoViewOverlapResult class.

Definition at line 132 of file LArTrackTwoViewOverlapResult.h.

Constructor & Destructor Documentation

lar_content::TrackTwoViewOverlapResult::TrackTwoViewOverlapResult ( )

Default constructor.

Definition at line 116 of file LArTrackTwoViewOverlapResult.cc.

116  : m_isInitialized(false), m_matchingScore(0)
117 {
118 }
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 122 of file LArTrackTwoViewOverlapResult.cc.

122  : m_isInitialized(true), m_matchingScore(matchingScore)
123 {
124 }
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 128 of file LArTrackTwoViewOverlapResult.cc.

128  :
129  m_isInitialized(rhs.m_isInitialized),
130  m_matchingScore(rhs.m_matchingScore)
131 {
132 }
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 136 of file LArTrackTwoViewOverlapResult.cc.

137 {
138 }

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.

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.

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 142 of file LArTrackTwoViewOverlapResult.cc.

143 {
144  if (this == &rhs)
145  return false;
146 
147  if (!m_isInitialized && !rhs.m_isInitialized)
148  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
149 
150  if (!m_isInitialized)
151  return true;
152 
153  if (!rhs.m_isInitialized)
154  return false;
155 
156  return (m_matchingScore < rhs.m_matchingScore);
157 }
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 171 of file LArTrackTwoViewOverlapResult.cc.

172 {
173  if (this == &rhs)
174  throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
175 
176  m_isInitialized = rhs.m_isInitialized;
177  m_matchingScore = rhs.m_matchingScore;
178 
179  return *this;
180 }
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 161 of file LArTrackTwoViewOverlapResult.cc.

162 {
163  if (this == &rhs)
164  return false;
165 
166  return !(*this < rhs);
167 }

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.

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.


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