]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing warnibgs (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2005 14:29:01 +0000 (14:29 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2005 14:29:01 +0000 (14:29 +0000)
TPC/AliTPCseed.cxx
TPC/AliTPCseed.h
TPC/AliTPCtrackerMI.cxx
TPC/AliTPCtrackerMI.h

index bdc98c858ae91a2cfc37812d87738883eb58ca55..b7c2b7b5e9fb70fab210fa8b6ae981c08e96a60f 100644 (file)
@@ -332,7 +332,7 @@ Int_t  AliTPCseed::GetProlongation(Double_t xk, Double_t &y, Double_t & z) const
 
 
 //_____________________________________________________________________________
-Double_t AliTPCseed::GetPredictedChi2(const AliTPCclusterMI *c) const 
+Double_t AliTPCseed::GetPredictedChi2(const AliCluster *c) const 
 {
   //-----------------------------------------------------------------
   // This function calculates a predicted chi2 increment.
@@ -392,7 +392,7 @@ Int_t AliTPCseed::Compare(const TObject *o) const {
 
 
 //_____________________________________________________________________________
-Int_t AliTPCseed::Update(const AliTPCclusterMI *c, Double_t chisq, UInt_t /*index*/) {
+Int_t AliTPCseed::Update(const AliCluster *c, Double_t chisq, UInt_t /*index*/) {
   //-----------------------------------------------------------------
   // This function associates a cluster with this track.
   //-----------------------------------------------------------------
index 4eca0c393274a5fcfe80cd9b64c6f01039e4316f..30d332a685b4c1fe0aafd4ba2d239a278408bf4f 100644 (file)
@@ -40,8 +40,8 @@ class AliTPCseed : public AliTPCtrack {
      Int_t Compare(const TObject *o) const;
      void Reset(Bool_t all = kTRUE);
      Int_t GetProlongation(Double_t xr, Double_t &y, Double_t & z) const;
-     virtual Double_t GetPredictedChi2(const AliTPCclusterMI *cluster) const;
-     virtual Int_t Update(const AliTPCclusterMI* c, Double_t chi2, UInt_t i);
+     virtual Double_t GetPredictedChi2(const AliCluster *cluster2) const;
+     virtual Int_t Update(const AliCluster* c2, Double_t chi2, UInt_t i);
      AliTPCTrackerPoint * GetTrackPoint(Int_t i);
      void RebuildSeed(); // rebuild seed to be ready for storing
      Double_t GetDensityFirst(Int_t n);
index f952e99f36136141a4aba887626b47808bf6dfe6..e12bfd14d76b3191b2d7b9e76ae4e45598877f88 100644 (file)
@@ -2476,6 +2476,7 @@ Int_t AliTPCtrackerMI::RefitInward(AliESD *event)
   fIteration=2;
   //PrepareForProlongation(fSeeds,1);
   PropagateForward2(fSeeds);
+
   Int_t ntracks=0;
   Int_t nseed = fSeeds->GetEntriesFast();
   for (Int_t i=0;i<nseed;i++){
@@ -2488,6 +2489,14 @@ Int_t AliTPCtrackerMI::RefitInward(AliESD *event)
     AliESDtrack *esd=event->GetTrack(i);
     seed->CookdEdx(0.02,0.6);
     CookLabel(seed,0.1); //For comparison only
+    //
+    if (0 && seed!=0&&esd!=0) {
+      TTreeSRedirector &cstream = *fDebugStreamer;
+      cstream<<"Crefit"<<
+       "Esd.="<<esd<<
+       "Track.="<<seed<<
+       "\n"; 
+    }
     if (seed->GetNumberOfClusters()>15){
       esd->UpdateTrackParams(seed,AliESDtrack::kTPCrefit); 
       esd->SetTPCPoints(seed->GetPoints());
@@ -4044,7 +4053,7 @@ void  AliTPCtrackerMI::FindKinks(TObjArray * array, AliESD *esd)
            track0->fCircular += 2;
          }
        }               
-       if (sign){        
+       if (sign&&0){     
          //debug stream
          cstream<<"Curling"<<
            "lab0="<<track0->fLab<<
@@ -5976,10 +5985,11 @@ Float_t  AliTPCtrackerMI::GetSigmaZ(AliTPCseed * seed)
 
 
 //__________________________________________________________________________
-void AliTPCtrackerMI::CookLabel(AliTPCseed *t, Float_t wrong) const {
+void AliTPCtrackerMI::CookLabel(AliKalmanTrack *tk, Float_t wrong) const {
   //--------------------------------------------------------------------
   //This function "cooks" a track label. If label<0, this track is fake.
   //--------------------------------------------------------------------
+  AliTPCseed * t = (AliTPCseed*)tk;
   Int_t noc=t->GetNumberOfClusters();
   if (noc<10){
     //printf("\nnot founded prolongation\n\n\n");
index 53836a25209bb915bc2197073be93ecbbf5dde55..17cc3c59c82dc75369cd447ad3061971a331cacd 100644 (file)
@@ -67,7 +67,7 @@ public:
    AliCluster * GetCluster (int) const {return 0;}
    AliTPCclusterMI *GetClusterMI(Int_t index) const;
    Int_t Clusters2Tracks();
-   virtual void  CookLabel(AliTPCseed *t,Float_t wrong) const; 
+   virtual void  CookLabel(AliKalmanTrack *tk,Float_t wrong) const; 
    virtual Int_t   CookLabel(AliTPCseed *t,Float_t wrong, Int_t first,Int_t last ) const; 
    
    void RotateToLocal(AliTPCseed *seed);