LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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) | |
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) | |
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) | |
template<> | |
TwoDSlidingFitResult (const CartesianPointVector *const pPointVector, const unsigned int layerFitHalfWindow, const float layerPitch) | |
template<> | |
TwoDSlidingFitResult (const Cluster *const pCluster, const unsigned int layerFitHalfWindow, const float layerPitch, const CartesianVector &axisIntercept, const CartesianVector &axisDirection, const CartesianVector &orthoDirection) | |
template<> | |
TwoDSlidingFitResult (const CartesianPointVector *const pPointVector, const unsigned int layerFitHalfWindow, const float layerPitch, const CartesianVector &axisIntercept, const CartesianVector &axisDirection, const CartesianVector &orthoDirection) | |
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 | ||
) |
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 |
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 | ||
) |
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 |
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 | ||
) |
Definition at line 25 of file LArTwoDSlidingFitResult.cc.
References CalculateAxes(), FillLayerFitContributionMap(), FindSlidingFitSegments(), lar_content::LArClusterHelper::GetCoordinateVector(), and PerformSlidingLinearFit().
lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult | ( | const CartesianPointVector *const | pPointVector, |
const unsigned int | layerFitHalfWindow, | ||
const float | layerPitch | ||
) |
Definition at line 42 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 | ||
) |
Definition at line 59 of file LArTwoDSlidingFitResult.cc.
References FillLayerFitContributionMap(), FindSlidingFitSegments(), lar_content::LArClusterHelper::GetCoordinateVector(), 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 | ||
) |
Definition at line 76 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 555 of file LArTwoDSlidingFitResult.cc.
References f, m_axisDirection, m_axisIntercept, m_orthoDirection, max, min, and lar_content::LArPcaHelper::RunPca().
Referenced by TwoDSlidingFitResult().
|
private |
Fill the layer fit contribution map.
Definition at line 588 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 707 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 570 of file LArTwoDSlidingFitResult.h.
References m_axisDirection.
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges().
|
inline |
Get the axis intercept position.
Definition at line 563 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 109 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::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::CrossGapsAssociationAlgorithm::IsAssociated(), lar_content::LArGeometryHelper::IsXSamplingPointInGap(), lar_content::ThreeDTrackFragmentsAlgorithm::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 292 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 462 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 433 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 491 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 279 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 837 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 537 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::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions().
|
inline |
Get the fit segment list.
Definition at line 598 of file LArTwoDSlidingFitResult.h.
References m_fitSegmentList.
Referenced by lar_content::ThreeDTransverseTracksAlgorithm::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 193 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), and m_axisIntercept.
Referenced by GetGlobalFitDirection(), GetGlobalMaxLayerDirection(), and GetGlobalMinLayerDirection().
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(), GetCosScatteringAngle(), GetExtrapolatedDirection(), lar_content::ThreeDSlidingFitResult::GetGlobalFitDirection(), GetGlobalFitDirectionAtX(), GetGlobalFitPositionListAtX(), and lar_content::ShowerAsymmetryFeatureTool::GetShowerAsymmetryForView().
|
private |
Interpolate a direction between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 809 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 358 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(), GetCosScatteringAngle(), GetExtrapolatedPosition(), lar_content::ThreeDSlidingFitResult::GetGlobalFitPosition(), GetGlobalFitPositionAtX(), GetGlobalFitPositionListAtX(), GetGlobalFitProjection(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), and lar_content::CrossGapsAssociationAlgorithm::IsNearCluster().
|
private |
Interpolate a position between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 781 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 341 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 384 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 375 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::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::ThreeDLongitudinalTracksAlgorithm::ThreeDLongitudinalTracksAlgorithm(), 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 244 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalDirection(), and m_layerFitResultMap.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), 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 218 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::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(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), lar_content::LongitudinalTrackHitsBaseTool::GetVertexAndEndPositions(), 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::ThreeDLongitudinalTracksAlgorithm::ThreeDLongitudinalTracksAlgorithm().
CartesianVector lar_content::TwoDSlidingFitResult::GetGlobalMinLayerDirection | ( | ) | const |
Get global direction corresponding to the fit result in minimum fit layer.
Definition at line 231 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalDirection(), and m_layerFitResultMap.
Referenced by lar_content::CrossGapsAssociationAlgorithm::AreClustersAssociated(), lar_content::LArPointingCluster::BuildPointingCluster(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), 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 205 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::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(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::TransverseTrackHitsBaseTool::GetTransverseChi2(), lar_content::LongitudinalTrackHitsBaseTool::GetVertexAndEndPositions(), 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::ThreeDLongitudinalTracksAlgorithm::ThreeDLongitudinalTracksAlgorithm().
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 186 of file LArTwoDSlidingFitResult.cc.
References m_axisDirection, m_axisIntercept, and m_orthoDirection.
Referenced by lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), FindSlidingFitSegments(), GetGlobalDirection(), GetGlobalFitPosition(), GetGlobalMaxLayerPosition(), GetGlobalMinLayerPosition(), GetMinAndMaxCoordinate(), GetTransverseInterpolationWeights(), GetTransverseSurroundingLayers(), and lar_content::CutClusterCharacterisationAlgorithm::IsClearTrack().
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 156 of file LArTwoDSlidingFitResult.cc.
References f, and m_layerPitch.
Referenced by lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), GetExtrapolatedPosition(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::ThreeDKinkBaseTool::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 146 of file LArTwoDSlidingFitResult.cc.
References m_layerPitch.
Referenced by lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), FillLayerFitContributionMap(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetFitSegment(), lar_content::ThreeDSlidingFitResult::GetGlobalFitDirection(), lar_content::ThreeDSlidingFitResult::GetGlobalFitPosition(), GetLongitudinalSurroundingLayers(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), GetTransverseSurroundingLayers(), and lar_content::ThreeDKinkBaseTool::GetXSamplingPoint().
|
inline |
Get the layer fit contribution map.
Definition at line 591 of file LArTwoDSlidingFitResult.h.
References m_layerFitContributionMap.
Referenced by PerformSlidingLinearFit().
|
inline |
Get the layer fit half window.
Definition at line 549 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 119 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 584 of file LArTwoDSlidingFitResult.h.
References m_layerFitResultMap.
Referenced by lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), lar_content::KinkSplittingAlgorithm::FindBestSplitPosition(), FindSlidingFitSegments(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::CutClusterCharacterisationAlgorithm::GetShowerFitWidth(), and lar_content::CutClusterCharacterisationAlgorithm::IsClearTrack().
|
inline |
Get the layer pitch, units cm.
Definition at line 556 of file LArTwoDSlidingFitResult.h.
References m_layerPitch.
Referenced by lar_content::CosmicRayTaggingTool::CRCandidate::CalculateFitVariables(), 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 173 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 163 of file LArTwoDSlidingFitResult.cc.
References m_axisDirection, m_axisIntercept, and m_orthoDirection.
Referenced by lar_content::OvershootSplittingAlgorithm::BuildSortedIntersectionMap(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), FillLayerFitContributionMap(), lar_content::BranchSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::CosmicRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::ThreeDSlidingFitResult::GetGlobalFitPosition(), GetGlobalFitProjection(), GetLocalDirection(), lar_content::ClearLongitudinalTrackHitsTool::GetLongitudinalTrackHit3D(), lar_content::LArParticleIdPlugins::LArMuonId::GetMuonTrackWidth(), lar_content::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::ShowerAsymmetryFeatureTool::GetShowerAsymmetryForView(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::CrossGapsAssociationAlgorithm::IsNearCluster(), 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 1062 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 921 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 136 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by lar_content::LArPointingCluster::BuildPointingCluster(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeDSlidingFitResult::GetMaxLayer(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::SplitCluster(), lar_content::ThreeDTransverseTracksAlgorithm::ThreeDTransverseTracksAlgorithm(), lar_content::BoundedClusterMopUpAlgorithm::XSampling::XSampling(), and lar_content::ThreeDShowersAlgorithm::XSampling::XSampling().
float lar_content::TwoDSlidingFitResult::GetMaxLayerRms | ( | ) | const |
Get rms at maximum layer.
Definition at line 268 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 761 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), m_layerFitResultMap, max, and min.
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 605 of file LArTwoDSlidingFitResult.h.
References GetMinAndMaxCoordinate().
Referenced by lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::BoundedClusterMopUpAlgorithm::XSampling::XSampling(), and lar_content::ThreeDShowersAlgorithm::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 612 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 126 of file LArTwoDSlidingFitResult.cc.
References m_layerFitResultMap.
Referenced by lar_content::LArPointingCluster::BuildPointingCluster(), GetExtrapolatedDirection(), GetExtrapolatedPosition(), GetExtrapolatedPositionAtX(), lar_content::ThreeDSlidingFitResult::GetMinLayer(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), lar_content::ThreeDTransverseTracksAlgorithm::ThreeDTransverseTracksAlgorithm(), lar_content::BoundedClusterMopUpAlgorithm::XSampling::XSampling(), and lar_content::ThreeDShowersAlgorithm::XSampling::XSampling().
float lar_content::TwoDSlidingFitResult::GetMinLayerRms | ( | ) | const |
Get rms at minimum layer.
Definition at line 257 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 577 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 1085 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::ThreeDTrackFragmentsAlgorithm::GetProjectedPositions(), and lar_content::ThreeDTransverseTracksAlgorithm::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 978 of file LArTwoDSlidingFitResult.cc.
References f, GetGlobalPosition(), GetLayer(), m_layerFitResultMap, max, min, 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 863 of file LArTwoDSlidingFitResult.cc.
References GetLongitudinalInterpolationWeights(), and GetLongitudinalSurroundingLayers().
Referenced by GetCosScatteringAngle(), and GetFitRms().
|
private |
Perform the sliding linear fit.
Definition at line 610 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 881 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 899 of file LArTwoDSlidingFitResult.cc.
References m_fitSegmentList, and TransverseInterpolation().
|
private |
The axis direction vector.
Definition at line 536 of file LArTwoDSlidingFitResult.h.
Referenced by CalculateAxes(), FillLayerFitContributionMap(), GetAxisDirection(), GetGlobalPosition(), GetLocalPosition(), and TwoDSlidingFitResult().
|
private |
The axis intercept position.
Definition at line 535 of file LArTwoDSlidingFitResult.h.
Referenced by CalculateAxes(), GetAxisIntercept(), GetGlobalDirection(), GetGlobalPosition(), GetLocalDirection(), GetLocalPosition(), and TwoDSlidingFitResult().
|
private |
The fit segment list.
Definition at line 540 of file LArTwoDSlidingFitResult.h.
Referenced by FindSlidingFitSegments(), GetFitSegment(), GetFitSegmentList(), and TransverseInterpolation().
|
private |
The layer fit contribution map.
Definition at line 539 of file LArTwoDSlidingFitResult.h.
Referenced by FillLayerFitContributionMap(), GetLayerFitContributionMap(), PerformSlidingLinearFit(), and TwoDSlidingFitResult().
|
private |
The layer fit half window.
Definition at line 533 of file LArTwoDSlidingFitResult.h.
Referenced by GetLayerFitHalfWindow(), GetLayerFitHalfWindowLength(), and TwoDSlidingFitResult().
|
private |
The layer fit result map.
Definition at line 538 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 534 of file LArTwoDSlidingFitResult.h.
Referenced by FillLayerFitContributionMap(), GetL(), GetLayer(), GetLayerFitHalfWindowLength(), GetLayerPitch(), PerformSlidingLinearFit(), and TwoDSlidingFitResult().
|
private |
The orthogonal direction vector.
Definition at line 537 of file LArTwoDSlidingFitResult.h.
Referenced by CalculateAxes(), FillLayerFitContributionMap(), GetGlobalPosition(), GetLocalPosition(), GetOrthoDirection(), and TwoDSlidingFitResult().
|
private |
The address of the cluster.
Definition at line 532 of file LArTwoDSlidingFitResult.h.
Referenced by GetCluster(), and TwoDSlidingFitResult().