//_____________________________________________________________________________
-Double_t AliTPCseed::GetPredictedChi2(const AliTPCclusterMI *c) const
+Double_t AliTPCseed::GetPredictedChi2(const AliCluster *c) const
{
//-----------------------------------------------------------------
// This function calculates a predicted chi2 increment.
//_____________________________________________________________________________
-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.
//-----------------------------------------------------------------
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);
fIteration=2;
//PrepareForProlongation(fSeeds,1);
PropagateForward2(fSeeds);
+
Int_t ntracks=0;
Int_t nseed = fSeeds->GetEntriesFast();
for (Int_t i=0;i<nseed;i++){
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());
track0->fCircular += 2;
}
}
- if (sign){
+ if (sign&&0){
//debug stream
cstream<<"Curling"<<
"lab0="<<track0->fLab<<
//__________________________________________________________________________
-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");
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);