5#ifndef TRIGL2MUONSA_TGCFIT_H
6#define TRIGL2MUONSA_TGCFIT_H
10#include "GaudiKernel/StatusCode.h"
148 double eval(
double fX)
const;
157 const std::string& name,
158 const IInterface* parent);
162 unsigned MIN_WIRE_POINTS,
163 unsigned MIN_STRIP_POINTS);
const LinStats & getStripLinStats() const
void SimpleStatistics(PointArray &points, SimpleStats &stats) const
TgcFit(const std::string &type, const std::string &name, const IInterface *parent)
const LinStats & getWireLinStats() const
void linReg(PointArray &points, LinStats &stats) const
unsigned m_MIN_WIRE_POINTS
Test for outliers: w * (value - mean)^2 > CHI2_TEST.
std::vector< Point > PointArray
void printDebug(const std::string &str) const
Status runTgcMiddle(PointArray &stripPoints, PointArray &wirePoints, TgcFitResult &fitResult) const
Status runTgcInner(PointArray &stripPoints, PointArray &wirePoints, TgcFitResult &fitResult) const
size_t countUniqueStations(const TrigL2MuonSA::TgcFit::PointArray &) const
unsigned m_MIN_STRIP_POINTS
Minimum number of strip points for linear fit.
void setFitParameters(double CHI2_TEST, unsigned MIN_WIRE_POINTS, unsigned MIN_STRIP_POINTS)
PointArray m_superPoints
List of wire (eta) super-points.
double fIntercept
Intercept of the fit line.
double fAdjR2
R-squared adjusted for small samples.
double fSlope
Slope of the fit line.
double fR2
R-squared of the fit.
double eval(double fX) const
int nIdx
Index of point in original list of digits.
void operator/=(double fD)
Point(int nIdx, int nStation, double fX, double fY, double fW=1.0)
bool bOutlier
Indicates an outlier (excluded from all calculations).
void operator+=(double fD)
double fChi2
Chi2 contribution.
int nStation
Index of station: 0-3 for TGC.
void operator+=(const Point &p)
A structure to hold simple statisitcs.
double fChi2
Chi2 of all valid points.
void clear()
Clear statistics before a new fit.
int n
Number of valid points.
SimpleStats()
Constructor.
double fStd
Standard deviation.