From 18f657008d6fa598b534cff2d135c3950358687d Mon Sep 17 00:00:00 2001 From: cvetan Date: Wed, 18 Mar 2009 15:17:04 +0000 Subject: [PATCH] Added AddTrackParams() method for convenience + some comments --- STEER/AliRelAlignerKalman.cxx | 11 +++++++++++ STEER/AliRelAlignerKalman.h | 1 + 2 files changed, 12 insertions(+) diff --git a/STEER/AliRelAlignerKalman.cxx b/STEER/AliRelAlignerKalman.cxx index d81808f81be..b9f538ec03b 100644 --- a/STEER/AliRelAlignerKalman.cxx +++ b/STEER/AliRelAlignerKalman.cxx @@ -317,6 +317,15 @@ Bool_t AliRelAlignerKalman::AddESDtrack( const AliESDtrack* pTrack ) return kFALSE; } +//______________________________________________________________________________ +Bool_t AliRelAlignerKalman::AddTrackParams( const AliExternalTrackParam* p1, const AliExternalTrackParam* p2 ) +{ + //Update the estimate using new matching tracklets + + if (!SetTrackParams(p1, p2)) return kFALSE; + return Update(); +} + //______________________________________________________________________________ Bool_t AliRelAlignerKalman::AddCosmicEvent( const AliESDEvent* pEvent ) { @@ -690,6 +699,8 @@ Bool_t AliRelAlignerKalman::IsOutlier( const TVectorD& update, const TMatrixDSym //______________________________________________________________________________ Bool_t AliRelAlignerKalman::IsPositiveDefinite( const TMatrixD& mat ) const { + //check for positive definiteness + for (Int_t i=0; i