-// //____________________________________________________________________
-// Bool_t AliTRDseedV1::AttachClustersIter(AliTRDtrackingChamber *chamber, Float_t quality, Bool_t kZcorr, AliTRDcluster *c)
-// {
-// //
-// // Iterative process to register clusters to the seed.
-// // In iteration 0 we try only one pad-row and if quality not
-// // sufficient we try 2 pad-rows (about 5% of tracks cross 2 pad-rows)
-// //
-// // debug level 7
-// //
-//
-// if(!fReconstructor->GetRecoParam() ){
-// AliError("Seed can not be used without a valid RecoParam.");
-// return kFALSE;
-// }
-//
-// AliTRDchamberTimeBin *layer = 0x0;
-// if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=7){
-// AliTRDtrackingChamber ch(*chamber);
-// ch.SetOwner();
-// TTreeSRedirector &cstreamer = *fReconstructor->GetDebugStream(AliTRDReconstructor::kTracker);
-// cstreamer << "AttachClustersIter"
-// << "chamber.=" << &ch
-// << "tracklet.=" << this
-// << "\n";
-// }
-//
-// Float_t tquality;
-// Double_t kroady = fReconstructor->GetRecoParam() ->GetRoad1y();
-// Double_t kroadz = GetPadLength() * .5 + 1.;
-//
-// // initialize configuration parameters
-// Float_t zcorr = kZcorr ? GetTilt() * (fZfit[0] - fZref[0]) : 0.;
-// Int_t niter = kZcorr ? 1 : 2;
-//
-// Double_t yexp, zexp;
-// Int_t ncl = 0;
-// // start seed update
-// for (Int_t iter = 0; iter < niter; iter++) {
-// ncl = 0;
-// for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
-// if(!(layer = chamber->GetTB(iTime))) continue;
-// if(!Int_t(*layer)) continue;
-//
-// // define searching configuration
-// Double_t dxlayer = layer->GetX() - fX0;
-// if(c){
-// zexp = c->GetZ();
-// //Try 2 pad-rows in second iteration
-// if (iter > 0) {
-// zexp = fZref[0] + fZref[1] * dxlayer - zcorr;
-// if (zexp > c->GetZ()) zexp = c->GetZ() + GetPadLength()*0.5;
-// if (zexp < c->GetZ()) zexp = c->GetZ() - GetPadLength()*0.5;
-// }
-// } else zexp = fZref[0] + (kZcorr ? fZref[1] * dxlayer : 0.);
-// yexp = fYref[0] + fYref[1] * dxlayer - zcorr;
-//
-// // Get and register cluster
-// Int_t index = layer->SearchNearestCluster(yexp, zexp, kroady, kroadz);
-// if (index < 0) continue;
-// AliTRDcluster *cl = (*layer)[index];
-//
-// fIndexes[iTime] = layer->GetGlobalIndex(index);
-// fClusters[iTime] = cl;
-// // fY[iTime] = cl->GetY();
-// // fZ[iTime] = cl->GetZ();
-// ncl++;
-// }
-// if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=7) AliInfo(Form("iter = %d ncl [%d] = %d", iter, fDet, ncl));
-//
-// if(ncl>1){
-// // calculate length of the time bin (calibration aware)
-// Int_t irp = 0; Float_t x[2]={0., 0.}; Int_t tb[2] = {0,0};
-// for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
-// if(!fClusters[iTime]) continue;
-// x[irp] = fClusters[iTime]->GetX();
-// tb[irp] = iTime;
-// irp++;
-// if(irp==2) break;
-// }
-// Int_t dtb = tb[1] - tb[0];
-// fdX = dtb ? (x[0] - x[1]) / dtb : 0.15;
-//
-// // update X0 from the clusters (calibration/alignment aware)
-// for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
-// if(!(layer = chamber->GetTB(iTime))) continue;
-// if(!layer->IsT0()) continue;
-// if(fClusters[iTime]){
-// fX0 = fClusters[iTime]->GetX();
-// break;
-// } else { // we have to infere the position of the anode wire from the other clusters
-// for (Int_t jTime = iTime+1; jTime < AliTRDtrackerV1::GetNTimeBins(); jTime++) {
-// if(!fClusters[jTime]) continue;
-// fX0 = fClusters[jTime]->GetX() + fdX * (jTime - iTime);
-// break;
-// }
-// }
-// }
-//
-// // update YZ reference point
-// // TODO
-//
-// // update x reference positions (calibration/alignment aware)
-// // for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
-// // if(!fClusters[iTime]) continue;
-// // fX[iTime] = fX0 - fClusters[iTime]->GetX();
-// // }
-//
-// FitMI();
-// }
-// if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=7) AliInfo(Form("iter = %d nclFit [%d] = %d", iter, fDet, fN2));
-//
-// if(IsOK()){
-// tquality = GetQuality(kZcorr);
-// if(tquality < quality) break;
-// else quality = tquality;
-// }
-// kroadz *= 2.;
-// } // Loop: iter
-// if (!IsOK()) return kFALSE;
-//
-// if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=1) CookLabels();
-//
-// // load calibration params
-// Calibrate();
-// UpdateUsed();
-// return kTRUE;
-// }