LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
TwoDSlidingFitResult class. More...
#include "LArTwoDSlidingFitResult.h"
Public Member Functions | |
template<typename T > | |
TwoDSlidingFitResult (const T *const pT, const unsigned int layerFitHalfWindow, const float layerPitch, const float axisDeviationLimitForHitDivision=0.95f) | |
Constructor using internal definition of primary axis. More... | |
template<typename T > | |
TwoDSlidingFitResult (const T *const pT, const unsigned int layerFitHalfWindow, const float layerPitch, const pandora::CartesianVector &axisIntercept, const pandora::CartesianVector &axisDirection, const pandora::CartesianVector &orthoDirection, const float axisDeviationLimitForHitDivision=0.95f) | |
Constructor using specified primary axis. The orthogonal axis must be perpendicular to the primary axis. More... | |
TwoDSlidingFitResult (const unsigned int layerFitHalfWindow, const float layerPitch, const pandora::CartesianVector &axisIntercept, const pandora::CartesianVector &axisDirection, const pandora::CartesianVector &orthoDirection, const LayerFitContributionMap &layerFitContributionMap) | |
Constructor using specified primary axis and layer fit contribution map. User is responsible for ensuring that z-pitch, axis intercept and axis direction agree with calculations used to fill the layer fit contribution map. The orthogonal axis must be perpendicular to the primary axis. More... | |
const pandora::Cluster * | GetCluster () const |
Get the address of the cluster, if originally provided. More... | |
unsigned int | GetLayerFitHalfWindow () const |
Get the layer fit half window. More... | |
float | GetLayerPitch () const |
Get the layer pitch, units cm. More... | |
const pandora::CartesianVector & | GetAxisIntercept () const |
Get the axis intercept position. More... | |
const pandora::CartesianVector & | GetAxisDirection () const |
Get the axis direction vector. More... | |
const pandora::CartesianVector & | GetOrthoDirection () const |
Get the orthogonal direction vector. More... | |
const LayerFitResultMap & | GetLayerFitResultMap () const |
Get the layer fit result map. More... | |
const LayerFitContributionMap & | GetLayerFitContributionMap () const |
Get the layer fit contribution map. More... | |
const FitSegmentList & | GetFitSegmentList () const |
Get the fit segment list. More... | |
float | GetLayerFitHalfWindowLength () const |
Get the layer fit half window length. More... | |
int | GetMinLayer () const |
Get the minimum occupied layer in the sliding fit. More... | |
int | GetMaxLayer () const |
Get the maximum occupied layer in the sliding fit. More... | |
void | GetMinAndMaxX (float &minX, float &maxX) const |
Get the minimum and maximum x coordinates associated with the sliding fit. More... | |
void | GetMinAndMaxZ (float &minZ, float &maxZ) const |
Get the minimum and maximum z coordinates associated with the sliding fit. More... | |
int | GetLayer (const float rL) const |
Get layer number for given sliding linear fit longitudinal coordinate. More... | |
float | GetL (const int layer) const |
Get longitudinal coordinate for a given sliding linear fit layer number. More... | |
void | GetLocalPosition (const pandora::CartesianVector &position, float &rL, float &rT) const |
Get local sliding fit coordinates for a given global position. More... | |
void | GetLocalDirection (const pandora::CartesianVector &direction, float &dTdL) const |
Get local sliding fit gradient for a given global direction. More... | |
void | GetGlobalPosition (const float rL, const float rT, pandora::CartesianVector &position) const |
Get global coordinates for given sliding linear fit coordinates. More... | |
void | GetGlobalDirection (const float dTdL, pandora::CartesianVector &direction) const |
Get global direction coordinates for given sliding linear fit gradient. More... | |
pandora::CartesianVector | GetGlobalMinLayerPosition () const |
Get global position corresponding to the fit result in minimum fit layer. More... | |
pandora::CartesianVector | GetGlobalMaxLayerPosition () const |
Get global position corresponding to the fit result in maximum fit layer. More... | |
pandora::CartesianVector | GetGlobalMinLayerDirection () const |
Get global direction corresponding to the fit result in minimum fit layer. More... | |
pandora::CartesianVector | GetGlobalMaxLayerDirection () const |
Get global direction corresponding to the fit result in maximum fit layer. More... | |
float | GetMinLayerRms () const |
Get rms at minimum layer. More... | |
float | GetMaxLayerRms () const |
Get rms at maximum layer. More... | |
float | GetFitRms (const float rL) const |
Get fit rms for a given longitudinal coordinate. More... | |
float | GetCosScatteringAngle (const float rL) const |
Get scattering angle for a given longitudinal coordinate. More... | |
pandora::StatusCode | GetGlobalFitPosition (const float rL, pandora::CartesianVector &position) const |
Get global fit position for a given longitudinal coordinate. More... | |
pandora::StatusCode | GetGlobalFitDirection (const float rL, pandora::CartesianVector &direction) const |
Get global fit direction for a given longitudinal coordinate. More... | |
pandora::StatusCode | GetGlobalFitPositionAtX (const float x, pandora::CartesianVector &position) const |
Get global fit position for a given input x coordinate. More... | |
pandora::StatusCode | GetGlobalFitDirectionAtX (const float x, pandora::CartesianVector &direction) const |
Get global fit direction for a given input x coordinate. More... | |
pandora::StatusCode | GetGlobalFitProjection (const pandora::CartesianVector &inputPosition, pandora::CartesianVector &projectedPosition) const |
Get projected position on global fit for a given position vector. More... | |
pandora::StatusCode | GetGlobalFitPositionListAtX (const float x, pandora::CartesianPointVector &positionList) const |
Get a list of projected positions for a given input x coordinate. More... | |
pandora::StatusCode | GetTransverseProjection (const float x, const FitSegment &fitSegment, pandora::CartesianVector &position) const |
Get projected position for a given input x coordinate and fit segment. More... | |
pandora::StatusCode | GetTransverseProjection (const float x, const FitSegment &fitSegment, pandora::CartesianVector &position, pandora::CartesianVector &direction) const |
Get projected position and direction for a given input x coordinate and fit segment. More... | |
pandora::StatusCode | GetExtrapolatedPosition (const float rL, pandora::CartesianVector &position) const |
Get extrapolated position (beyond span) for a given input coordinate. More... | |
pandora::StatusCode | GetExtrapolatedDirection (const float rL, pandora::CartesianVector &direction) const |
Get extrapolated direction (beyond span) for a given input coordinate. More... | |
pandora::StatusCode | GetExtrapolatedPositionAtX (const float x, pandora::CartesianVector &position) const |
Get extrapolated position (beyond span) for a given input x coordinate. More... | |
const FitSegment & | GetFitSegment (const float rL) const |
Get fit segment for a given longitudinal coordinate. More... | |
template<> | |
TwoDSlidingFitResult (const Cluster *const pCluster, const unsigned int layerFitHalfWindow, const float layerPitch, const float axisDeviationLimitForHitDivision) | |
template<> | |
TwoDSlidingFitResult (const CartesianPointVector *const pPointVector, const unsigned int layerFitHalfWindow, const float layerPitch, const float) | |
template<> | |
TwoDSlidingFitResult (const Cluster *const pCluster, const unsigned int layerFitHalfWindow, const float layerPitch, const CartesianVector &axisIntercept, const CartesianVector &axisDirection, const CartesianVector &orthoDirection, const float axisDeviationLimitForHitDivision) | |
template<> | |
TwoDSlidingFitResult (const CartesianPointVector *const pPointVector, const unsigned int layerFitHalfWindow, const float layerPitch, const CartesianVector &axisIntercept, const CartesianVector &axisDirection, const CartesianVector &orthoDirection, const float) | |
Private Member Functions | |
void | CalculateAxes (const pandora::CartesianPointVector &coordinateVector, const float layerPitch) |
Calculate the longitudinal and transverse axes. More... | |
void | FillLayerFitContributionMap (const pandora::CartesianPointVector &coordinateVector) |
Fill the layer fit contribution map. More... | |
void | PerformSlidingLinearFit () |
Perform the sliding linear fit. More... | |
void | FindSlidingFitSegments () |
Find sliding fit segments; sections with tramsverse direction. More... | |
void | GetMinAndMaxCoordinate (const bool isX, float &min, float &max) const |
Get the minimum and maximum x or z coordinates associated with the sliding fit. More... | |
pandora::CartesianVector | GetGlobalFitPosition (const LayerInterpolation &layerInterpolation) const |
Interpolate a position between two layers. More... | |
pandora::CartesianVector | GetGlobalFitDirection (const LayerInterpolation &layerInterpolation) const |
Interpolate a direction between two layers. More... | |
float | GetFitRms (const LayerInterpolation &layerInterpolation) const |
Interpolate a rms between two layers. More... | |
pandora::StatusCode | LongitudinalInterpolation (const float rL, LayerInterpolation &layerInterpolation) const |
Get the pair of layers surrounding a specified longitudinal position. More... | |
pandora::StatusCode | TransverseInterpolation (const float x, const FitSegment &fitSegment, LayerInterpolation &layerInterpolation) const |
Get the surrounding pair of layers for a specified transverse position and fit segment. More... | |
pandora::StatusCode | TransverseInterpolation (const float x, LayerInterpolationList &layerInterpolationList) const |
Get the a list of surrounding layer pairs for a specified transverse position. More... | |
pandora::StatusCode | GetLongitudinalSurroundingLayers (const float rL, LayerFitResultMap::const_iterator &firstLayerIter, LayerFitResultMap::const_iterator &secondLayerIter) const |
Get iterators for layers surrounding the specified longitudinal position. More... | |
pandora::StatusCode | GetTransverseSurroundingLayers (const float x, const int minLayer, const int maxLayer, LayerFitResultMap::const_iterator &firstLayerIter, LayerFitResultMap::const_iterator &secondLayerIter) const |
Get iterators for layers surrounding a specified transverse position. More... | |
void | GetLongitudinalInterpolationWeights (const float rL, const LayerFitResultMap::const_iterator &firstLayerIter, const LayerFitResultMap::const_iterator &secondLayerIter, double &firstWeight, double &secondWeight) const |
Get interpolation weights for layers surrounding a specified longitudinal position. More... | |
void | GetTransverseInterpolationWeights (const float x, const LayerFitResultMap::const_iterator &firstLayerIter, const LayerFitResultMap::const_iterator &secondLayerIter, double &firstWeight, double &secondWeight) const |
Get interpolation weights for layers surrounding a specified transverse position. More... | |
Private Attributes | |
const pandora::Cluster * | m_pCluster |
The address of the cluster. More... | |
unsigned int | m_layerFitHalfWindow |
The layer fit half window. More... | |
float | m_layerPitch |
The layer pitch, units cm. More... | |
pandora::CartesianVector | m_axisIntercept |
The axis intercept position. More... | |
pandora::CartesianVector | m_axisDirection |
The axis direction vector. More... | |
pandora::CartesianVector | m_orthoDirection |
The orthogonal direction vector. More... | |
LayerFitResultMap | m_layerFitResultMap |
The layer fit result map. More... | |
LayerFitContributionMap | m_layerFitContributionMap |
The layer fit contribution map. More... | |
FitSegmentList | m_fitSegmentList |
The fit segment list. More... | |
TwoDSlidingFitResult class.
Definition at line 23 of file LArTwoDSlidingFitResult.h.
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const T *const | pT, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch, | ||
const float | axisDeviationLimitForHitDivision = 0.95f |
||
) |
Constructor using internal definition of primary axis.
pT | describing the positions to be fitted |
layerFitHalfWindow | the layer fit half window |
layerPitch | the layer pitch, units cm |
axisDeviationLimitForHitDivision | the value of the cosine of the opening angle between the principal axis and xAxis, above which cluster hits are broken into their constituent hits - only used with cluster input |
Referenced by TwoDSlidingFitResult().
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const T *const | pT, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch, | ||
const pandora::CartesianVector & | axisIntercept, | ||
const pandora::CartesianVector & | axisDirection, | ||
const pandora::CartesianVector & | orthoDirection, | ||
const float | axisDeviationLimitForHitDivision = 0.95f |
||
) |
Constructor using specified primary axis. The orthogonal axis must be perpendicular to the primary axis.
pT | describing the positions to be fitted |
layerFitHalfWindow | the layer fit half window |
layerPitch | the layer pitch, units cm |
axisIntercept | the axis intercept position |
axisDirection | the axis direction vector |
orthoDirection | the orthogonal direction vector |
axisDeviationLimitForHitDivision | the value of the cosine of the opening angle between the principal axis and xAxis, above which cluster hits are broken into their constituent hits - only used with cluster input |
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const unsigned int | layerFitHalfWindow, |
const float | layerPitch, | ||
const pandora::CartesianVector & | axisIntercept, | ||
const pandora::CartesianVector & | axisDirection, | ||
const pandora::CartesianVector & | orthoDirection, | ||
const LayerFitContributionMap & | layerFitContributionMap | ||
) |
Constructor using specified primary axis and layer fit contribution map. User is responsible for ensuring that z-pitch, axis intercept and axis direction agree with calculations used to fill the layer fit contribution map. The orthogonal axis must be perpendicular to the primary axis.
layerFitHalfWindow | the layer fit half window |
layerPitch | the layer pitch, units cm |
axisIntercept | the axis intercept position |
axisDirection | the axis direction vector |
orthoDirection | the orthogonal direction vector |
layerFitContributionMap | the layer fit contribution map |
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const Cluster *const | pCluster, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch, | ||
const float | axisDeviationLimitForHitDivision | ||
) |
Definition at line 26 of file LArTwoDSlidingFitResult.cc.
References CalculateAxes(), f, FillLayerFitContributionMap(), FindSlidingFitSegments(), lar_content::LArHitWidthHelper::GetConstituentHitPositionVector(), lar_content::LArHitWidthHelper::GetConstituentHits(), lar_content::LArClusterHelper::GetCoordinateVector(), m_axisDirection, and PerformSlidingLinearFit().
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const CartesianPointVector *const | pPointVector, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch, | ||
const float | |||
) |
Definition at line 60 of file LArTwoDSlidingFitResult.cc.
References CalculateAxes(), FillLayerFitContributionMap(), FindSlidingFitSegments(), and PerformSlidingLinearFit().
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const Cluster *const | pCluster, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch, | ||
const CartesianVector & | axisIntercept, | ||
const CartesianVector & | axisDirection, | ||
const CartesianVector & | orthoDirection, | ||
const float | axisDeviationLimitForHitDivision | ||
) |
Definition at line 78 of file LArTwoDSlidingFitResult.cc.
References f, FillLayerFitContributionMap(), FindSlidingFitSegments(), lar_content::LArHitWidthHelper::GetConstituentHitPositionVector(), lar_content::LArHitWidthHelper::GetConstituentHits(), lar_content::LArClusterHelper::GetCoordinateVector(), m_axisDirection, and PerformSlidingLinearFit().
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const CartesianPointVector *const | pPointVector, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch, | ||
const CartesianVector & | axisIntercept, | ||
const CartesianVector & | axisDirection, | ||
const CartesianVector & | orthoDirection, | ||
const float | |||
) |
Definition at line 110 of file LArTwoDSlidingFitResult.cc.
References FillLayerFitContributionMap(), FindSlidingFitSegments(), m_axisDirection, m_axisIntercept, m_layerFitContributionMap, m_layerFitHalfWindow, m_layerPitch, m_orthoDirection, m_pCluster, PerformSlidingLinearFit(), and TwoDSlidingFitResult().
|
private |
Calculate the longitudinal and transverse axes.
Definition at line 588 of file LArTwoDSlidingFitResult.cc.
References f, m_axisDirection, m_axisIntercept, m_orthoDirection, and lar_content::LArPcaHelper::RunPca().
Referenced by TwoDSlidingFitResult().
|
private |
Fill the layer fit contribution map.
Definition at line 621 of file LArTwoDSlidingFitResult.cc.
References f, GetLayer(), GetLocalPosition(), m_axisDirection, m_layerFitContributionMap, m_layerPitch, and m_orthoDirection.
Referenced by TwoDSlidingFitResult().
|
private |
Find sliding fit segments; sections with tramsverse direction.
Definition at line 744 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), GetLayerFitResultMap(), m_fitSegmentList, lar_content::NEGATIVE_IN_X, lar_content::POSITIVE_IN_X, and lar_content::UNKNOWN.
Referenced by TwoDSlidingFitResult().
|
inline |
Get the axis direction vector.
Definition at line 577 of file LArTwoDSlidingFitResult.h.
References m_axisDirection.
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges().
|
inline |
Get the axis intercept position.
Definition at line 570 of file LArTwoDSlidingFitResult.h.
References m_axisIntercept.
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges().
const pandora::Cluster * lar_content::TwoDSlidingFitResult::GetCluster | ( | ) | const |
Get the address of the cluster, if originally provided.
StatusCodeException |
Definition at line 143 of file LArTwoDSlidingFitResult.cc.
References m_pCluster.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::TracksCrossingGapsTool::CheckXPositionInGap(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointVertex(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::VertexSplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::ThreeDSlidingFitResult::GetCluster(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::CrossGapsAssociationAlgorithm::IsAssociated(), lar_content::CrossGapsAssociationAlgorithm::IsNearCluster(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), lar_content::ThreeViewTrackFragmentsAlgorithm::PerformMainLoop(), lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::Run(), lar_content::CosmicRaySplittingAlgorithm::Run(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::SplitCluster(), lar_content::TrackConsolidationAlgorithm::TrackConsolidationAlgorithm(), and lar_content::TwoDSlidingFitSplittingAlgorithm::TwoDSlidingFitSplittingAlgorithm().
float lar_content::TwoDSlidingFitResult::GetCosScatteringAngle | ( | const float | rL | ) | const |
Get scattering angle for a given longitudinal coordinate.
rL | the longitudinal coordinate |
Definition at line 326 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalFitDirection(), GetGlobalFitPosition(), GetLayerFitHalfWindowLength(), and LongitudinalInterpolation().
Referenced by lar_content::BranchSplittingAlgorithm::FindBestSplitPosition().
StatusCode lar_content::TwoDSlidingFitResult::GetExtrapolatedDirection | ( | const float | rL, |
pandora::CartesianVector & | direction | ||
) | const |
Get extrapolated direction (beyond span) for a given input coordinate.
rL | the input coordinate |
position | the extrapolated direction at these coordinates |
Definition at line 495 of file LArTwoDSlidingFitResult.cc.
References GetGlobalFitDirection(), GetGlobalMaxLayerDirection(), GetGlobalMinLayerDirection(), GetLayer(), GetMaxLayer(), and GetMinLayer().
StatusCode lar_content::TwoDSlidingFitResult::GetExtrapolatedPosition | ( | const float | rL, |
pandora::CartesianVector & | position | ||
) | const |
Get extrapolated position (beyond span) for a given input coordinate.
rL | the input coordinate |
position | the extrapolated position at these coordinates |
Definition at line 466 of file LArTwoDSlidingFitResult.cc.
References GetGlobalFitPosition(), GetGlobalMaxLayerDirection(), GetGlobalMaxLayerPosition(), GetGlobalMinLayerDirection(), GetGlobalMinLayerPosition(), GetL(), GetLayer(), GetMaxLayer(), and GetMinLayer().
Referenced by lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints().
StatusCode lar_content::TwoDSlidingFitResult::GetExtrapolatedPositionAtX | ( | const float | x, |
pandora::CartesianVector & | position | ||
) | const |
Get extrapolated position (beyond span) for a given input x coordinate.
x | the input coordinate |
position | the extrapolated position at these coordinates |
Definition at line 524 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalFitPositionAtX(), GetGlobalMaxLayerDirection(), GetGlobalMaxLayerPosition(), GetGlobalMinLayerDirection(), GetGlobalMinLayerPosition(), GetMaxLayer(), and GetMinLayer().
Referenced by lar_content::CandidateVertexCreationAlgorithm::CreateEndpointVertex(), and lar_content::ClearTransverseTrackHitsTool::GetTransverseTrackHit3D().
float lar_content::TwoDSlidingFitResult::GetFitRms | ( | const float | rL | ) | const |
Get fit rms for a given longitudinal coordinate.
rL | the longitudinal coordinate |
Definition at line 313 of file LArTwoDSlidingFitResult.cc.
References LongitudinalInterpolation().
Referenced by lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), and lar_content::ThreeDSlidingFitResult::GetFitRms().
|
private |
Interpolate a rms between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 876 of file LArTwoDSlidingFitResult.cc.
References lar_content::LayerInterpolation::GetEndLayerIter(), lar_content::LayerInterpolation::GetEndLayerWeight(), lar_content::LayerInterpolation::GetStartLayerIter(), lar_content::LayerInterpolation::GetStartLayerWeight(), and m_layerFitResultMap.
const FitSegment & lar_content::TwoDSlidingFitResult::GetFitSegment | ( | const float | rL | ) | const |
Get fit segment for a given longitudinal coordinate.
rL | the longitudinal coordinate |
Definition at line 570 of file LArTwoDSlidingFitResult.cc.
References lar_content::FitSegment::GetEndLayer(), GetLayer(), lar_content::FitSegment::GetStartLayer(), and m_fitSegmentList.
Referenced by lar_content::ClearLongitudinalTrackHitsTool::GetLongitudinalTrackHit3D(), and lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions().
|
inline |
Get the fit segment list.
Definition at line 605 of file LArTwoDSlidingFitResult.h.
References m_fitSegmentList.
Referenced by lar_content::ThreeViewTransverseTracksAlgorithm::GetFitSegmentTensor().
void lar_content::TwoDSlidingFitResult::GetGlobalDirection | ( | const float | dTdL, |
pandora::CartesianVector & | direction | ||
) | const |
Get global direction coordinates for given sliding linear fit gradient.
dTdL | the transverse coordinate |
direction | to receive the direction cartesian vector |
Definition at line 227 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), and m_axisIntercept.
Referenced by lar_content::ShowerRegionFeatureTool::BuildViewShower(), lar_content::ShowerStartFinderTool::ConvertLongitudinalProjectionToGlobal(), lar_content::TrackRefinementBaseAlgorithm::GetClusterMergingCoordinates(), GetGlobalFitDirection(), GetGlobalMaxLayerDirection(), GetGlobalMinLayerDirection(), lar_content::DeltaRayRemovalTool::IsContaminated(), lar_content::CosmicRayRemovalTool::IsContaminated(), and lar_content::TwoViewCosmicRayRemovalTool::IsContaminated().
pandora::StatusCode lar_content::TwoDSlidingFitResult::GetGlobalFitDirection | ( | const float | rL, |
pandora::CartesianVector & | direction | ||
) | const |
Get global fit direction for a given longitudinal coordinate.
rL | the longitudinal coordinate |
direction | the fitted direction at these coordinates |
Referenced by lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::ShowerAsymmetryFeatureTool::GetAsymmetryForView(), GetCosScatteringAngle(), GetExtrapolatedDirection(), lar_content::ThreeDSlidingFitResult::GetGlobalFitDirection(), GetGlobalFitDirectionAtX(), GetGlobalFitPositionListAtX(), and lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetProjectedPositions().
|
private |
Interpolate a direction between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 848 of file LArTwoDSlidingFitResult.cc.
References f, lar_content::LayerInterpolation::GetEndLayerIter(), lar_content::LayerInterpolation::GetEndLayerWeight(), GetGlobalDirection(), lar_content::LayerInterpolation::GetStartLayerIter(), lar_content::LayerInterpolation::GetStartLayerWeight(), and m_layerFitResultMap.
StatusCode lar_content::TwoDSlidingFitResult::GetGlobalFitDirectionAtX | ( | const float | x, |
pandora::CartesianVector & | direction | ||
) | const |
Get global fit direction for a given input x coordinate.
x | the input coordinate |
direction | the fitted direction at these coordinates |
Definition at line 392 of file LArTwoDSlidingFitResult.cc.
References GetGlobalFitDirection(), and TransverseInterpolation().
pandora::StatusCode lar_content::TwoDSlidingFitResult::GetGlobalFitPosition | ( | const float | rL, |
pandora::CartesianVector & | position | ||
) | const |
Get global fit position for a given longitudinal coordinate.
rL | the longitudinal coordinate |
position | the fitted position at these coordinates |
Referenced by lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::TrackRefinementBaseAlgorithm::GetClusterMergingCoordinates(), GetCosScatteringAngle(), GetExtrapolatedPosition(), lar_content::ThreeDSlidingFitResult::GetGlobalFitPosition(), GetGlobalFitPositionAtX(), GetGlobalFitPositionListAtX(), GetGlobalFitProjection(), lar_content::ConnectionRegionFeatureTool::GetLargest2DKinkFromView(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), and lar_content::CrossGapsAssociationAlgorithm::IsNearCluster().
|
private |
Interpolate a position between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 820 of file LArTwoDSlidingFitResult.cc.
References f, lar_content::LayerInterpolation::GetEndLayerIter(), lar_content::LayerInterpolation::GetEndLayerWeight(), GetGlobalPosition(), lar_content::LayerInterpolation::GetStartLayerIter(), lar_content::LayerInterpolation::GetStartLayerWeight(), and m_layerFitResultMap.
StatusCode lar_content::TwoDSlidingFitResult::GetGlobalFitPositionAtX | ( | const float | x, |
pandora::CartesianVector & | position | ||
) | const |
Get global fit position for a given input x coordinate.
x | the input coordinate |
position | the fitted position at these coordinates |
Definition at line 375 of file LArTwoDSlidingFitResult.cc.
References GetGlobalFitPosition(), and TransverseInterpolation().
Referenced by lar_content::TracksCrossingGapsTool::CheckXPositionInGap(), GetExtrapolatedPositionAtX(), lar_content::CrossGapsAssociationAlgorithm::IsNearCluster(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), and lar_content::TracksCrossingGapsTool::PassesGapChecks().
StatusCode lar_content::TwoDSlidingFitResult::GetGlobalFitPositionListAtX | ( | const float | x, |
pandora::CartesianPointVector & | positionList | ||
) | const |
Get a list of projected positions for a given input x coordinate.
x | the input x coordinate |
positionList | the output list of positions |
Definition at line 418 of file LArTwoDSlidingFitResult.cc.
References GetGlobalFitDirection(), GetGlobalFitPosition(), GetTransverseProjection(), TransverseInterpolation(), and x.
Referenced by lar_content::TrackSplittingTool::CheckSplitPosition(), and lar_content::MultiValuedTransverseTrackHitsTool::GetTransverseTrackHit3D().
StatusCode lar_content::TwoDSlidingFitResult::GetGlobalFitProjection | ( | const pandora::CartesianVector & | inputPosition, |
pandora::CartesianVector & | projectedPosition | ||
) | const |
Get projected position on global fit for a given position vector.
inputPosition | the input coordinate |
projectedPosition | the projected position on the global fit for these coordinates |
Definition at line 409 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalFitPosition(), and GetLocalPosition().
Referenced by lar_content::VertexSplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::MultiValuedLongitudinalTrackHitsTool::GetLongitudinalTrackHit3D(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::ThreeViewLongitudinalTracksAlgorithm::ThreeViewLongitudinalTracksAlgorithm(), and lar_content::TrackConsolidationAlgorithm::TrackConsolidationAlgorithm().
CartesianVector lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerDirection | ( | ) | const |
Get global direction corresponding to the fit result in maximum fit layer.
Definition at line 278 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalDirection(), and m_layerFitResultMap.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::ProtoShowerMatchingTool::AreDirectionsConsistent(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::ShowerRegionFeatureTool::CalculateViewNuVertexConsistencyVariables(), lar_content::ShowerRegionFeatureTool::CalculateViewScatterAngle(), lar_content::ShowerRegionFeatureTool::CalculateViewShowerStartConsistencyVariables(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::ShowerSpineFinderTool::FindShowerSpine(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), and lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::SlidingFitData().
CartesianVector lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerPosition | ( | ) | const |
Get global position corresponding to the fit result in maximum fit layer.
Definition at line 252 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), and m_layerFitResultMap.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ShowerRegionFeatureTool::CalculateViewScatterAngle(), lar_content::ShowerRegionFeatureTool::CalculateViewShowerStartConsistencyVariables(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointCandidates(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointVertex(), lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::VertexSplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::ShowerSpineFinderTool::FindShowerSpine(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), lar_content::LongitudinalTrackHitsBaseTool::GetVertexAndEndPositions(), lar_content::ShowerRegionFeatureTool::GetViewShowerRegionVariables(), lar_content::CrossGapsAssociationAlgorithm::IsAssociated(), lar_content::CutClusterCharacterisationAlgorithm::IsClearTrack(), lar_content::TracksCrossingGapsTool::IsEndOfCluster(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), lar_content::CosmicRayTrackRecoveryAlgorithm::MatchClusters(), lar_content::TwoDShowerFitFeatureTool::Run(), lar_content::TwoDVertexDistanceFeatureTool::Run(), lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::SlidingFitData(), and lar_content::ThreeViewLongitudinalTracksAlgorithm::ThreeViewLongitudinalTracksAlgorithm().
CartesianVector lar_content::TwoDSlidingFitResult::GetGlobalMinLayerDirection | ( | ) | const |
Get global direction corresponding to the fit result in minimum fit layer.
Definition at line 265 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalDirection(), and m_layerFitResultMap.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::ProtoShowerMatchingTool::AreDirectionsConsistent(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::ShowerRegionFeatureTool::CalculateViewNuVertexConsistencyVariables(), lar_content::ShowerRegionFeatureTool::CalculateViewOpeningAngle(), lar_content::ShowerRegionFeatureTool::CalculateViewScatterAngle(), lar_content::ShowerRegionFeatureTool::CalculateViewShowerStartConsistencyVariables(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::ShowerSpineFinderTool::FindShowerSpine(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), lar_content::ShowerRegionFeatureTool::GetViewShowerRegionVariables(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), and lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::SlidingFitData().
CartesianVector lar_content::TwoDSlidingFitResult::GetGlobalMinLayerPosition | ( | ) | const |
Get global position corresponding to the fit result in minimum fit layer.
Definition at line 239 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), and m_layerFitResultMap.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ShowerRegionFeatureTool::CalculateViewScatterAngle(), lar_content::ShowerRegionFeatureTool::CalculateViewShowerStartConsistencyVariables(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointCandidates(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointVertex(), lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::VertexSplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::ShowerSpineFinderTool::FindShowerSpine(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), lar_content::LongitudinalTrackHitsBaseTool::GetVertexAndEndPositions(), lar_content::ShowerRegionFeatureTool::GetViewShowerRegionVariables(), lar_content::CrossGapsAssociationAlgorithm::IsAssociated(), lar_content::CutClusterCharacterisationAlgorithm::IsClearTrack(), lar_content::TracksCrossingGapsTool::IsEndOfCluster(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), lar_content::CosmicRayTrackRecoveryAlgorithm::MatchClusters(), lar_content::TwoDShowerFitFeatureTool::Run(), lar_content::TwoDVertexDistanceFeatureTool::Run(), lar_content::VertexSelectionBaseAlgorithm::SlidingFitData::SlidingFitData(), and lar_content::ThreeViewLongitudinalTracksAlgorithm::ThreeViewLongitudinalTracksAlgorithm().
void lar_content::TwoDSlidingFitResult::GetGlobalPosition | ( | const float | rL, |
const float | rT, | ||
pandora::CartesianVector & | position | ||
) | const |
Get global coordinates for given sliding linear fit coordinates.
rL | the longitudinal coordinate |
rT | the transverse coordinate |
position | to receive the position cartesian vector |
Definition at line 220 of file LArTwoDSlidingFitResult.cc.
References m_axisDirection, m_axisIntercept, and m_orthoDirection.
Referenced by lar_content::ShowerStartFinderTool::BuildShowerRegion(), lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ShowerStartFinderTool::CharacteriseShowerTopology(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), lar_content::ShowerStartFinderTool::ConvertLongitudinalProjectionToGlobal(), FindSlidingFitSegments(), lar_content::ShowerStartFinderTool::GetBoundaryExtremalPoints(), GetGlobalDirection(), GetGlobalFitPosition(), GetGlobalMaxLayerPosition(), GetGlobalMinLayerPosition(), GetMinAndMaxCoordinate(), GetTransverseInterpolationWeights(), GetTransverseSurroundingLayers(), lar_content::CutClusterCharacterisationAlgorithm::IsClearTrack(), and lar_content::ShowerStartFinderTool::ObtainLongitudinalDecomposition().
float lar_content::TwoDSlidingFitResult::GetL | ( | const int | layer | ) | const |
Get longitudinal coordinate for a given sliding linear fit layer number.
layer | the layer number |
Definition at line 190 of file LArTwoDSlidingFitResult.cc.
References f, and m_layerPitch.
Referenced by lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), GetExtrapolatedPosition(), lar_content::ConnectionRegionFeatureTool::GetLargest2DKinkFromView(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), PerformSlidingLinearFit(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::SplitCluster(), and lar_content::ThreeDSlidingFitResult::ThreeDSlidingFitResult().
int lar_content::TwoDSlidingFitResult::GetLayer | ( | const float | rL | ) | const |
Get layer number for given sliding linear fit longitudinal coordinate.
rL | the longitudinal coordinate |
Definition at line 180 of file LArTwoDSlidingFitResult.cc.
References m_layerPitch.
Referenced by lar_content::ShowerStartFinderTool::BuildShowerRegion(), lar_content::ShowerRegionFeatureTool::BuildViewShower(), lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ShowerStartFinderTool::CharacteriseShowerTopology(), FillLayerFitContributionMap(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetFitSegment(), lar_content::ThreeDSlidingFitResult::GetGlobalFitDirection(), lar_content::ThreeDSlidingFitResult::GetGlobalFitPosition(), lar_content::ConnectionRegionFeatureTool::GetLargest2DKinkFromView(), GetLongitudinalSurroundingLayers(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), GetTransverseSurroundingLayers(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), and lar_content::ShowerStartFinderTool::ObtainLongitudinalDecomposition().
|
inline |
Get the layer fit contribution map.
Definition at line 598 of file LArTwoDSlidingFitResult.h.
References m_layerFitContributionMap.
Referenced by PerformSlidingLinearFit().
|
inline |
Get the layer fit half window.
Definition at line 556 of file LArTwoDSlidingFitResult.h.
References m_layerFitHalfWindow.
Referenced by lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::NeutrinoHierarchyAlgorithm::PfoInfo::operator=(), PerformSlidingLinearFit(), and lar_content::NeutrinoHierarchyAlgorithm::PfoInfo::PfoInfo().
float lar_content::TwoDSlidingFitResult::GetLayerFitHalfWindowLength | ( | ) | const |
Get the layer fit half window length.
Definition at line 153 of file LArTwoDSlidingFitResult.cc.
References m_layerFitHalfWindow, and m_layerPitch.
Referenced by lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), and GetCosScatteringAngle().
|
inline |
Get the layer fit result map.
Definition at line 591 of file LArTwoDSlidingFitResult.h.
References m_layerFitResultMap.
Referenced by lar_content::ShowerStartFinderTool::BuildShowerRegion(), lar_content::ShowerRegionFeatureTool::BuildViewShower(), lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ShowerStartFinderTool::CharacteriseShowerTopology(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), lar_content::ShowerStartFinderTool::ConvertLongitudinalProjectionToGlobal(), lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), FindSlidingFitSegments(), lar_content::TrackRefinementBaseAlgorithm::GetClusterMergingCoordinates(), lar_content::ConnectionRegionFeatureTool::GetLargest2DKinkFromView(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::CutClusterCharacterisationAlgorithm::GetShowerFitWidth(), lar_content::CutClusterCharacterisationAlgorithm::IsClearTrack(), lar_content::DeltaRayRemovalTool::IsContaminated(), lar_content::CosmicRayRemovalTool::IsContaminated(), lar_content::TwoViewCosmicRayRemovalTool::IsContaminated(), and lar_content::ShowerStartFinderTool::ObtainLongitudinalDecomposition().
|
inline |
Get the layer pitch, units cm.
Definition at line 563 of file LArTwoDSlidingFitResult.h.
References m_layerPitch.
Referenced by lar_content::CosmicRayTaggingTool::CRCandidate::CalculateFitVariables(), lar_content::ShowerRegionFeatureTool::CalculateViewOpeningAngle(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::TracksCrossingGapsTool::IsEndOfCluster(), lar_content::NeutrinoHierarchyAlgorithm::PfoInfo::operator=(), and lar_content::NeutrinoHierarchyAlgorithm::PfoInfo::PfoInfo().
void lar_content::TwoDSlidingFitResult::GetLocalDirection | ( | const pandora::CartesianVector & | direction, |
float & | dTdL | ||
) | const |
Get local sliding fit gradient for a given global direction.
direction | the direction cartesian vector |
dTdL | to receive the local gradient |
Definition at line 207 of file LArTwoDSlidingFitResult.cc.
References f, GetLocalPosition(), and m_axisIntercept.
Referenced by lar_content::ThreeDSlidingFitResult::GetGlobalFitDirection().
void lar_content::TwoDSlidingFitResult::GetLocalPosition | ( | const pandora::CartesianVector & | position, |
float & | rL, | ||
float & | rT | ||
) | const |
Get local sliding fit coordinates for a given global position.
position | the position cartesian vector |
rL | to receive the longitudinal coordinate |
rT | to receive the transverse coordinate |
Definition at line 197 of file LArTwoDSlidingFitResult.cc.
References m_axisDirection, m_axisIntercept, and m_orthoDirection.
Referenced by lar_content::ShowerStartFinderTool::BuildShowerRegion(), lar_content::OvershootSplittingAlgorithm::BuildSortedIntersectionMap(), lar_content::ShowerRegionFeatureTool::BuildViewShower(), lar_content::ShowerStartFinderTool::CharacteriseShowerTopology(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), lar_content::ShowerSpineFinderTool::CollectSubsectionHits(), FillLayerFitContributionMap(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::ShowerAsymmetryFeatureTool::GetAsymmetryForView(), lar_content::ThreeDSlidingFitResult::GetGlobalFitPosition(), GetGlobalFitProjection(), lar_content::ConnectionRegionFeatureTool::GetLargest2DKinkFromView(), GetLocalDirection(), lar_content::ClearLongitudinalTrackHitsTool::GetLongitudinalTrackHit3D(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetProjectedPositions(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), lar_content::CrossGapsAssociationAlgorithm::IsNearCluster(), lar_content::ShowerStartFinderTool::ObtainLongitudinalDecomposition(), lar_content::TrackRefinementBaseAlgorithm::RemoveOffAxisHitsFromTrack(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::SplitCluster(), lar_content::TrackConsolidationAlgorithm::TrackConsolidationAlgorithm(), and lar_content::TwoDSlidingFitSplittingAlgorithm::TwoDSlidingFitSplittingAlgorithm().
|
private |
Get interpolation weights for layers surrounding a specified longitudinal position.
rL | the longitudinal coordinate |
firstLayerIter | the iterator for the layer below the input coordinate |
secondLayerIter | the iterator for the layer above the input coordinate |
firstWeight | the weight assigned to the layer below the input coordinate |
secondWeight | the weight assigned to the layer above the input coordinate |
Definition at line 1102 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by LongitudinalInterpolation().
|
private |
Get iterators for layers surrounding the specified longitudinal position.
rL | the longitudinal coordinate |
firstLayerIter | to receive the iterator for the layer just below the input coordinate |
secondLayerIter | to receive the iterator for the layer just above the input coordinate |
Definition at line 961 of file LArTwoDSlidingFitResult.cc.
References GetLayer(), and m_layerFitResultMap.
Referenced by LongitudinalInterpolation().
int lar_content::TwoDSlidingFitResult::GetMaxLayer | ( | ) | const |
Get the maximum occupied layer in the sliding fit.
the | maximum occupied layer in the sliding fit |
Definition at line 170 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::ShowerStartFinderTool::CharacteriseShowerTopology(), lar_content::TrackRefinementBaseAlgorithm::GetClusterMergingCoordinates(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeDSlidingFitResult::GetMaxLayer(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::SplitCluster(), lar_content::ThreeViewTransverseTracksAlgorithm::ThreeViewTransverseTracksAlgorithm(), lar_content::BoundedClusterMopUpAlgorithm::XSampling::XSampling(), and lar_content::ThreeViewShowersAlgorithm::XSampling::XSampling().
float lar_content::TwoDSlidingFitResult::GetMaxLayerRms | ( | ) | const |
Get rms at maximum layer.
Definition at line 302 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by lar_content::LArPointingCluster::BuildPointingCluster(), and lar_content::ThreeDSlidingFitResult::GetMaxLayerRms().
|
private |
Get the minimum and maximum x or z coordinates associated with the sliding fit.
isX | whether to provide extremal x or z coordinates |
to | receive the min coordinate value |
to | receive the max coordinate value |
Definition at line 800 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), and m_layerFitResultMap.
Referenced by GetMinAndMaxX(), and GetMinAndMaxZ().
|
inline |
Get the minimum and maximum x coordinates associated with the sliding fit.
to | receive the min x value |
to | receive the max x value |
Definition at line 612 of file LArTwoDSlidingFitResult.h.
References GetMinAndMaxCoordinate().
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), lar_content::BoundedClusterMopUpAlgorithm::XSampling::XSampling(), and lar_content::ThreeViewShowersAlgorithm::XSampling::XSampling().
|
inline |
Get the minimum and maximum z coordinates associated with the sliding fit.
to | receive the min z value |
to | receive the max z value |
Definition at line 619 of file LArTwoDSlidingFitResult.h.
References GetMinAndMaxCoordinate().
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges().
int lar_content::TwoDSlidingFitResult::GetMinLayer | ( | ) | const |
Get the minimum occupied layer in the sliding fit.
the | minimum occupied layer in the sliding fit |
Definition at line 160 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::TrackRefinementBaseAlgorithm::GetClusterMergingCoordinates(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeDSlidingFitResult::GetMinLayer(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoViewThreeDKinkTool::GetXSamplingPoint(), lar_content::ThreeViewTransverseTracksAlgorithm::ThreeViewTransverseTracksAlgorithm(), lar_content::BoundedClusterMopUpAlgorithm::XSampling::XSampling(), and lar_content::ThreeViewShowersAlgorithm::XSampling::XSampling().
float lar_content::TwoDSlidingFitResult::GetMinLayerRms | ( | ) | const |
Get rms at minimum layer.
Definition at line 291 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by lar_content::LArPointingCluster::BuildPointingCluster(), and lar_content::ThreeDSlidingFitResult::GetMinLayerRms().
|
inline |
Get the orthogonal direction vector.
Definition at line 584 of file LArTwoDSlidingFitResult.h.
References m_orthoDirection.
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges().
|
private |
Get interpolation weights for layers surrounding a specified transverse position.
x | the transverse coordinate |
firstLayerIter | the iterator for the layer below the input coordinate |
secondLayerIter | the iterator for the layer above the input coordinate |
firstWeight | the weight assigned to the layer below the input coordinate |
firstWeight | the weight assigned to the layer above the input coordinate |
Definition at line 1125 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), and m_layerFitResultMap.
Referenced by TransverseInterpolation().
pandora::StatusCode lar_content::TwoDSlidingFitResult::GetTransverseProjection | ( | const float | x, |
const FitSegment & | fitSegment, | ||
pandora::CartesianVector & | position | ||
) | const |
Get projected position for a given input x coordinate and fit segment.
x | the input x coordinate |
fitSegment | the portion of sliding linear fit |
position | the output position |
Referenced by GetGlobalFitPositionListAtX(), lar_content::ClearLongitudinalTrackHitsTool::GetLongitudinalTrackHit3D(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), and lar_content::ThreeViewTransverseTracksAlgorithm::GetSegmentOverlap().
pandora::StatusCode lar_content::TwoDSlidingFitResult::GetTransverseProjection | ( | const float | x, |
const FitSegment & | fitSegment, | ||
pandora::CartesianVector & | position, | ||
pandora::CartesianVector & | direction | ||
) | const |
Get projected position and direction for a given input x coordinate and fit segment.
x | the input x coordinate |
fitSegment | the portion of sliding linear fit |
position | the output position |
position | the output direction |
|
private |
Get iterators for layers surrounding a specified transverse position.
x | the transverse coordinate |
minLayer | the minimum allowed layer |
maxLayer | the maximum allowed layer |
firstLayerIter | to receive the iterator for the layer just below the input coordinate |
secondLayerIter | to receive the iterator for the layer just above the input coordinate |
Definition at line 1018 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), GetLayer(), m_layerFitResultMap, and x.
Referenced by TransverseInterpolation().
|
private |
Get the pair of layers surrounding a specified longitudinal position.
rL | the longitudinal coordinate |
layerInterpolation | to receive the populated layer interpolation object |
Definition at line 902 of file LArTwoDSlidingFitResult.cc.
References GetLongitudinalInterpolationWeights(), and GetLongitudinalSurroundingLayers().
Referenced by GetCosScatteringAngle(), and GetFitRms().
|
private |
Perform the sliding linear fit.
Definition at line 643 of file LArTwoDSlidingFitResult.cc.
References GetL(), GetLayerFitContributionMap(), GetLayerFitHalfWindow(), m_layerFitContributionMap, m_layerFitResultMap, and m_layerPitch.
Referenced by TwoDSlidingFitResult().
|
private |
Get the surrounding pair of layers for a specified transverse position and fit segment.
x | the input coordinate |
fitSegment | the fit segment |
layerInterpolation | to receive the populated layer interpolation object |
Definition at line 920 of file LArTwoDSlidingFitResult.cc.
References lar_content::FitSegment::GetEndLayer(), lar_content::FitSegment::GetStartLayer(), GetTransverseInterpolationWeights(), and GetTransverseSurroundingLayers().
Referenced by GetGlobalFitDirectionAtX(), GetGlobalFitPositionAtX(), GetGlobalFitPositionListAtX(), and TransverseInterpolation().
|
private |
Get the a list of surrounding layer pairs for a specified transverse position.
x | the input coordinate |
layerInterpolationList | the output list of layer interpolation objects |
Definition at line 939 of file LArTwoDSlidingFitResult.cc.
References m_fitSegmentList, and TransverseInterpolation().
|
private |
The axis direction vector.
Definition at line 543 of file LArTwoDSlidingFitResult.h.
Referenced by CalculateAxes(), FillLayerFitContributionMap(), GetAxisDirection(), GetGlobalPosition(), GetLocalPosition(), and TwoDSlidingFitResult().
|
private |
The axis intercept position.
Definition at line 542 of file LArTwoDSlidingFitResult.h.
Referenced by CalculateAxes(), GetAxisIntercept(), GetGlobalDirection(), GetGlobalPosition(), GetLocalDirection(), GetLocalPosition(), and TwoDSlidingFitResult().
|
private |
The fit segment list.
Definition at line 547 of file LArTwoDSlidingFitResult.h.
Referenced by FindSlidingFitSegments(), GetFitSegment(), GetFitSegmentList(), and TransverseInterpolation().
|
private |
The layer fit contribution map.
Definition at line 546 of file LArTwoDSlidingFitResult.h.
Referenced by FillLayerFitContributionMap(), GetLayerFitContributionMap(), PerformSlidingLinearFit(), and TwoDSlidingFitResult().
|
private |
The layer fit half window.
Definition at line 540 of file LArTwoDSlidingFitResult.h.
Referenced by GetLayerFitHalfWindow(), GetLayerFitHalfWindowLength(), and TwoDSlidingFitResult().
|
private |
The layer fit result map.
Definition at line 545 of file LArTwoDSlidingFitResult.h.
Referenced by GetFitRms(), GetGlobalFitDirection(), GetGlobalFitPosition(), GetGlobalMaxLayerDirection(), GetGlobalMaxLayerPosition(), GetGlobalMinLayerDirection(), GetGlobalMinLayerPosition(), GetLayerFitResultMap(), GetLongitudinalInterpolationWeights(), GetLongitudinalSurroundingLayers(), GetMaxLayer(), GetMaxLayerRms(), GetMinAndMaxCoordinate(), GetMinLayer(), GetMinLayerRms(), GetTransverseInterpolationWeights(), GetTransverseSurroundingLayers(), and PerformSlidingLinearFit().
|
private |
The layer pitch, units cm.
Definition at line 541 of file LArTwoDSlidingFitResult.h.
Referenced by FillLayerFitContributionMap(), GetL(), GetLayer(), GetLayerFitHalfWindowLength(), GetLayerPitch(), PerformSlidingLinearFit(), and TwoDSlidingFitResult().
|
private |
The orthogonal direction vector.
Definition at line 544 of file LArTwoDSlidingFitResult.h.
Referenced by CalculateAxes(), FillLayerFitContributionMap(), GetGlobalPosition(), GetLocalPosition(), GetOrthoDirection(), and TwoDSlidingFitResult().
|
private |
The address of the cluster.
Definition at line 539 of file LArTwoDSlidingFitResult.h.
Referenced by GetCluster(), and TwoDSlidingFitResult().