LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::VertexSelectionBaseAlgorithm::VertexScore Class Reference

VertexScore class. More...

#include "VertexSelectionBaseAlgorithm.h"

Public Member Functions

 VertexScore (const pandora::Vertex *const pVertex, const float score)
 Constructor. More...
 
const pandora::Vertex * GetVertex () const
 Get the address of the vertex. More...
 
float GetScore () const
 Get the score. More...
 
bool operator< (const VertexScore &rhs) const
 operator< More...
 

Private Attributes

const pandora::Vertex * m_pVertex
 The address of the vertex. More...
 
float m_score
 The score. More...
 

Detailed Description

VertexScore class.

Definition at line 43 of file VertexSelectionBaseAlgorithm.h.

Constructor & Destructor Documentation

lar_content::VertexSelectionBaseAlgorithm::VertexScore::VertexScore ( const pandora::Vertex *const  pVertex,
const float  score 
)
inline

Constructor.

Parameters
pVertexthe address of the vertex
scorethe score

Definition at line 436 of file VertexSelectionBaseAlgorithm.h.

436  :
437  m_pVertex(pVertex),
438  m_score(score)
439 {
440 }
const pandora::Vertex * m_pVertex
The address of the vertex.

Member Function Documentation

float lar_content::VertexSelectionBaseAlgorithm::VertexScore::GetScore ( ) const
inline

Get the score.

Returns
the score

Definition at line 451 of file VertexSelectionBaseAlgorithm.h.

References m_score.

Referenced by operator<().

const pandora::Vertex * lar_content::VertexSelectionBaseAlgorithm::VertexScore::GetVertex ( ) const
inline

Get the address of the vertex.

Returns
the address of the vertex

Definition at line 444 of file VertexSelectionBaseAlgorithm.h.

References m_pVertex.

445 {
446  return m_pVertex;
447 }
const pandora::Vertex * m_pVertex
The address of the vertex.
bool lar_content::VertexSelectionBaseAlgorithm::VertexScore::operator< ( const VertexScore rhs) const
inline

operator<

Parameters
rhsthe value for comparison
Returns
boolean

Definition at line 458 of file VertexSelectionBaseAlgorithm.h.

References GetScore().

459 {
460  return (this->GetScore() > rhs.GetScore());
461 }

Member Data Documentation

const pandora::Vertex* lar_content::VertexSelectionBaseAlgorithm::VertexScore::m_pVertex
private

The address of the vertex.

Definition at line 78 of file VertexSelectionBaseAlgorithm.h.

Referenced by GetVertex().

float lar_content::VertexSelectionBaseAlgorithm::VertexScore::m_score
private

The score.

Definition at line 79 of file VertexSelectionBaseAlgorithm.h.

Referenced by GetScore().


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