![]() |
![]() |
#include <GlobalErrorBase.h>
Classes | |
class | NullMatrix |
Tag to request a null error matrix. More... | |
Public Member Functions | |
T | cxx () const |
T | cyx () const |
T | cyy () const |
T | czx () const |
T | czy () const |
T | czz () const |
GlobalErrorBase (const AlgebraicSymMatrix &err) | |
GlobalErrorBase (const NullMatrix &) | |
GlobalErrorBase (const AlgebraicSymMatrix33 &err) | |
GlobalErrorBase () | |
GlobalErrorBase (T c11, T c21, T c22, T c31, T c32, T c33) | |
AlgebraicSymMatrix | matrix () const |
const AlgebraicSymMatrix33 & | matrix_new () const |
GlobalErrorBase | operator+ (const GlobalErrorBase &err) const |
GlobalErrorBase | operator- (const GlobalErrorBase &err) const |
T | phierr (const GlobalPoint &aPoint) const |
T | rerr (const GlobalPoint &aPoint) const |
~GlobalErrorBase () | |
Private Attributes | |
AlgebraicSymMatrix33 | theCartesianError |
Templated class representing a symmetric 3*3 matrix describing, according to the ErrorWeightType tag, a (cartesian) covariance matrix or the weight matrix (the inverse of the covariance matrix).
The typedefs should be used in the code.
Definition at line 26 of file GlobalErrorBase.h.
GlobalErrorBase< T, ErrorWeightType >::GlobalErrorBase | ( | ) | [inline] |
Default constructor, creating a null 3*3 matrix (all values are 0)
Definition at line 36 of file GlobalErrorBase.h.
Referenced by GlobalErrorBase< double, ErrorMatrixTag >::operator+(), and GlobalErrorBase< double, ErrorMatrixTag >::operator-().
{}
GlobalErrorBase< T, ErrorWeightType >::GlobalErrorBase | ( | const NullMatrix & | ) | [inline] |
Obsolete Constructor that allocates a null GlobalErrorBase (it does not create the error matrix at all)
Definition at line 41 of file GlobalErrorBase.h.
{}
GlobalErrorBase< T, ErrorWeightType >::GlobalErrorBase | ( | T | c11, |
T | c21, | ||
T | c22, | ||
T | c31, | ||
T | c32, | ||
T | c33 | ||
) | [inline] |
Constructor. The symmetric matrix stored as a lower triangular matrix
Definition at line 48 of file GlobalErrorBase.h.
{ theCartesianError(0,0)=c11; theCartesianError(1,0)=c21; theCartesianError(1,1)=c22; theCartesianError(2,0)=c31; theCartesianError(2,1)=c32; theCartesianError(2,2)=c33; }
GlobalErrorBase< T, ErrorWeightType >::GlobalErrorBase | ( | const AlgebraicSymMatrix & | err | ) | [inline] |
Constructor from SymMatrix. The original matrix has to be a 3*3 matrix.
Definition at line 60 of file GlobalErrorBase.h.
{ if (err.num_row() == 3) theCartesianError = asSMatrix<3>(err); else { //throw DetLogicError("Not 3x3 Error Matrix: set pointer to 0"); throw cms::Exception("DetLogicError")<<"Not 3x3 Error Matrix: set pointer to 0\n"; } }
GlobalErrorBase< T, ErrorWeightType >::GlobalErrorBase | ( | const AlgebraicSymMatrix33 & | err | ) | [inline] |
Constructor from SymMatrix. The original matrix has to be a 3*3 matrix.
Definition at line 73 of file GlobalErrorBase.h.
: theCartesianError(err) { }
GlobalErrorBase< T, ErrorWeightType >::~GlobalErrorBase | ( | ) | [inline] |
Definition at line 76 of file GlobalErrorBase.h.
{}
T GlobalErrorBase< T, ErrorWeightType >::cxx | ( | ) | const [inline] |
Definition at line 78 of file GlobalErrorBase.h.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), TestHits::analyze(), TestTrackHits::analyze(), TestSmoothHits::analyze(), RecoVertex::convertError(), Flight2DSvFilter::DistanceSignificance2DToBeamLine(), VertexFitterResult::fill(), GetLineCovMatrix::GetLineCovMatrix(), SeedFromConsecutiveHitsCreator::initialError(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), GlobalErrorBase< double, ErrorMatrixTag >::phierr(), GlobalErrorBase< double, ErrorMatrixTag >::rerr(), SeedFromConsecutiveHits::SeedFromConsecutiveHits(), CandKinematicVertexFitter::set(), DistanceOfVertices::terms2D(), and ErrorFrameTransformer::transform().
{ return theCartesianError(0,0); }
T GlobalErrorBase< T, ErrorWeightType >::cyx | ( | ) | const [inline] |
Definition at line 82 of file GlobalErrorBase.h.
Referenced by RecoVertex::convertError(), Flight2DSvFilter::DistanceSignificance2DToBeamLine(), GetLineCovMatrix::GetLineCovMatrix(), GlobalErrorBase< double, ErrorMatrixTag >::phierr(), GlobalErrorBase< double, ErrorMatrixTag >::rerr(), CandKinematicVertexFitter::set(), DistanceOfVertices::terms2D(), and ErrorFrameTransformer::transform().
{ return theCartesianError(1,0); }
T GlobalErrorBase< T, ErrorWeightType >::cyy | ( | ) | const [inline] |
Definition at line 86 of file GlobalErrorBase.h.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), TestHits::analyze(), TestTrackHits::analyze(), TestSmoothHits::analyze(), RecoVertex::convertError(), Flight2DSvFilter::DistanceSignificance2DToBeamLine(), VertexFitterResult::fill(), GetLineCovMatrix::GetLineCovMatrix(), GlobalErrorBase< double, ErrorMatrixTag >::phierr(), GlobalErrorBase< double, ErrorMatrixTag >::rerr(), CandKinematicVertexFitter::set(), DistanceOfVertices::terms2D(), and ErrorFrameTransformer::transform().
{ return theCartesianError(1,1); }
T GlobalErrorBase< T, ErrorWeightType >::czx | ( | ) | const [inline] |
Definition at line 90 of file GlobalErrorBase.h.
Referenced by RecoVertex::convertError(), GetLineCovMatrix::GetLineCovMatrix(), CandKinematicVertexFitter::set(), DistanceOfVertices::terms3D(), and ErrorFrameTransformer::transform().
{ return theCartesianError(2,0); }
T GlobalErrorBase< T, ErrorWeightType >::czy | ( | ) | const [inline] |
Definition at line 94 of file GlobalErrorBase.h.
Referenced by RecoVertex::convertError(), GetLineCovMatrix::GetLineCovMatrix(), CandKinematicVertexFitter::set(), DistanceOfVertices::terms3D(), and ErrorFrameTransformer::transform().
{ return theCartesianError(2,1); }
T GlobalErrorBase< T, ErrorWeightType >::czz | ( | ) | const [inline] |
Definition at line 98 of file GlobalErrorBase.h.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), TestHits::analyze(), TestTrackHits::analyze(), TestSmoothHits::analyze(), BarrelDetLayer::compatible(), RecoVertex::convertError(), VertexFitterResult::fill(), GetLineCovMatrix::GetLineCovMatrix(), SeedFromConsecutiveHitsCreator::initialError(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), PixelFitterByConformalMappingAndLine::run(), SeedFromConsecutiveHits::SeedFromConsecutiveHits(), CandKinematicVertexFitter::set(), TransientTrackingRecHit::setPositionErrors(), DistanceOfVertices::terms3D(), ErrorFrameTransformer::transform(), and SimpleNavigableLayer::wellInside().
{ return theCartesianError(2,2); }
AlgebraicSymMatrix GlobalErrorBase< T, ErrorWeightType >::matrix | ( | void | ) | const [inline] |
Access method to the matrix, /return The SymMatrix
Definition at line 106 of file GlobalErrorBase.h.
Referenced by AlignableDetUnit::alignmentErrors(), AlignableDet::alignmentErrors(), AlignableBeamSpot::alignmentErrors(), FinalTreeBuilder::buildTree(), VertexDistanceXY::compatibility(), VertexDistance3D::compatibility(), BasicSingleVertexState::computeError(), BasicSingleVertexState::computeWeight(), VertexDistance3D::distance(), VertexDistanceXY::distance(), CocoaDBMgr::GetAlignInfoErrorFromOptO(), and KinematicVertex::operator==().
{ return asHepMatrix(theCartesianError); }
const AlgebraicSymMatrix33& GlobalErrorBase< T, ErrorWeightType >::matrix_new | ( | ) | const [inline] |
Access method to the matrix, /return The SymMatrix
Definition at line 113 of file GlobalErrorBase.h.
Referenced by GsfVertexWeightCalculator::calculate(), BasicSingleVertexState::computePosition(), BasicSingleVertexState::computeWeightTimesPos(), reco::GhostTrackPrediction::init(), reco::GhostTrackState::lambdaError(), KalmanVertexUpdator< N >::positionUpdate(), KalmanVertexTrackUpdator< 5 >::trackRefit(), trackVertexCompat(), vertexAtState(), KVFHelper< N >::vertexChi2(), reco::GhostTrackVertexFinder::vertexCompat(), and vtxErrorLong().
{ return theCartesianError; }
GlobalErrorBase GlobalErrorBase< T, ErrorWeightType >::operator+ | ( | const GlobalErrorBase< T, ErrorWeightType > & | err | ) | const [inline] |
Definition at line 140 of file GlobalErrorBase.h.
{ return GlobalErrorBase(theCartesianError + err.theCartesianError); }
GlobalErrorBase GlobalErrorBase< T, ErrorWeightType >::operator- | ( | const GlobalErrorBase< T, ErrorWeightType > & | err | ) | const [inline] |
Definition at line 143 of file GlobalErrorBase.h.
{ return GlobalErrorBase(theCartesianError - err.theCartesianError); }
T GlobalErrorBase< T, ErrorWeightType >::phierr | ( | const GlobalPoint & | aPoint | ) | const [inline] |
Definition at line 129 of file GlobalErrorBase.h.
Referenced by GlobalTrackQualityProducer::kink(), and TransientTrackingRecHit::setPositionErrors().
T GlobalErrorBase< T, ErrorWeightType >::rerr | ( | const GlobalPoint & | aPoint | ) | const [inline] |
Definition at line 118 of file GlobalErrorBase.h.
Referenced by HLTmmkFilter::filter(), PixelFitterByConformalMappingAndLine::run(), and TransientTrackingRecHit::setPositionErrors().
AlgebraicSymMatrix33 GlobalErrorBase< T, ErrorWeightType >::theCartesianError [private] |
Definition at line 149 of file GlobalErrorBase.h.
Referenced by GlobalErrorBase< double, ErrorMatrixTag >::cxx(), GlobalErrorBase< double, ErrorMatrixTag >::cyx(), GlobalErrorBase< double, ErrorMatrixTag >::cyy(), GlobalErrorBase< double, ErrorMatrixTag >::czx(), GlobalErrorBase< double, ErrorMatrixTag >::czy(), GlobalErrorBase< double, ErrorMatrixTag >::czz(), GlobalErrorBase< double, ErrorMatrixTag >::GlobalErrorBase(), GlobalErrorBase< double, ErrorMatrixTag >::matrix(), GlobalErrorBase< double, ErrorMatrixTag >::matrix_new(), GlobalErrorBase< double, ErrorMatrixTag >::operator+(), and GlobalErrorBase< double, ErrorMatrixTag >::operator-().