39 #include "TMatrixDSym.h"
41 #include "Math/SMatrix.h"
42 #include "Math/SVector.h"
43 typedef ROOT::Math::SMatrix<double, 2, 5> SMatrix25;
44 typedef ROOT::Math::SMatrix<double, 2, 7> SMatrix27;
45 typedef ROOT::Math::SMatrix<double, 5, 5> SMatrix55;
58 GblData(
unsigned int aLabel,
double aMeas,
double aPrec);
61 const std::vector<unsigned int> &labDer,
const SMatrix55 &matDer,
62 unsigned int iOff,
const TMatrixD &derLocal,
63 const std::vector<int> &labGlobal,
const TMatrixD &derGlobal,
64 unsigned int nLocal,
const TMatrixD &derTrans);
66 const std::vector<unsigned int> &labDer,
const SMatrix27 &matDer,
67 unsigned int nLocal,
const TMatrixD &derTrans);
69 const std::vector<double> &derivatives);
76 std::vector<unsigned int>* &indLocal,
77 std::vector<double>* &derLocal);
79 std::vector<unsigned int>* &indLocal,
80 std::vector<double>* &derLocal, std::vector<int>* &labGlobal,
81 std::vector<double>* &derGlobal);
82 void getResidual(
double &aResidual,
double &aVariance,
double &aDownWeight,
83 std::vector<unsigned int>* &indLocal,
84 std::vector<double>* &derLocal);
Data (block) for independent scalar measurement.
double theDownWeight
Down-weighting factor (0-1)
double setDownWeighting(unsigned int aMethod)
Outlier down weighting with M-estimators (by GblTrajectory::fit).
double getChi2() const
Calculate Chi2 contribution.
unsigned int theLabel
Label (of measurements point)
void getAllData(double &aValue, double &aErr, std::vector< unsigned int > *&indLocal, std::vector< double > *&derLocal, std::vector< int > *&labGlobal, std::vector< double > *&derGlobal)
Get all Data for MP-II binary record.
std::vector< int > globalLabels
Labels for global derivatives.
double theValue
Value (residual)
std::vector< double > globalDerivatives
Global derivatives.
std::vector< unsigned int > theParameters
List of fit parameters (with non zero derivatives)
void addDerivatives(unsigned int iRow, const std::vector< unsigned int > &labDer, const SMatrix55 &matDer, unsigned int iOff, const TMatrixD &derLocal, const std::vector< int > &labGlobal, const TMatrixD &derGlobal, unsigned int nLocal, const TMatrixD &derTrans)
Add derivatives from measurement.
void setPrediction(const VVector &aVector)
Calculate prediction for data from fit (by GblTrajectory::fit).
double thePrecision
Precision (1/sigma**2)
void getResidual(double &aResidual, double &aVariance, double &aDownWeight, std::vector< unsigned int > *&indLocal, std::vector< double > *&derLocal)
Get data for residual (and errors).
std::vector< double > theDerivatives
List of derivatives for fit.
void printData() const
Print data block.
void getLocalData(double &aValue, double &aWeight, std::vector< unsigned int > *&indLocal, std::vector< double > *&derLocal)
Get Data for local fit.
double thePrediction
Prediction from fit.
Simple Vector based on std::vector<double>
Namespace for the general broken lines package.