ThreeDSlidingFitResult class. More...
#include <LArThreeDSlidingFitResult.h>
Public Member Functions | |
template<typename T > | |
ThreeDSlidingFitResult (const T *const pT, const unsigned int slidingFitWindow, const float slidingFitLayerPitch) | |
Constructor. More... | |
const pandora::Cluster * | GetCluster () const |
Get the address of the cluster. More... | |
const pandora::CartesianVector & | GetAxisIntercept () const |
Get the axis intercept position. More... | |
const pandora::CartesianVector & | GetAxisDirection () const |
Get the axis direction vector. More... | |
const TwoDSlidingFitResult & | GetFirstFitResult () const |
Get the first sliding fit result for this cluster. More... | |
const TwoDSlidingFitResult & | GetSecondFitResult () const |
Get the second sliding fit result for this cluster. More... | |
const pandora::CartesianVector & | GetGlobalMinLayerPosition () const |
Get global position corresponding to the fit result in minimum fit layer. More... | |
const pandora::CartesianVector & | GetGlobalMaxLayerPosition () const |
Get global position corresponding to the fit result in maximum fit layer. More... | |
const pandora::CartesianVector & | GetGlobalMinLayerDirection () const |
Get global direction corresponding to the fit result in minimum fit layer. More... | |
const pandora::CartesianVector & | GetGlobalMaxLayerDirection () const |
Get global direction corresponding to the fit result in maximum fit layer. 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... | |
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 | GetLongitudinalDisplacement (const pandora::CartesianVector &position) const |
Get longitudinal projection onto primary axis. 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... | |
Private Member Functions | |
void | GetGlobalPosition (const float rL, const float rT1, const float rT2, pandora::CartesianVector &position) const |
Get global coordinates for a given pair of sliding linear fit coordinates. More... | |
void | GetGlobalDirection (const float dTdL1, const float dTdL2, pandora::CartesianVector &direction) const |
Get global direction coordinates for a given pair of sliding linear fit gradients. More... | |
Static Private Member Functions | |
static pandora::TrackState | GetPrimaryAxis (const pandora::Cluster *const pCluster, const float slidingFitLayerPitch) |
Calculate the position and direction of the primary axis. More... | |
static pandora::TrackState | GetPrimaryAxis (const pandora::CartesianPointVector *const pPointVector, const float slidingFitLayerPitch) |
Calculate the position and direction of the primary axis. More... | |
static pandora::CartesianVector | GetSeedDirection (const pandora::CartesianVector &axisDirection) |
Generate a seed vector to be used in calculating the orthogonal axes. More... | |
Private Attributes | |
const pandora::TrackState | m_primaryAxis |
The primary axis position and direction. More... | |
const pandora::CartesianVector | m_axisIntercept |
The axis intercept position. More... | |
const pandora::CartesianVector | m_axisDirection |
The axis direction vector. More... | |
const pandora::CartesianVector | m_firstOrthoDirection |
The orthogonal direction vector. More... | |
const pandora::CartesianVector | m_secondOrthoDirection |
The orthogonal direction vector. More... | |
const TwoDSlidingFitResult | m_firstFitResult |
The first sliding fit result. More... | |
const TwoDSlidingFitResult | m_secondFitResult |
The second sliding fit result. More... | |
const int | m_minLayer |
The minimum combined layer. More... | |
const int | m_maxLayer |
The maximum combined layer. More... | |
pandora::CartesianVector | m_minLayerPosition |
The global position at the minimum combined layer. More... | |
pandora::CartesianVector | m_maxLayerPosition |
The global position at the maximum combined layer. More... | |
pandora::CartesianVector | m_minLayerDirection |
The global direction at the minimum combined layer. More... | |
pandora::CartesianVector | m_maxLayerDirection |
The global direction at the maximum combined layer. More... | |
ThreeDSlidingFitResult class.
Definition at line 23 of file LArThreeDSlidingFitResult.h.
template lar_content::ThreeDSlidingFitResult::ThreeDSlidingFitResult | ( | const T *const | pT, |
const unsigned int | slidingFitWindow, | ||
const float | slidingFitLayerPitch | ||
) |
Constructor.
pT | describing the positions to be fitted |
slidingFitWindow | the sliding fit window |
slidingFitLayerPitch | the sliding fit z pitch, units cm |
Definition at line 28 of file LArThreeDSlidingFitResult.cc.
|
inline |
Get the axis direction vector.
Definition at line 243 of file LArThreeDSlidingFitResult.h.
|
inline |
Get the axis intercept position.
Definition at line 236 of file LArThreeDSlidingFitResult.h.
const pandora::Cluster * lar_content::ThreeDSlidingFitResult::GetCluster | ( | ) | const |
Get the address of the cluster.
Definition at line 57 of file LArThreeDSlidingFitResult.cc.
|
inline |
Get the first sliding fit result for this cluster.
Definition at line 250 of file LArThreeDSlidingFitResult.h.
float lar_content::ThreeDSlidingFitResult::GetFitRms | ( | const float | rL | ) | const |
Get fit rms for a given longitudinal coordinate.
rL | the longitudinal coordinate |
Definition at line 104 of file LArThreeDSlidingFitResult.cc.
|
private |
Get global direction coordinates for a given pair of sliding linear fit gradients.
dTdL1 | the first transverse coordinate |
dTdL2 | the second transverse coordinate |
direction | to receive the direction cartesian vector |
Definition at line 194 of file LArThreeDSlidingFitResult.cc.
StatusCode lar_content::ThreeDSlidingFitResult::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 |
Definition at line 154 of file LArThreeDSlidingFitResult.cc.
StatusCode lar_content::ThreeDSlidingFitResult::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 |
Definition at line 121 of file LArThreeDSlidingFitResult.cc.
|
inline |
Get global direction corresponding to the fit result in maximum fit layer.
Definition at line 285 of file LArThreeDSlidingFitResult.h.
|
inline |
Get global position corresponding to the fit result in maximum fit layer.
Definition at line 271 of file LArThreeDSlidingFitResult.h.
|
inline |
Get global direction corresponding to the fit result in minimum fit layer.
Definition at line 278 of file LArThreeDSlidingFitResult.h.
|
inline |
Get global position corresponding to the fit result in minimum fit layer.
Definition at line 264 of file LArThreeDSlidingFitResult.h.
|
private |
Get global coordinates for a given pair of sliding linear fit coordinates.
rL | the longitudinal coordinate |
rT1 | the first transverse coordinate |
rT2 | the second transverse coordinate |
position | to receive the position cartesian vector |
Definition at line 187 of file LArThreeDSlidingFitResult.cc.
float lar_content::ThreeDSlidingFitResult::GetLongitudinalDisplacement | ( | const pandora::CartesianVector & | position | ) | const |
Get longitudinal projection onto primary axis.
position | the input coordinates |
Definition at line 114 of file LArThreeDSlidingFitResult.cc.
int lar_content::ThreeDSlidingFitResult::GetMaxLayer | ( | ) | const |
Get the maximum occupied layer in the sliding fit.
the | maximum occupied layer in the sliding fit |
Definition at line 74 of file LArThreeDSlidingFitResult.cc.
float lar_content::ThreeDSlidingFitResult::GetMaxLayerRms | ( | ) | const |
Get rms at maximum layer.
Definition at line 94 of file LArThreeDSlidingFitResult.cc.
int lar_content::ThreeDSlidingFitResult::GetMinLayer | ( | ) | const |
Get the minimum occupied layer in the sliding fit.
the | minimum occupied layer in the sliding fit |
Definition at line 64 of file LArThreeDSlidingFitResult.cc.
float lar_content::ThreeDSlidingFitResult::GetMinLayerRms | ( | ) | const |
Get rms at minimum layer.
Definition at line 84 of file LArThreeDSlidingFitResult.cc.
|
staticprivate |
Calculate the position and direction of the primary axis.
pCluster | the address of the input cluster |
slidingFitLayerPitch | the sliding fit z pitch, units cm |
|
staticprivate |
Calculate the position and direction of the primary axis.
pPointVector | the address of the input point vector |
slidingFitLayerPitch | the sliding fit z pitch, units cm |
|
inline |
Get the second sliding fit result for this cluster.
Definition at line 257 of file LArThreeDSlidingFitResult.h.
|
staticprivate |
Generate a seed vector to be used in calculating the orthogonal axes.
axisDirection | the primary axis |
Definition at line 245 of file LArThreeDSlidingFitResult.cc.
|
private |
The axis direction vector.
Definition at line 216 of file LArThreeDSlidingFitResult.h.
|
private |
The axis intercept position.
Definition at line 215 of file LArThreeDSlidingFitResult.h.
|
private |
The first sliding fit result.
Definition at line 219 of file LArThreeDSlidingFitResult.h.
|
private |
The orthogonal direction vector.
Definition at line 217 of file LArThreeDSlidingFitResult.h.
|
private |
The maximum combined layer.
Definition at line 222 of file LArThreeDSlidingFitResult.h.
|
private |
The global direction at the maximum combined layer.
Definition at line 227 of file LArThreeDSlidingFitResult.h.
|
private |
The global position at the maximum combined layer.
Definition at line 225 of file LArThreeDSlidingFitResult.h.
|
private |
The minimum combined layer.
Definition at line 221 of file LArThreeDSlidingFitResult.h.
|
private |
The global direction at the minimum combined layer.
Definition at line 226 of file LArThreeDSlidingFitResult.h.
|
private |
The global position at the minimum combined layer.
Definition at line 224 of file LArThreeDSlidingFitResult.h.
|
private |
The primary axis position and direction.
Definition at line 214 of file LArThreeDSlidingFitResult.h.
|
private |
The second sliding fit result.
Definition at line 220 of file LArThreeDSlidingFitResult.h.
|
private |
The orthogonal direction vector.
Definition at line 218 of file LArThreeDSlidingFitResult.h.