diff --git a/ITS/UPGRADE/AliITSUTrackCooked.cxx b/ITS/UPGRADE/AliITSUTrackCooked.cxx index d8079402e4a..167e6299e11 100644 --- a/ITS/UPGRADE/AliITSUTrackCooked.cxx +++ b/ITS/UPGRADE/AliITSUTrackCooked.cxx @@ -38,6 +38,20 @@ AliITSUTrackCooked::~AliITSUTrackCooked() //-------------------------------------------------------------------- } +Int_t AliITSUTrackCooked::Compare(const TObject *o) const { + //----------------------------------------------------------------- + // This function compares tracks according to the their curvature + //----------------------------------------------------------------- + const AliITSUTrackCooked *t=(const AliITSUTrackCooked*)o; + Double_t co=TMath::Abs(t->OneOverPt()); + Double_t c =TMath::Abs(OneOverPt()); + //Double_t co=t->GetSigmaY2()*t->GetSigmaZ2(); + //Double_t c =GetSigmaY2()*GetSigmaZ2(); + if (c>co) return 1; + else if (cSort(); return fSeeds->GetEntriesFast(); }