8#ifndef LAR_TWO_D_SLIDING_FIT_OBJECTS_H
9#define LAR_TWO_D_SLIDING_FIT_OBJECTS_H 1
47 LayerFitResult(
const double l,
const double fitT,
const double gradient,
const double rms);
105 void AddPoint(
const float l,
const float t);
181 LayerInterpolation(
const LayerFitResultMap::const_iterator &firstLayerIter,
const LayerFitResultMap::const_iterator &secondLayerIter,
182 const double firstWeight,
const double secondWeight);
245 FitSegment(
const int startLayer,
const int endLayer,
const double startX,
const double endX);
298 m_gradient(gradient),
342 const double T =
static_cast<double>(t);
343 const double L =
static_cast<double>(l);
405 const LayerFitResultMap::const_iterator &endLayerIter,
const double startLayerWeight,
const double endLayerWeight) :
406 m_isInitialized(true),
407 m_startLayerIter(startLayerIter),
408 m_endLayerIter(endLayerIter),
409 m_startLayerWeight(startLayerWeight),
410 m_endLayerWeight(endLayerWeight)
465 m_startLayer(startLayer),
468 m_minX = std::min(startX, endX);
469 m_maxX = std::max(startX, endX);
Header file defining status codes and relevant preprocessor macros.
int GetEndLayer() const
Get end layer.
bool IsIncreasingX() const
Whether the x coordinate increases between the start and end layers.
double m_maxX
The maximum x value.
FitSegment(const int startLayer, const int endLayer, const double startX, const double endX)
Constructor.
double GetMaxX() const
Get the maximum x value.
double m_minX
The minimum x value.
bool m_isIncreasingX
Whether the x coordinate increases between the start and end layers.
int m_endLayer
The end layer.
int GetStartLayer() const
Get start layer.
double GetMinX() const
Get the minimum x value.
int m_startLayer
The start layer.
LayerFitContribution class.
double m_sumTT
The sum t * t.
double m_sumLL
The sum l * l.
unsigned int GetNPoints() const
Get the number of points used.
double GetSumT() const
Get the sum t.
unsigned int m_nPoints
The number of points used.
LayerFitContribution()
Default constructor.
double GetSumL() const
Get the sum l.
void AddPoint(const float l, const float t)
Add point to layer fit.
double GetSumLT() const
Get the sum l * t.
double m_sumLT
The sum l * t.
double GetSumLL() const
Get the sum l * l.
double GetSumTT() const
Get the sum t * t.
double GetFitT() const
Get the fitted t coordinate.
double m_rms
The rms of the fit residuals.
double m_l
The l coordinate.
double GetGradient() const
Get the fitted gradient dt/dz.
LayerFitResult(const double l, const double fitT, const double gradient, const double rms)
Constructor.
double GetRms() const
Get the rms of the fit residuals.
double GetL() const
Get the l coordinate.
double m_gradient
The fitted gradient dt/dl.
double m_fitT
The fitted t coordinate.
LayerInterpolation class.
double m_startLayerWeight
The start layer weight.
LayerFitResultMap::const_iterator GetEndLayerIter() const
Get the end layer iterator.
double GetStartLayerWeight() const
Get the start layer weight.
LayerFitResultMap::const_iterator GetStartLayerIter() const
Get the start layer iterator.
bool IsInitialized() const
Whether the object is initialized.
double GetEndLayerWeight() const
Get the end layer weight.
LayerInterpolation()
Default constructor.
double m_endLayerWeight
The end layer weight.
LayerFitResultMap::const_iterator m_startLayerIter
The start layer iterator.
LayerFitResultMap::const_iterator m_endLayerIter
The end layer iterator.
bool m_isInitialized
Whether the object is initialized.
StatusCodeException class.
std::vector< FitSegment > FitSegmentList
TransverseDirection
TransverseDirection enum.
std::map< int, LayerFitResult > LayerFitResultMap
std::vector< LayerInterpolation > LayerInterpolationList
std::map< int, LayerFitContribution > LayerFitContributionMap