LArSoft  v09_90_00
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 435 of file VertexSelectionBaseAlgorithm.h.

435  :
436  m_pVertex(pVertex),
437  m_score(score)
438 {
439 }
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 450 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 443 of file VertexSelectionBaseAlgorithm.h.

References m_pVertex.

444 {
445  return m_pVertex;
446 }
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 457 of file VertexSelectionBaseAlgorithm.h.

References GetScore().

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

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: