]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRelAlignerKalman.cxx
Example train to produce HF candidates
[u/mrichter/AliRoot.git] / STEER / AliRelAlignerKalman.cxx
index d81808f81be90be8ddc5ab65b301d0cf20708930..b9f538ec03b57f276c0c0490ada242c1fbaf0f60 100644 (file)
@@ -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<mat.GetNcols(); i++)
   {
     if (mat(i,i)<=0.) return kFALSE;