LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 177 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 320 of file VertexSelectionBaseAlgorithm.cc.

321  :
322  m_clusterList(clusterList),
324  m_twoDSlidingFitResult(&m_coordinateVector, slidingFitWindow, slidingFitPitch)
325 {
326 }
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 330 of file VertexSelectionBaseAlgorithm.cc.

References lar_content::LArClusterHelper::GetCoordinateVector().

331 {
332  CartesianPointVector coordinateVector;
333 
334  for (const Cluster * const pCluster : clusterList)
335  {
336  CartesianPointVector clusterCoordinateVector;
337  LArClusterHelper::GetCoordinateVector(pCluster, clusterCoordinateVector);
338 
339  coordinateVector.insert(coordinateVector.end(), std::make_move_iterator(clusterCoordinateVector.begin()),
340  std::make_move_iterator(clusterCoordinateVector.end()));
341  }
342 
343  return coordinateVector;
344 }
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 497 of file VertexSelectionBaseAlgorithm.h.

Referenced by lar_content::ShowerAsymmetryFeatureTool::CalculateAsymmetryParameters(), and lar_content::ShowerAsymmetryFeatureTool::ShouldUseShowerCluster().

498 {
499  return m_clusterList;
500 }
const TwoDSlidingFitResult & lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::GetFit ( ) const
inline

Get the 2D sliding linear fit.

Returns
the fit

Definition at line 504 of file VertexSelectionBaseAlgorithm.h.

505 {
506  return m_twoDSlidingFitResult;
507 }
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 213 of file VertexSelectionBaseAlgorithm.h.

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

The coordinate vector.

Definition at line 214 of file VertexSelectionBaseAlgorithm.h.

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

The fit to the hits of the cluster list.

Definition at line 215 of file VertexSelectionBaseAlgorithm.h.


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