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

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
 
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...
 

Detailed Description

Definition at line 40 of file DlVertexingAlgorithm.h.

Constructor & Destructor Documentation

lar_dl_content::DlVertexingAlgorithm::VertexTuple::VertexTuple ( const pandora::Pandora &  pandora,
const pandora::CartesianVector &  vertexU,
const pandora::CartesianVector &  vertexV,
const pandora::CartesianVector &  vertexW 
)
lar_dl_content::DlVertexingAlgorithm::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::DlVertexingAlgorithm::VertexTuple::GetChi2 ( ) const

Definition at line 952 of file DlVertexingAlgorithm.cc.

953 {
954  return m_chi2;
955 }
float m_chi2
Chi squared of calculated position.
const CartesianVector & lar_dl_content::DlVertexingAlgorithm::VertexTuple::GetPosition ( ) const

Definition at line 945 of file DlVertexingAlgorithm.cc.

946 {
947  return m_pos;
948 }
pandora::CartesianVector m_pos
Calculated 3D position.
std::string lar_dl_content::DlVertexingAlgorithm::VertexTuple::ToString ( ) const

Definition at line 959 of file DlVertexingAlgorithm.cc.

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

960 {
961  const float x{m_pos.GetX()}, y{m_pos.GetY()}, z{m_pos.GetZ()};
962  return "3D pos: (" + std::to_string(x) + ", " + std::to_string(y) + ", " + std::to_string(z) + ") X2 = " + std::to_string(m_chi2);
963 }
Float_t x
Definition: compare.C:6
pandora::CartesianVector m_pos
Calculated 3D position.
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.

Member Data Documentation

float lar_dl_content::DlVertexingAlgorithm::VertexTuple::m_chi2
private

Chi squared of calculated position.

Definition at line 55 of file DlVertexingAlgorithm.h.

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

Calculated 3D position.

Definition at line 54 of file DlVertexingAlgorithm.h.


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