From af32720da0d3026709a6ea5e7f9fd93f566753e7 Mon Sep 17 00:00:00 2001 From: hristov Date: Tue, 13 Dec 2005 14:29:01 +0000 Subject: [PATCH] Removing warnibgs (M.Ivanov) --- TPC/AliTPCseed.cxx | 4 ++-- TPC/AliTPCseed.h | 4 ++-- TPC/AliTPCtrackerMI.cxx | 14 ++++++++++++-- TPC/AliTPCtrackerMI.h | 2 +- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/TPC/AliTPCseed.cxx b/TPC/AliTPCseed.cxx index bdc98c858ae..b7c2b7b5e9f 100644 --- a/TPC/AliTPCseed.cxx +++ b/TPC/AliTPCseed.cxx @@ -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. //----------------------------------------------------------------- diff --git a/TPC/AliTPCseed.h b/TPC/AliTPCseed.h index 4eca0c39327..30d332a685b 100644 --- a/TPC/AliTPCseed.h +++ b/TPC/AliTPCseed.h @@ -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); diff --git a/TPC/AliTPCtrackerMI.cxx b/TPC/AliTPCtrackerMI.cxx index f952e99f361..e12bfd14d76 100644 --- a/TPC/AliTPCtrackerMI.cxx +++ b/TPC/AliTPCtrackerMI.cxx @@ -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;iGetTrack(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.="<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="<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"); diff --git a/TPC/AliTPCtrackerMI.h b/TPC/AliTPCtrackerMI.h index 53836a25209..17cc3c59c82 100644 --- a/TPC/AliTPCtrackerMI.h +++ b/TPC/AliTPCtrackerMI.h @@ -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); -- 2.39.3