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

Shower cluster class. More...

#include "VertexSelectionBaseAlgorithm.h"

Public Member Functions

 ShowerCluster (const pandora::ClusterList &clusterList, const int slidingFitWindow, const float slidingFitPitch)
 Constructor. More...
 
const pandora::ClusterList & GetClusters () const
 Get the cluster list. More...
 
const TwoDSlidingFitResultGetFit () const
 Get the 2D sliding linear fit. More...
 
pandora::CartesianPointVector GetClusterListCoordinateVector (const pandora::ClusterList &clusterList) const
 Get the coordinate vector for a cluster list. More...
 

Private Attributes

pandora::ClusterList m_clusterList
 The list of clusters. More...
 
pandora::CartesianPointVector m_coordinateVector
 The coordinate vector. More...
 
TwoDSlidingFitResult m_twoDSlidingFitResult
 The fit to the hits of the cluster list. More...
 

Detailed Description

Shower cluster class.

Definition at line 180 of file VertexSelectionBaseAlgorithm.h.

Constructor & Destructor Documentation

lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::ShowerCluster ( const pandora::ClusterList &  clusterList,
const int  slidingFitWindow,
const float  slidingFitPitch 
)

Constructor.

Parameters
clusterListthe list of clusters
slidingFitWindowthe sliding fit window
slidingFitPitchthe sliding fit pitch

Definition at line 365 of file VertexSelectionBaseAlgorithm.cc.

365  :
366  m_clusterList(clusterList),
368  m_twoDSlidingFitResult(&m_coordinateVector, slidingFitWindow, slidingFitPitch)
369 {
370 }
pandora::CartesianPointVector m_coordinateVector
The coordinate vector.
pandora::CartesianPointVector GetClusterListCoordinateVector(const pandora::ClusterList &clusterList) const
Get the coordinate vector for a cluster list.
TwoDSlidingFitResult m_twoDSlidingFitResult
The fit to the hits of the cluster list.

Member Function Documentation

pandora::CartesianPointVector lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::GetClusterListCoordinateVector ( const pandora::ClusterList &  clusterList) const

Get the coordinate vector for a cluster list.

Parameters
clusterListthe cluster list
Returns
the coordinate vector

Definition at line 374 of file VertexSelectionBaseAlgorithm.cc.

References lar_content::LArClusterHelper::GetCoordinateVector().

375 {
376  CartesianPointVector coordinateVector;
377 
378  for (const Cluster *const pCluster : clusterList)
379  {
380  CartesianPointVector clusterCoordinateVector;
381  LArClusterHelper::GetCoordinateVector(pCluster, clusterCoordinateVector);
382 
383  coordinateVector.insert(coordinateVector.end(), std::make_move_iterator(clusterCoordinateVector.begin()),
384  std::make_move_iterator(clusterCoordinateVector.end()));
385  }
386 
387  return coordinateVector;
388 }
static void GetCoordinateVector(const pandora::Cluster *const pCluster, pandora::CartesianPointVector &coordinateVector)
Get vector of hit coordinates from an input cluster.
const pandora::ClusterList & lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::GetClusters ( ) const
inline

Get the cluster list.

Returns
the cluster list

Definition at line 522 of file VertexSelectionBaseAlgorithm.h.

Referenced by lar_content::ShowerAsymmetryFeatureTool::ShouldUseShowerCluster().

523 {
524  return m_clusterList;
525 }
const TwoDSlidingFitResult & lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::GetFit ( ) const
inline

Get the 2D sliding linear fit.

Returns
the fit

Definition at line 529 of file VertexSelectionBaseAlgorithm.h.

530 {
531  return m_twoDSlidingFitResult;
532 }
TwoDSlidingFitResult m_twoDSlidingFitResult
The fit to the hits of the cluster list.

Member Data Documentation

pandora::ClusterList lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::m_clusterList
private

The list of clusters.

Definition at line 216 of file VertexSelectionBaseAlgorithm.h.

pandora::CartesianPointVector lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::m_coordinateVector
private

The coordinate vector.

Definition at line 217 of file VertexSelectionBaseAlgorithm.h.

TwoDSlidingFitResult lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::m_twoDSlidingFitResult
private

The fit to the hits of the cluster list.

Definition at line 218 of file VertexSelectionBaseAlgorithm.h.


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