GeneralBrokenLines  V01-11-00
Public Member Functions | Private Attributes
GblData Class Reference

Data (block) for independent scalar measurement. More...

#include <GblData.h>

List of all members.

Public Member Functions

 GblData (unsigned int aLabel, double aMeas, double aPrec)
 Create data block.
virtual ~GblData ()
void addDerivatives (unsigned int iRow, const std::vector< unsigned int > &labDer, const SMatrix55 &matDer, unsigned int iOff, const TMatrixD &derLocal=TMatrixD(), const std::vector< int > &labGlobal=std::vector< int >(0), const TMatrixD &derGlobal=TMatrixD())
 Add derivatives from measurement.
void addDerivatives (unsigned int iRow, const std::vector< unsigned int > &labDer, const SMatrix27 &matDer)
 Add derivatives from kink.
void addDerivatives (const std::vector< unsigned int > &index, const std::vector< double > &derivatives)
 Add derivatives from external seed.
void setPrediction (const VVector &aVector)
 Calculate prediction for data from fit.
double setDownWeighting (unsigned int aMethod)
 Outlier down weighting with M-estimators.
double getChi2 () const
 Calculate Chi2 contribution.
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.
void getAllData (float &fValue, float &fErr, 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.

Private Attributes

unsigned int theLabel
 Label (of measurements point)
double theValue
 Value (residual)
double thePrecision
 Precision (1/sigma**2)
double theDownWeight
 Down-weighting factor (0-1)
double thePrediction
 Prediction from fit.
std::vector< unsigned int > theParameters
 List of fit parameters (with non zero derivatives)
std::vector< double > theDerivatives
 List of derivatives for fit.
std::vector< int > globalLabels
 Labels for global derivatives.
std::vector< double > globalDerivatives
 Global derivatives.

Detailed Description

Data (block) for independent scalar measurement.

Data (block) containing value, precision and derivatives for measurements and kinks. Created from attributes of GblPoints, used to construct linear equation system for track fit.

Definition at line 30 of file GblData.h.


Constructor & Destructor Documentation

GblData::GblData ( unsigned int  aLabel,
double  aValue,
double  aPrec 
)

Create data block.

Parameters:
[in]aLabelLabel of corresponding point
[in]aValueValue of (scalar) measurement
[in]aPrecPrecision of (scalar) measurement

Definition at line 16 of file GblData.cpp.

GblData::~GblData ( ) [virtual]

Definition at line 22 of file GblData.cpp.


Member Function Documentation

void GblData::addDerivatives ( unsigned int  iRow,
const std::vector< unsigned int > &  labDer,
const SMatrix55 matDer,
unsigned int  iOff,
const TMatrixD &  derLocal = TMatrixD(),
const std::vector< int > &  labGlobal = std::vector<int>(0),
const TMatrixD &  derGlobal = TMatrixD() 
)

Add derivatives from measurement.

Add (non-zero) derivatives to data block. Fill list of labels of used fit parameters.

Parameters:
[in]iRowRow index (0-4) in up to 5D measurement
[in]labDerLabels for derivatives
[in]matDerDerivatives (matrix) 'measurement vs track fit parameters'
[in]iOffOffset for row index for additional parameters
[in]derLocalDerivatives (matrix) for additional local parameters
[in]labGlobalLabels for additional global (MP-II) parameters
[in]derGlobalDerivatives (matrix) for additional global (MP-II) parameters

Definition at line 37 of file GblData.cpp.

References globalDerivatives, globalLabels, theDerivatives, and theParameters.

Referenced by GblTrajectory::prepare().

void GblData::addDerivatives ( unsigned int  iRow,
const std::vector< unsigned int > &  labDer,
const SMatrix27 matDer 
)

Add derivatives from kink.

Add (non-zero) derivatives to data block. Fill list of labels of used fit parameters.

Parameters:
[in]iRowRow index (0-1) in 2D kink
[in]labDerLabels for derivatives
[in]matDerDerivatives (matrix) 'kink vs track fit parameters'

Definition at line 74 of file GblData.cpp.

References theDerivatives, and theParameters.

void GblData::addDerivatives ( const std::vector< unsigned int > &  index,
const std::vector< double > &  derivatives 
)

Add derivatives from external seed.

Add (non-zero) derivatives to data block. Fill list of labels of used fit parameters.

Parameters:
[in]indexLabels for derivatives
[in]derivativesDerivatives (vector)

Definition at line 96 of file GblData.cpp.

References theDerivatives, and theParameters.

void GblData::getAllData ( float &  fValue,
float &  fErr,
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.

Parameters:
[out]fValueValue
[out]fErrError
[out]indLocalList of labels of local parameters
[out]derLocalList of derivatives for local parameters
[out]labGlobalList of labels of global parameters
[out]derGlobalList of derivatives for global parameters

Definition at line 196 of file GblData.cpp.

References globalDerivatives, globalLabels, theDerivatives, theParameters, thePrecision, and theValue.

double GblData::getChi2 ( ) const

Calculate Chi2 contribution.

Returns:
(down-weighted) Chi2

Definition at line 149 of file GblData.cpp.

References theDownWeight, thePrecision, thePrediction, and theValue.

void GblData::getLocalData ( double &  aValue,
double &  aWeight,
std::vector< unsigned int > *&  indLocal,
std::vector< double > *&  derLocal 
)

Get Data for local fit.

Parameters:
[out]aValueValue
[out]aWeightWeight
[out]indLocalList of labels of used (local) fit parameters
[out]derLocalList of derivatives for used (local) fit parameters

Definition at line 178 of file GblData.cpp.

References theDerivatives, theDownWeight, theParameters, thePrecision, and theValue.

void GblData::printData ( ) const

Print data block.

Definition at line 155 of file GblData.cpp.

References theDerivatives, theLabel, theParameters, thePrecision, and theValue.

double GblData::setDownWeighting ( unsigned int  aMethod)

Outlier down weighting with M-estimators.

Parameters:
[in]aMethodM-estimator (1: Tukey, 2:Huber, 3:Cauchy)

Definition at line 120 of file GblData.cpp.

References theDownWeight, thePrecision, thePrediction, and theValue.

void GblData::setPrediction ( const VVector aVector)

Calculate prediction for data from fit.

Definition at line 108 of file GblData.cpp.

References theDerivatives, theParameters, and thePrediction.


Member Data Documentation

std::vector<double> GblData::globalDerivatives [private]

Global derivatives.

Definition at line 65 of file GblData.h.

Referenced by addDerivatives(), and getAllData().

std::vector<int> GblData::globalLabels [private]

Labels for global derivatives.

Definition at line 64 of file GblData.h.

Referenced by addDerivatives(), and getAllData().

std::vector<double> GblData::theDerivatives [private]

List of derivatives for fit.

Definition at line 63 of file GblData.h.

Referenced by addDerivatives(), getAllData(), getLocalData(), printData(), and setPrediction().

double GblData::theDownWeight [private]

Down-weighting factor (0-1)

Definition at line 60 of file GblData.h.

Referenced by getChi2(), getLocalData(), and setDownWeighting().

unsigned int GblData::theLabel [private]

Label (of measurements point)

Definition at line 57 of file GblData.h.

Referenced by printData().

std::vector<unsigned int> GblData::theParameters [private]

List of fit parameters (with non zero derivatives)

Definition at line 62 of file GblData.h.

Referenced by addDerivatives(), getAllData(), getLocalData(), printData(), and setPrediction().

double GblData::thePrecision [private]

Precision (1/sigma**2)

Definition at line 59 of file GblData.h.

Referenced by getAllData(), getChi2(), getLocalData(), printData(), and setDownWeighting().

double GblData::thePrediction [private]

Prediction from fit.

Definition at line 61 of file GblData.h.

Referenced by getChi2(), setDownWeighting(), and setPrediction().

double GblData::theValue [private]

Value (residual)

Definition at line 58 of file GblData.h.

Referenced by getAllData(), getChi2(), getLocalData(), printData(), and setDownWeighting().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs