The variable fSeed is not really needed as the fitter is called in a way that the...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Apr 2009 11:40:45 +0000 (11:40 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Apr 2009 11:40:45 +0000 (11:40 +0000)
STEER/AliTrackFitterKalman.cxx
STEER/AliTrackFitterKalman.h

index c9b2d58..71523b3 100755 (executable)
@@ -42,8 +42,7 @@ const Double_t AliTrackFitterKalman::fgkMaxChi2=33.;
 AliTrackFitterKalman::
 AliTrackFitterKalman(AliTrackPointArray *array, Bool_t owner):
   AliTrackFitter(array,owner),
-  fMaxChi2(fgkMaxChi2),
-  fSeed(kFALSE)
+  fMaxChi2(fgkMaxChi2)
 {
   //
   // Constructor
@@ -55,7 +54,6 @@ Bool_t AliTrackFitterKalman::Begin(Int_t first, Int_t last) {
   // Make a seed out of the track points with the indices "first" and "last". 
   // This is the "default" seed.
   //
-  if (fSeed) return kTRUE;
   fPoints->Sort();
   AliTrackPoint fp,lp;
   fPoints->GetPoint(fp,first); fPoints->GetPoint(lp,last);
@@ -329,5 +327,4 @@ AliTrackFitterKalman::SetSeed(const Double_t par[5], const Double_t cov[15]) {
   cv(0,3)=cv(3,0); cv(1,3)=cv(3,1); cv(2,3)=cv(3,2);
   cv(0,4)=cv(4,0); cv(1,4)=cv(4,1); cv(2,4)=cv(4,2); cv(3,4)=cv(4,3);
 
-  fSeed=kTRUE;
 }
index ae39197..8b099ca 100755 (executable)
@@ -19,8 +19,7 @@ class AliTrackFitterKalman : public AliTrackFitter {
 public:
   AliTrackFitterKalman() : 
      AliTrackFitter(), 
-     fMaxChi2(fgkMaxChi2),
-     fSeed(kFALSE) {}
+     fMaxChi2(fgkMaxChi2) {}
 
   AliTrackFitterKalman(AliTrackPointArray *array, Bool_t owner = kTRUE);
   virtual ~AliTrackFitterKalman() {}
@@ -34,7 +33,7 @@ public:
 
   Bool_t Begin(Int_t first, Int_t last);
   Bool_t AddPoint(const AliTrackPoint *p);
-  Bool_t Update() {fSeed=kFALSE; return kTRUE;}
+  Bool_t Update() {return kTRUE;}
 
 private:
   AliTrackFitterKalman(const AliTrackFitterKalman &kalman);
@@ -48,9 +47,8 @@ private:
   static const Double_t fgkMaxChi2;  // Default maximal allowed chi2 
 
   Double_t fMaxChi2;                 // A point is added if chi2 < fMaxChi2 
-  Bool_t   fSeed;                    // True, if the fitter is already "seeded" 
 
-  ClassDef(AliTrackFitterKalman,2)   // Kalman-Filter fit to a straight line
+  ClassDef(AliTrackFitterKalman,3)   // Kalman-Filter fit to a straight line
 
 };