LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::VertexSelectionBaseAlgorithm::SlidingFitData Class Reference

Sliding fit data class. More...

#include "VertexSelectionBaseAlgorithm.h"

Public Member Functions

 SlidingFitData (const pandora::Cluster *const pCluster, const int slidingFitWindow, const float slidingFitPitch)
 Constructor. More...
 
const pandora::CartesianVector & GetMinLayerDirection () const
 Get the min layer direction. More...
 
const pandora::CartesianVector & GetMaxLayerDirection () const
 Get the max layer direction. More...
 
const pandora::CartesianVector & GetMinLayerPosition () const
 Get the min layer position. More...
 
const pandora::CartesianVector & GetMaxLayerPosition () const
 Get the max layer position. More...
 
const pandora::Cluster * GetCluster () const
 Get a pointer to the corresponding cluster. More...
 

Private Attributes

pandora::CartesianVector m_minLayerDirection
 The direction of the fit at the min layer. More...
 
pandora::CartesianVector m_maxLayerDirection
 The direction of the fit at the min layer. More...
 
pandora::CartesianVector m_minLayerPosition
 The position of the fit at the max layer. More...
 
pandora::CartesianVector m_maxLayerPosition
 The position of the fit at the max layer. More...
 
const pandora::Cluster * m_pCluster
 Pointer to the corresponding cluster. More...
 

Detailed Description

Sliding fit data class.

Definition at line 117 of file VertexSelectionBaseAlgorithm.h.

Constructor & Destructor Documentation

lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::SlidingFitData ( const pandora::Cluster *const  pCluster,
const int  slidingFitWindow,
const float  slidingFitPitch 
)

Constructor.

Parameters
pClusterpointer to the cluster
slidingFitWindowthe sliding fit window
slidingFitPitchthe sliding fit pitch

Definition at line 303 of file VertexSelectionBaseAlgorithm.cc.

References lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerDirection(), lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerPosition(), lar_content::TwoDSlidingFitResult::GetGlobalMinLayerDirection(), lar_content::TwoDSlidingFitResult::GetGlobalMinLayerPosition(), m_maxLayerDirection, m_maxLayerPosition, m_minLayerDirection, and m_minLayerPosition.

304  :
305  m_minLayerDirection(0.f, 0.f, 0.f),
306  m_maxLayerDirection(0.f, 0.f, 0.f),
307  m_minLayerPosition(0.f, 0.f, 0.f),
308  m_maxLayerPosition(0.f, 0.f, 0.f),
309  m_pCluster(pCluster)
310 {
311  const TwoDSlidingFitResult slidingFitResult(pCluster, slidingFitWindow, slidingFitPitch);
312  m_minLayerDirection = slidingFitResult.GetGlobalMinLayerDirection();
313  m_maxLayerDirection = slidingFitResult.GetGlobalMaxLayerDirection();
314  m_minLayerPosition = slidingFitResult.GetGlobalMinLayerPosition();
315  m_maxLayerPosition = slidingFitResult.GetGlobalMaxLayerPosition();
316 }
const pandora::Cluster * m_pCluster
Pointer to the corresponding cluster.
pandora::CartesianVector m_minLayerPosition
The position of the fit at the max layer.
TFile f
Definition: plotHisto.C:6
pandora::CartesianVector m_maxLayerDirection
The direction of the fit at the min layer.
pandora::CartesianVector m_minLayerDirection
The direction of the fit at the min layer.
pandora::CartesianVector m_maxLayerPosition
The position of the fit at the max layer.

Member Function Documentation

const pandora::Cluster * lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::GetCluster ( ) const
inline

Get a pointer to the corresponding cluster.

Returns
pointer to the corresponding cluster

Definition at line 490 of file VertexSelectionBaseAlgorithm.h.

491 {
492  return m_pCluster;
493 }
const pandora::Cluster * m_pCluster
Pointer to the corresponding cluster.
const pandora::CartesianVector & lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::GetMaxLayerDirection ( ) const
inline

Get the max layer direction.

Returns
the max layer direction

Definition at line 469 of file VertexSelectionBaseAlgorithm.h.

470 {
471  return m_maxLayerDirection;
472 }
pandora::CartesianVector m_maxLayerDirection
The direction of the fit at the min layer.
const pandora::CartesianVector & lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::GetMaxLayerPosition ( ) const
inline

Get the max layer position.

Returns
the max layer position

Definition at line 483 of file VertexSelectionBaseAlgorithm.h.

484 {
485  return m_maxLayerPosition;
486 }
pandora::CartesianVector m_maxLayerPosition
The position of the fit at the max layer.
const pandora::CartesianVector & lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::GetMinLayerDirection ( ) const
inline

Get the min layer direction.

Returns
the min layer direction

Definition at line 462 of file VertexSelectionBaseAlgorithm.h.

463 {
464  return m_minLayerDirection;
465 }
pandora::CartesianVector m_minLayerDirection
The direction of the fit at the min layer.
const pandora::CartesianVector & lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::GetMinLayerPosition ( ) const
inline

Get the min layer position.

Returns
the min layer position

Definition at line 476 of file VertexSelectionBaseAlgorithm.h.

477 {
478  return m_minLayerPosition;
479 }
pandora::CartesianVector m_minLayerPosition
The position of the fit at the max layer.

Member Data Documentation

pandora::CartesianVector lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::m_maxLayerDirection
private

The direction of the fit at the min layer.

Definition at line 166 of file VertexSelectionBaseAlgorithm.h.

Referenced by SlidingFitData().

pandora::CartesianVector lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::m_maxLayerPosition
private

The position of the fit at the max layer.

Definition at line 168 of file VertexSelectionBaseAlgorithm.h.

Referenced by SlidingFitData().

pandora::CartesianVector lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::m_minLayerDirection
private

The direction of the fit at the min layer.

Definition at line 165 of file VertexSelectionBaseAlgorithm.h.

Referenced by SlidingFitData().

pandora::CartesianVector lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::m_minLayerPosition
private

The position of the fit at the max layer.

Definition at line 167 of file VertexSelectionBaseAlgorithm.h.

Referenced by SlidingFitData().

const pandora::Cluster* lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::m_pCluster
private

Pointer to the corresponding cluster.

Definition at line 169 of file VertexSelectionBaseAlgorithm.h.


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