LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
lar_dl_content::VertexTuple Class Reference

VertexTuple class. More...

#include "VertexTuple.h"

Public Member Functions

 VertexTuple (const pandora::Pandora &pandora, const pandora::CartesianVector &vertexU, const pandora::CartesianVector &vertexV, const pandora::CartesianVector &vertexW)
 
 VertexTuple (const pandora::Pandora &pandora, const pandora::CartesianVector &vertex1, const pandora::CartesianVector &vertex2, const pandora::HitType view1, const pandora::HitType view2)
 
const pandora::CartesianVector & GetPosition () const
 
const pandora::CartesianPointVector & GetComponents () const
 
float GetChi2 () const
 
std::string ToString () const
 

Private Attributes

pandora::CartesianVector m_pos
 Calculated 3D position. More...
 
float m_chi2
 Chi squared of calculated position. More...
 
pandora::CartesianPointVector m_components
 The 2D vertices that contributed to the 3D vertex. More...
 

Detailed Description

VertexTuple class.

Definition at line 18 of file VertexTuple.h.

Constructor & Destructor Documentation

lar_dl_content::VertexTuple::VertexTuple ( const pandora::Pandora &  pandora,
const pandora::CartesianVector &  vertexU,
const pandora::CartesianVector &  vertexV,
const pandora::CartesianVector &  vertexW 
)
lar_dl_content::VertexTuple::VertexTuple ( const pandora::Pandora &  pandora,
const pandora::CartesianVector &  vertex1,
const pandora::CartesianVector &  vertex2,
const pandora::HitType  view1,
const pandora::HitType  view2 
)

Member Function Documentation

float lar_dl_content::VertexTuple::GetChi2 ( ) const

Definition at line 98 of file VertexTuple.cc.

Referenced by lar_dl_content::DlSecondaryVertexingAlgorithm::GetNetworkVertices().

99 {
100  return m_chi2;
101 }
float m_chi2
Chi squared of calculated position.
Definition: VertexTuple.h:34
const CartesianPointVector & lar_dl_content::VertexTuple::GetComponents ( ) const

Definition at line 91 of file VertexTuple.cc.

Referenced by lar_dl_content::DlSecondaryVertexingAlgorithm::GetNetworkVertices().

92 {
93  return m_components;
94 }
pandora::CartesianPointVector m_components
The 2D vertices that contributed to the 3D vertex.
Definition: VertexTuple.h:35
const CartesianVector & lar_dl_content::VertexTuple::GetPosition ( ) const

Definition at line 84 of file VertexTuple.cc.

85 {
86  return m_pos;
87 }
pandora::CartesianVector m_pos
Calculated 3D position.
Definition: VertexTuple.h:33
std::string lar_dl_content::VertexTuple::ToString ( ) const

Definition at line 105 of file VertexTuple.cc.

References util::to_string(), x, y, and z.

106 {
107  const float x{m_pos.GetX()}, y{m_pos.GetY()}, z{m_pos.GetZ()};
108  return "3D pos: (" + std::to_string(x) + ", " + std::to_string(y) + ", " + std::to_string(z) + ") X2 = " + std::to_string(m_chi2);
109 }
Float_t x
Definition: compare.C:6
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:276
decltype(auto) constexpr to_string(T &&obj)
ADL-aware version of std::to_string.
float m_chi2
Chi squared of calculated position.
Definition: VertexTuple.h:34
pandora::CartesianVector m_pos
Calculated 3D position.
Definition: VertexTuple.h:33

Member Data Documentation

float lar_dl_content::VertexTuple::m_chi2
private

Chi squared of calculated position.

Definition at line 34 of file VertexTuple.h.

pandora::CartesianPointVector lar_dl_content::VertexTuple::m_components
private

The 2D vertices that contributed to the 3D vertex.

Definition at line 35 of file VertexTuple.h.

pandora::CartesianVector lar_dl_content::VertexTuple::m_pos
private

Calculated 3D position.

Definition at line 33 of file VertexTuple.h.


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