#include <CollinearFitAtTM.h>
Public Types | |
enum | { ParQpIn = 0, ParQpOut, ParDxDz, ParDyDz, ParX, ParY } |
parameter indices in the result vector / covariance matrix More... | |
typedef ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > | ResultMatrix |
typedef ROOT::Math::SVector< double, 6 > | ResultVector |
Public Member Functions | |
double | chi2 () const |
chi2 More... | |
CollinearFitAtTM2 (const TrajectoryMeasurement &tm) | |
CollinearFitAtTM2 (const AlgebraicVector5 &fwdParameters, const AlgebraicSymMatrix55 &fwdCovariance, const AlgebraicVector5 &bwdParameters, const AlgebraicSymMatrix55 &bwdCovariance, const LocalPoint &hitPosition, const LocalError &hitErrors) | |
const ResultMatrix & | covariance () const |
covariance matrix of fitted parameters More... | |
Measurement1D | deltaP () const |
estimated deltaP (out-in) from fit parameters More... | |
int | ndof () const |
degrees of freedom More... | |
const ResultVector & | parameters () const |
vector of fitted parameters More... | |
bool | valid () const |
status of the fit More... | |
Private Member Functions | |
bool | fit (const AlgebraicVector5 &fwdParameters, const AlgebraicSymMatrix55 &fwdCovariance, const AlgebraicVector5 &bwdParameters, const AlgebraicSymMatrix55 &bwdCovariance, const LocalPoint &hitPosition, const LocalError &hitErrors) |
Perform the fit. Return value "true" for success. More... | |
void | initJacobian () |
initialise the jacobian More... | |
Private Attributes | |
double | chi2_ |
ResultMatrix | covariance_ |
ROOT::Math::SMatrix< double, 12, 6 > | jacobian_ |
ROOT::Math::SVector< double, 12 > | measurements_ |
int | ndof_ |
ResultVector | parameters_ |
ROOT::Math::SVector< double, 6 > | projectedMeasurements_ |
bool | valid_ |
ROOT::Math::SMatrix< double, 12, 12, ROOT::Math::MatRepSym< double, 12 > > | weightMatrix_ |
Constrained fit at a TrajectoryMeasurement assuming collinearity of incoming / outgoing momenta. The result of the fit is a vector of 6 variables: the first five correspond to local trajectory parameters for the incoming momentum, the 6th is the estimated remaining energy fraction (p_out / p_in). The NDF are 6 (4) for a valid (invalid) RecHit.
Definition at line 18 of file CollinearFitAtTM.h.
typedef ROOT::Math::SMatrix<double, 6, 6, ROOT::Math::MatRepSym<double, 6> > CollinearFitAtTM2::ResultMatrix |
Definition at line 32 of file CollinearFitAtTM.h.
typedef ROOT::Math::SVector<double, 6> CollinearFitAtTM2::ResultVector |
Definition at line 31 of file CollinearFitAtTM.h.
anonymous enum |
parameter indices in the result vector / covariance matrix
Enumerator | |
---|---|
ParQpIn | |
ParQpOut | |
ParDxDz | |
ParDyDz | |
ParX | |
ParY |
Definition at line 21 of file CollinearFitAtTM.h.
CollinearFitAtTM2::CollinearFitAtTM2 | ( | const TrajectoryMeasurement & | tm | ) |
Definition at line 4 of file CollinearFitAtTM.cc.
References TrajectoryMeasurement::backwardPredictedState(), fit(), TrajectoryMeasurement::forwardPredictedState(), initJacobian(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), LocalTrajectoryError::matrix(), TrajectoryMeasurement::recHit(), TrajectoryMeasurement::updatedState(), and LocalTrajectoryParameters::vector().
CollinearFitAtTM2::CollinearFitAtTM2 | ( | const AlgebraicVector5 & | fwdParameters, |
const AlgebraicSymMatrix55 & | fwdCovariance, | ||
const AlgebraicVector5 & | bwdParameters, | ||
const AlgebraicSymMatrix55 & | bwdCovariance, | ||
const LocalPoint & | hitPosition, | ||
const LocalError & | hitErrors | ||
) |
Definition at line 31 of file CollinearFitAtTM.cc.
References fit(), and initJacobian().
|
inline |
|
inline |
covariance matrix of fitted parameters
Definition at line 42 of file CollinearFitAtTM.h.
References covariance_.
Measurement1D CollinearFitAtTM2::deltaP | ( | ) | const |
estimated deltaP (out-in) from fit parameters
Definition at line 126 of file CollinearFitAtTM.cc.
References covariance_, parameters_, mathSSE::sqrt(), and valid_.
Referenced by GsfTrackProducerBase::computeModeAtTM().
|
private |
Perform the fit. Return value "true" for success.
Definition at line 61 of file CollinearFitAtTM.cc.
References chi2_, covariance_, mps_fire::i, dqmiolumiharvest::j, jacobian_, measurements_, ndof_, parameters_, ParX, ParY, projectedMeasurements_, valid_, weightMatrix_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
Referenced by CollinearFitAtTM2(), and trackingPlots.Iteration::modules().
|
private |
initialise the jacobian
Definition at line 46 of file CollinearFitAtTM.cc.
References mps_fire::i, dqmiolumiharvest::j, jacobian_, ParQpIn, and ParQpOut.
Referenced by CollinearFitAtTM2().
|
inline |
|
inline |
vector of fitted parameters
Definition at line 40 of file CollinearFitAtTM.h.
References parameters_.
|
inline |
|
private |
Definition at line 67 of file CollinearFitAtTM.h.
|
private |
Definition at line 66 of file CollinearFitAtTM.h.
Referenced by covariance(), deltaP(), and fit().
|
private |
Definition at line 58 of file CollinearFitAtTM.h.
Referenced by fit(), and initJacobian().
|
private |
Definition at line 59 of file CollinearFitAtTM.h.
Referenced by fit().
|
private |
Definition at line 68 of file CollinearFitAtTM.h.
|
private |
Definition at line 65 of file CollinearFitAtTM.h.
Referenced by Mixins._TypedParameterizable::clone(), Types.PSet::clone(), Types.EDAlias::clone(), Mixins._TypedParameterizable::copy(), deltaP(), fit(), and parameters().
|
private |
Definition at line 61 of file CollinearFitAtTM.h.
Referenced by fit().
|
private |
Definition at line 64 of file CollinearFitAtTM.h.
|
private |
Definition at line 60 of file CollinearFitAtTM.h.
Referenced by fit().