17 #include "TMatrixDSym.h" 19 #include "Math/SMatrix.h" 20 #include "Math/SVector.h" 21 typedef ROOT::Math::SMatrix<double, 2, 5>
SMatrix25;
22 typedef ROOT::Math::SMatrix<double, 2, 7>
SMatrix27;
23 typedef ROOT::Math::SMatrix<double, 5, 5>
SMatrix55;
35 GblData(
unsigned int aLabel,
double aMeas,
double aPrec);
38 const std::vector<unsigned int> &labDer,
const SMatrix55 &matDer,
39 unsigned int iOff,
const TMatrixD &derLocal,
40 const std::vector<int> &labGlobal,
const TMatrixD &derGlobal,
41 unsigned int nLocal,
const TMatrixD &derTrans);
43 const std::vector<unsigned int> &labDer,
const SMatrix27 &matDer,
44 unsigned int nLocal,
const TMatrixD &derTrans);
46 const std::vector<double> &derivatives);
53 std::vector<unsigned int>* &indLocal,
54 std::vector<double>* &derLocal);
56 std::vector<unsigned int>* &indLocal,
57 std::vector<double>* &derLocal, std::vector<int>* &labGlobal,
58 std::vector<double>* &derGlobal);
59 void getResidual(
double &aResidual,
double &aVariance,
double &aDownWeight,
60 std::vector<unsigned int>* &indLocal,
61 std::vector<double>* &derLocal);
std::vector< unsigned int > theParameters
List of fit parameters (with non zero derivatives)
Data (block) for independent scalar measurement.
std::vector< double > theDerivatives
List of derivatives for fit.
ROOT::Math::SMatrix< double, 2, 7 > SMatrix27
GblData(unsigned int aLabel, double aMeas, double aPrec)
Create data block.
void getLocalData(double &aValue, double &aWeight, std::vector< unsigned int > *&indLocal, std::vector< double > *&derLocal)
Get Data for local fit.
double getChi2() const
Calculate Chi2 contribution.
void getResidual(double &aResidual, double &aVariance, double &aDownWeight, std::vector< unsigned int > *&indLocal, std::vector< double > *&derLocal)
Get data for residual (and errors).
unsigned int theLabel
Label (of measurements point)
ROOT::Math::SMatrix< double, 5, 5 > SMatrix55
Namespace for the general broken lines package.
double theDownWeight
Down-weighting factor (0-1)
void setPrediction(const VVector &aVector)
Calculate prediction for data from fit (by GblTrajectory::fit).
double thePrediction
Prediction from fit.
std::vector< int > globalLabels
Labels for global derivatives.
std::vector< double > globalDerivatives
Global derivatives.
double thePrecision
Precision (1/sigma**2)
void printData() const
Print data block.
double setDownWeighting(unsigned int aMethod)
Outlier down weighting with M-estimators (by GblTrajectory::fit).
Simple Vector based on std::vector<double>
double theValue
Value (residual)
ROOT::Math::SMatrix< double, 2, 5 > SMatrix25
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 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.