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 |
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.
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.
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.
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.
|
private |
Calculate the longitudinal and transverse axes.
Definition at line 588 of file LArTwoDSlidingFitResult.cc.
|
private |
Fill the layer fit contribution map.
Definition at line 621 of file LArTwoDSlidingFitResult.cc.
|
private |
Find sliding fit segments; sections with tramsverse direction.
Definition at line 744 of file LArTwoDSlidingFitResult.cc.
|
inline |
Get the axis direction vector.
Definition at line 577 of file LArTwoDSlidingFitResult.h.
|
inline |
Get the axis intercept position.
Definition at line 570 of file LArTwoDSlidingFitResult.h.
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.
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.
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.
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.
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.
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.
|
private |
Interpolate a rms between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 876 of file LArTwoDSlidingFitResult.cc.
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.
|
inline |
Get the fit segment list.
Definition at line 605 of file LArTwoDSlidingFitResult.h.
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.
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 |
|
private |
Interpolate a direction between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 848 of file LArTwoDSlidingFitResult.cc.
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.
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 |
|
private |
Interpolate a position between two layers.
layerInterpolation | the pair of surrounding layers |
Definition at line 820 of file LArTwoDSlidingFitResult.cc.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
|
inline |
Get the layer fit contribution map.
Definition at line 598 of file LArTwoDSlidingFitResult.h.
|
inline |
Get the layer fit half window.
Definition at line 556 of file LArTwoDSlidingFitResult.h.
float lar_content::TwoDSlidingFitResult::GetLayerFitHalfWindowLength | ( | ) | const |
Get the layer fit half window length.
Definition at line 153 of file LArTwoDSlidingFitResult.cc.
|
inline |
Get the layer fit result map.
Definition at line 591 of file LArTwoDSlidingFitResult.h.
|
inline |
Get the layer pitch, units cm.
Definition at line 563 of file LArTwoDSlidingFitResult.h.
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.
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.
|
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.
|
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.
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.
float lar_content::TwoDSlidingFitResult::GetMaxLayerRms | ( | ) | const |
Get rms at maximum layer.
Definition at line 302 of file LArTwoDSlidingFitResult.cc.
|
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.
|
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.
|
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.
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.
float lar_content::TwoDSlidingFitResult::GetMinLayerRms | ( | ) | const |
Get rms at minimum layer.
Definition at line 291 of file LArTwoDSlidingFitResult.cc.
|
inline |
Get the orthogonal direction vector.
Definition at line 584 of file LArTwoDSlidingFitResult.h.
|
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.
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 |
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.
|
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.
|
private |
Perform the sliding linear fit.
Definition at line 643 of file LArTwoDSlidingFitResult.cc.
|
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.
|
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.
|
private |
The axis direction vector.
Definition at line 543 of file LArTwoDSlidingFitResult.h.
|
private |
The axis intercept position.
Definition at line 542 of file LArTwoDSlidingFitResult.h.
|
private |
The fit segment list.
Definition at line 547 of file LArTwoDSlidingFitResult.h.
|
private |
The layer fit contribution map.
Definition at line 546 of file LArTwoDSlidingFitResult.h.
|
private |
The layer fit half window.
Definition at line 540 of file LArTwoDSlidingFitResult.h.
|
private |
The layer fit result map.
Definition at line 545 of file LArTwoDSlidingFitResult.h.
|
private |
The layer pitch, units cm.
Definition at line 541 of file LArTwoDSlidingFitResult.h.
|
private |
The orthogonal direction vector.
Definition at line 544 of file LArTwoDSlidingFitResult.h.
|
private |
The address of the cluster.
Definition at line 539 of file LArTwoDSlidingFitResult.h.