Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::TwoDSlidingShowerFitResult Class Reference

TwoDSlidingShowerFitResult class. More...

#include "LArTwoDSlidingShowerFitResult.h"

Collaboration diagram for lar_content::TwoDSlidingShowerFitResult:

Public Member Functions

template<typename T >
 TwoDSlidingShowerFitResult (const T *const pT, const unsigned int slidingFitWindow, const float slidingFitLayerPitch, const float showerEdgeMultiplier=1.f)
 Constructor.
 
const TwoDSlidingFitResultGetShowerFitResult () const
 Get the sliding fit result for the full shower cluster.
 
const TwoDSlidingFitResultGetNegativeEdgeFitResult () const
 Get the sliding fit result for the negative shower edge.
 
const TwoDSlidingFitResultGetPositiveEdgeFitResult () const
 Get the sliding fit result for the positive shower edge.
 
void GetShowerEdges (const float x, const bool widenIfAmbiguity, pandora::FloatVector &edgePositions) const
 Get the most appropriate shower edges at a given x coordinate.
 

Private Types

typedef std::pair< float, float > FitCoordinate
 
typedef std::vector< FitCoordinateFitCoordinateList
 
typedef std::map< int, FitCoordinateListFitCoordinateMap
 

Static Private Member Functions

static TwoDSlidingFitResult LArTwoDShowerEdgeFit (const pandora::Cluster *const pCluster, const TwoDSlidingFitResult &fullShowerFit, const ShowerEdge showerEdge, const float showerEdgeMultiplier)
 Perform two dimensional sliding fit to shower edge, using specified primary axis.
 
static TwoDSlidingFitResult LArTwoDShowerEdgeFit (const pandora::CartesianPointVector *const pPointVector, const TwoDSlidingFitResult &fullShowerFit, const ShowerEdge showerEdge, const float showerEdgeMultiplier)
 Perform two dimensional sliding fit to shower edge, using specified primary axis.
 

Private Attributes

TwoDSlidingFitResult m_showerFitResult
 The sliding fit result for the full shower cluster.
 
TwoDSlidingFitResult m_negativeEdgeFitResult
 The sliding fit result for the negative shower edge.
 
TwoDSlidingFitResult m_positiveEdgeFitResult
 The sliding fit result for the positive shower edge.
 

Detailed Description

Member Typedef Documentation

◆ FitCoordinate

typedef std::pair<float, float> lar_content::TwoDSlidingShowerFitResult::FitCoordinate
private

Definition at line 106 of file LArTwoDSlidingShowerFitResult.h.

◆ FitCoordinateList

◆ FitCoordinateMap

Constructor & Destructor Documentation

◆ TwoDSlidingShowerFitResult()

template<typename T >
template lar_content::TwoDSlidingShowerFitResult::TwoDSlidingShowerFitResult ( const T *const  pT,
const unsigned int  slidingFitWindow,
const float  slidingFitLayerPitch,
const float  showerEdgeMultiplier = 1.f 
)

Constructor.

Parameters
pTdescribing the positions to be fitted
slidingFitWindowthe sliding fit window
slidingFitLayerPitchthe sliding fit z pitch, units cm
showerEdgeMultiplierartificially tune width of shower envelope so as to make it more/less inclusive

Definition at line 25 of file LArTwoDSlidingShowerFitResult.cc.

Member Function Documentation

◆ GetNegativeEdgeFitResult()

const TwoDSlidingFitResult & lar_content::TwoDSlidingShowerFitResult::GetNegativeEdgeFitResult ( ) const
inline

Get the sliding fit result for the negative shower edge.

Returns
the sliding fit result for the negative shower edge

Definition at line 174 of file LArTwoDSlidingShowerFitResult.h.

Here is the caller graph for this function:

◆ GetPositiveEdgeFitResult()

const TwoDSlidingFitResult & lar_content::TwoDSlidingShowerFitResult::GetPositiveEdgeFitResult ( ) const
inline

Get the sliding fit result for the positive shower edge.

Returns
the sliding fit result for the positive shower edge

Definition at line 181 of file LArTwoDSlidingShowerFitResult.h.

Here is the caller graph for this function:

◆ GetShowerEdges()

void lar_content::TwoDSlidingShowerFitResult::GetShowerEdges ( const float  x,
const bool  widenIfAmbiguity,
pandora::FloatVector edgePositions 
) const

Get the most appropriate shower edges at a given x coordinate.

Parameters
xthe x coordinate
widenIfAmbiguitywhether to widen the shower edges in cases of ambiguities (i.e. be generous)
edgePositionsto receive the list of intersections of the shower fit at the given x coordinate

Definition at line 35 of file LArTwoDSlidingShowerFitResult.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetShowerFitResult()

const TwoDSlidingFitResult & lar_content::TwoDSlidingShowerFitResult::GetShowerFitResult ( ) const
inline

Get the sliding fit result for the full shower cluster.

Returns
the sliding fit result for the full shower cluster

Definition at line 167 of file LArTwoDSlidingShowerFitResult.h.

Here is the caller graph for this function:

◆ LArTwoDShowerEdgeFit() [1/2]

TwoDSlidingFitResult lar_content::TwoDSlidingShowerFitResult::LArTwoDShowerEdgeFit ( const pandora::CartesianPointVector *const  pPointVector,
const TwoDSlidingFitResult fullShowerFit,
const ShowerEdge  showerEdge,
const float  showerEdgeMultiplier 
)
staticprivate

Perform two dimensional sliding fit to shower edge, using specified primary axis.

Parameters
pPointVectorthe address of the input point vector
fullShowerFitthe result of fitting the full shower
showerEdgethe shower edge
showerEdgeMultiplierartificially tune width of shower envelope so as to make it more/less inclusive
Returns
the shower edge fit result

Definition at line 101 of file LArTwoDSlidingShowerFitResult.cc.

Here is the call graph for this function:

◆ LArTwoDShowerEdgeFit() [2/2]

TwoDSlidingFitResult lar_content::TwoDSlidingShowerFitResult::LArTwoDShowerEdgeFit ( const pandora::Cluster *const  pCluster,
const TwoDSlidingFitResult fullShowerFit,
const ShowerEdge  showerEdge,
const float  showerEdgeMultiplier 
)
staticprivate

Perform two dimensional sliding fit to shower edge, using specified primary axis.

Parameters
pClusterthe address of the input cluster
fullShowerFitthe result of fitting the full shower
showerEdgethe shower edge
showerEdgeMultiplierartificially tune width of shower envelope so as to make it more/less inclusive
Returns
the shower edge fit result

Definition at line 91 of file LArTwoDSlidingShowerFitResult.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_negativeEdgeFitResult

TwoDSlidingFitResult lar_content::TwoDSlidingShowerFitResult::m_negativeEdgeFitResult
private

The sliding fit result for the negative shower edge.

Definition at line 111 of file LArTwoDSlidingShowerFitResult.h.

◆ m_positiveEdgeFitResult

TwoDSlidingFitResult lar_content::TwoDSlidingShowerFitResult::m_positiveEdgeFitResult
private

The sliding fit result for the positive shower edge.

Definition at line 112 of file LArTwoDSlidingShowerFitResult.h.

◆ m_showerFitResult

TwoDSlidingFitResult lar_content::TwoDSlidingShowerFitResult::m_showerFitResult
private

The sliding fit result for the full shower cluster.

Definition at line 110 of file LArTwoDSlidingShowerFitResult.h.


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