1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ////////////////////////////////////////////////////////////////////////////
20 // The TRD track seed //
23 // Alex Bercuci <A.Bercuci@gsi.de> //
24 // Markus Fasel <M.Fasel@gsi.de> //
26 ////////////////////////////////////////////////////////////////////////////
29 #include "TLinearFitter.h"
30 #include "TClonesArray.h" // tmp
31 #include <TTreeStream.h>
34 #include "AliMathBase.h"
36 #include "AliTRDcluster.h"
37 #include "AliTRDseedV1.h"
38 #include "AliTRDtrackV1.h"
39 #include "AliTRDcalibDB.h"
40 #include "AliTRDchamberTimeBin.h"
41 #include "AliTRDtrackingChamber.h"
42 #include "AliTRDtrackerV1.h"
43 #include "AliTRDReconstructor.h"
44 #include "AliTRDrecoParam.h"
45 #include "Cal/AliTRDCalPID.h"
47 ClassImp(AliTRDseedV1)
49 //____________________________________________________________________
50 AliTRDseedV1::AliTRDseedV1(Int_t det)
64 //printf("AliTRDseedV1::AliTRDseedV1()\n");
66 for(int islice=0; islice < knSlices; islice++) fdEdx[islice] = 0.;
67 for(int ispec=0; ispec<AliPID::kSPECIES; ispec++) fProb[ispec] = -1.;
70 //____________________________________________________________________
71 AliTRDseedV1::AliTRDseedV1(const AliTRDseedV1 &ref)
72 :AliTRDseed((AliTRDseed&)ref)
73 ,fReconstructor(ref.fReconstructor)
83 // Copy Constructor performing a deep copy
86 //printf("AliTRDseedV1::AliTRDseedV1(const AliTRDseedV1 &)\n");
87 SetBit(kOwner, kFALSE);
88 for(int islice=0; islice < knSlices; islice++) fdEdx[islice] = ref.fdEdx[islice];
89 for(int ispec=0; ispec<AliPID::kSPECIES; ispec++) fProb[ispec] = ref.fProb[ispec];
93 //____________________________________________________________________
94 AliTRDseedV1& AliTRDseedV1::operator=(const AliTRDseedV1 &ref)
97 // Assignment Operator using the copy function
107 //____________________________________________________________________
108 AliTRDseedV1::~AliTRDseedV1()
111 // Destructor. The RecoParam object belongs to the underlying tracker.
114 //printf("I-AliTRDseedV1::~AliTRDseedV1() : Owner[%s]\n", IsOwner()?"YES":"NO");
117 for(int itb=0; itb<knTimebins; itb++){
118 if(!fClusters[itb]) continue;
119 //AliInfo(Form("deleting c %p @ %d", fClusters[itb], itb));
120 delete fClusters[itb];
121 fClusters[itb] = 0x0;
125 //____________________________________________________________________
126 void AliTRDseedV1::Copy(TObject &ref) const
133 AliTRDseedV1 &target = (AliTRDseedV1 &)ref;
135 target.fClusterIter = 0x0;
136 target.fClusterIdx = 0;
142 target.fReconstructor = fReconstructor;
144 for(int islice=0; islice < knSlices; islice++) target.fdEdx[islice] = fdEdx[islice];
145 for(int ispec=0; ispec<AliPID::kSPECIES; ispec++) target.fProb[ispec] = fProb[ispec];
147 AliTRDseed::Copy(target);
151 //____________________________________________________________
152 Bool_t AliTRDseedV1::Init(AliTRDtrackV1 *track)
154 // Initialize this tracklet using the track information
157 // track - the TRD track used to initialize the tracklet
159 // Detailed description
160 // The function sets the starting point and direction of the
161 // tracklet according to the information from the TRD track.
164 // The TRD track has to be propagated to the beginning of the
165 // chamber where the tracklet will be constructed
169 if(!track->GetProlongation(fX0, y, z)) return kFALSE;
171 fYref[1] = track->GetSnp()/(1. - track->GetSnp()*track->GetSnp());
173 fZref[1] = track->GetTgl();
175 //printf("Tracklet ref x[%7.3f] y[%7.3f] z[%7.3f], snp[%f] tgl[%f]\n", fX0, fYref[0], fZref[0], track->GetSnp(), track->GetTgl());
180 //____________________________________________________________________
181 void AliTRDseedV1::CookdEdx(Int_t nslices)
183 // Calculates average dE/dx for all slices and store them in the internal array fdEdx.
186 // nslices : number of slices for which dE/dx should be calculated
188 // store results in the internal array fdEdx. This can be accessed with the method
189 // AliTRDseedV1::GetdEdx()
191 // Detailed description
192 // Calculates average dE/dx for all slices. Depending on the PID methode
193 // the number of slices can be 3 (LQ) or 8(NN).
194 // The calculation of dQ/dl are done using the tracklet fit results (see AliTRDseedV1::GetdQdl(Int_t)) i.e.
196 // dQ/dl = qc/(dx * sqrt(1 + dy/dx^2 + dz/dx^2))
198 // The following effects are included in the calculation:
199 // 1. calibration values for t0 and vdrift (using x coordinate to calculate slice)
200 // 2. cluster sharing (optional see AliTRDrecoParam::SetClusterSharing())
204 Int_t nclusters[knSlices];
205 for(int i=0; i<knSlices; i++){
209 Float_t clength = (/*.5 * */AliTRDgeometry::AmThick() + AliTRDgeometry::DrThick());
211 AliTRDcluster *cluster = 0x0;
212 for(int ic=0; ic<AliTRDtrackerV1::GetNTimeBins(); ic++){
213 if(!(cluster = fClusters[ic])) continue;
214 Float_t x = cluster->GetX();
216 // Filter clusters for dE/dx calculation
218 // 1.consider calibration effects for slice determination
220 if(cluster->IsInChamber()) slice = Int_t(TMath::Abs(fX0 - x) * nslices / clength);
221 else slice = x < fX0 ? 0 : nslices-1;
223 // 2. take sharing into account
224 Float_t w = cluster->IsShared() ? .5 : 1.;
226 // 3. take into account large clusters TODO
227 //w *= c->GetNPads() > 3 ? .8 : 1.;
230 fdEdx[slice] += w * GetdQdl(ic); //fdQdl[ic];
232 } // End of loop over clusters
234 //if(fReconstructor->GetPIDMethod() == AliTRDReconstructor::kLQPID){
235 if(nslices == AliTRDReconstructor::kLQslices){
236 // calculate mean charge per slice (only LQ PID)
237 for(int is=0; is<nslices; is++){
238 if(nclusters[is]) fdEdx[is] /= nclusters[is];
244 //____________________________________________________________________
245 Float_t AliTRDseedV1::GetdQdl(Int_t ic) const
247 return fClusters[ic] ? TMath::Abs(fClusters[ic]->GetQ()) /fdX / TMath::Sqrt(1. + fYfit[1]*fYfit[1] + fZref[1]*fZref[1]) : 0.;
250 //____________________________________________________________________
251 Double_t* AliTRDseedV1::GetProbability()
253 // Fill probability array for tracklet from the DB.
258 // returns pointer to the probability array and 0x0 if missing DB access
260 // Detailed description
263 // retrive calibration db
264 AliTRDcalibDB *calibration = AliTRDcalibDB::Instance();
266 AliError("No access to calibration data");
270 if (!fReconstructor) {
271 AliError("Reconstructor not set.");
275 // Retrieve the CDB container class with the parametric detector response
276 const AliTRDCalPID *pd = calibration->GetPIDObject(fReconstructor->GetPIDMethod());
278 AliError("No access to AliTRDCalPID object");
281 //AliInfo(Form("Method[%d] : %s", fReconstructor->GetRecoParam() ->GetPIDMethod(), pd->IsA()->GetName()));
283 // calculate tracklet length TO DO
284 Float_t length = (AliTRDgeometry::AmThick() + AliTRDgeometry::DrThick());
285 /// TMath::Sqrt((1.0 - fSnp[iPlane]*fSnp[iPlane]) / (1.0 + fTgl[iPlane]*fTgl[iPlane]));
288 CookdEdx(fReconstructor->GetNdEdxSlices());
290 // Sets the a priori probabilities
291 for(int ispec=0; ispec<AliPID::kSPECIES; ispec++) {
292 fProb[ispec] = pd->GetProbability(ispec, fMom, &fdEdx[0], length, GetPlane());
298 //____________________________________________________________________
299 Float_t AliTRDseedV1::GetQuality(Bool_t kZcorr) const
302 // Returns a quality measurement of the current seed
305 Float_t zcorr = kZcorr ? fTilt * (fZProb - fZref[0]) : 0.;
307 .5 * TMath::Abs(18.0 - fN2)
308 + 10.* TMath::Abs(fYfit[1] - fYref[1])
309 + 5. * TMath::Abs(fYfit[0] - fYref[0] + zcorr)
310 + 2. * TMath::Abs(fMeanz - fZref[0]) / fPadLength;
313 //____________________________________________________________________
314 void AliTRDseedV1::GetCovAt(Double_t /*x*/, Double_t *cov) const
316 // Computes covariance in the y-z plane at radial point x
318 Int_t ic = 0; while (!fClusters[ic]) ic++;
319 AliTRDcalibDB *fCalib = AliTRDcalibDB::Instance();
320 Double_t exB = fCalib->GetOmegaTau(fCalib->GetVdriftAverage(fClusters[ic]->GetDetector()), -AliTracker::GetBz()*0.1);
322 Double_t sy2 = fSigmaY2*fSigmaY2 + .2*(fYfit[1]-exB)*(fYfit[1]-exB);
323 Double_t sz2 = fPadLength/12.;
326 //printf("Yfit[1] %f sy20 %f SigmaY2 %f\n", fYfit[1], sy20, fSigmaY2);
329 cov[1] = fTilt*(sy2-sz2);
332 // insert systematic uncertainties calibration and misalignment
334 fReconstructor->GetRecoParam()->GetSysCovMatrix(sys);
335 cov[0] += (sys[0]*sys[0]);
336 cov[2] += (sys[1]*sys[1]);
340 //____________________________________________________________________
341 void AliTRDseedV1::SetOwner()
343 //AliInfo(Form("own [%s] fOwner[%s]", own?"YES":"NO", fOwner?"YES":"NO"));
345 if(TestBit(kOwner)) return;
346 for(int ic=0; ic<knTimebins; ic++){
347 if(!fClusters[ic]) continue;
348 fClusters[ic] = new AliTRDcluster(*fClusters[ic]);
353 //____________________________________________________________________
354 Bool_t AliTRDseedV1::AttachClustersIter(AliTRDtrackingChamber *chamber, Float_t quality, Bool_t kZcorr, AliTRDcluster *c)
357 // Iterative process to register clusters to the seed.
358 // In iteration 0 we try only one pad-row and if quality not
359 // sufficient we try 2 pad-rows (about 5% of tracks cross 2 pad-rows)
364 if(!fReconstructor->GetRecoParam() ){
365 AliError("Seed can not be used without a valid RecoParam.");
369 AliTRDchamberTimeBin *layer = 0x0;
370 if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=7){
371 AliTRDcluster *cl = c ? new AliTRDcluster(*c) : 0x0;
372 AliTRDtrackingChamber *ch = new AliTRDtrackingChamber(*chamber);
373 (*AliTRDtrackerV1::DebugStreamer()) << "AttachClustersIter"
375 << "tracklet.=" << this
381 Double_t kroady = fReconstructor->GetRecoParam() ->GetRoad1y();
382 Double_t kroadz = fPadLength * .5 + 1.;
384 // initialize configuration parameters
385 Float_t zcorr = kZcorr ? fTilt * (fZProb - fZref[0]) : 0.;
386 Int_t niter = kZcorr ? 1 : 2;
391 for (Int_t iter = 0; iter < niter; iter++) {
393 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
394 if(!(layer = chamber->GetTB(iTime))) continue;
395 if(!Int_t(*layer)) continue;
397 // define searching configuration
398 Double_t dxlayer = layer->GetX() - fX0;
401 //Try 2 pad-rows in second iteration
403 zexp = fZref[0] + fZref[1] * dxlayer - zcorr;
404 if (zexp > c->GetZ()) zexp = c->GetZ() + fPadLength*0.5;
405 if (zexp < c->GetZ()) zexp = c->GetZ() - fPadLength*0.5;
407 } else zexp = fZref[0] + (kZcorr ? fZref[1] * dxlayer : 0.);
408 yexp = fYref[0] + fYref[1] * dxlayer - zcorr;
410 // Get and register cluster
411 Int_t index = layer->SearchNearestCluster(yexp, zexp, kroady, kroadz);
412 if (index < 0) continue;
413 AliTRDcluster *cl = (*layer)[index];
415 fIndexes[iTime] = layer->GetGlobalIndex(index);
416 fClusters[iTime] = cl;
417 fY[iTime] = cl->GetY();
418 fZ[iTime] = cl->GetZ();
421 if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=7) AliInfo(Form("iter = %d ncl [%d] = %d", iter, fDet, ncl));
424 // calculate length of the time bin (calibration aware)
425 Int_t irp = 0; Float_t x[2]; Int_t tb[2];
426 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
427 if(!fClusters[iTime]) continue;
428 x[irp] = fClusters[iTime]->GetX();
433 fdX = (x[1] - x[0]) / (tb[0] - tb[1]);
435 // update X0 from the clusters (calibration/alignment aware)
436 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
437 if(!(layer = chamber->GetTB(iTime))) continue;
438 if(!layer->IsT0()) continue;
439 if(fClusters[iTime]){
440 fX0 = fClusters[iTime]->GetX();
442 } else { // we have to infere the position of the anode wire from the other clusters
443 for (Int_t jTime = iTime+1; jTime < AliTRDtrackerV1::GetNTimeBins(); jTime++) {
444 if(!fClusters[jTime]) continue;
445 fX0 = fClusters[jTime]->GetX() + fdX * (jTime - iTime);
451 // update YZ reference point
454 // update x reference positions (calibration/alignment aware)
455 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
456 if(!fClusters[iTime]) continue;
457 fX[iTime] = fClusters[iTime]->GetX() - fX0;
460 AliTRDseed::Update();
462 if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=7) AliInfo(Form("iter = %d nclFit [%d] = %d", iter, fDet, fN2));
465 tquality = GetQuality(kZcorr);
466 if(tquality < quality) break;
467 else quality = tquality;
471 if (!IsOK()) return kFALSE;
473 if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kTracker)>=1) CookLabels();
478 //____________________________________________________________________
479 Bool_t AliTRDseedV1::AttachClusters(AliTRDtrackingChamber *chamber
483 // Projective algorithm to attach clusters to seeding tracklets
489 // Detailed description
490 // 1. Collapse x coordinate for the full detector plane
491 // 2. truncated mean on y (r-phi) direction
493 // 4. truncated mean on z direction
498 if(!fReconstructor->GetRecoParam() ){
499 AliError("Seed can not be used without a valid RecoParam.");
503 const Int_t kClusterCandidates = 2 * knTimebins;
506 Double_t kroady = fReconstructor->GetRecoParam() ->GetRoad1y();
507 Double_t kroadz = fPadLength * 1.5 + 1.;
508 // correction to y for the tilting angle
509 Float_t zcorr = kZcorr ? fTilt * (fZProb - fZref[0]) : 0.;
512 AliTRDcluster *clusters[kClusterCandidates];
513 Double_t cond[4], yexp[knTimebins], zexp[knTimebins],
514 yres[kClusterCandidates], zres[kClusterCandidates];
515 Int_t ncl, *index = 0x0, tboundary[knTimebins];
517 // Do cluster projection
518 AliTRDchamberTimeBin *layer = 0x0;
519 Int_t nYclusters = 0; Bool_t kEXIT = kFALSE;
520 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
521 if(!(layer = chamber->GetTB(iTime))) continue;
522 if(!Int_t(*layer)) continue;
524 fX[iTime] = layer->GetX() - fX0;
525 zexp[iTime] = fZref[0] + fZref[1] * fX[iTime];
526 yexp[iTime] = fYref[0] + fYref[1] * fX[iTime] - zcorr;
528 // build condition and process clusters
529 cond[0] = yexp[iTime] - kroady; cond[1] = yexp[iTime] + kroady;
530 cond[2] = zexp[iTime] - kroadz; cond[3] = zexp[iTime] + kroadz;
531 layer->GetClusters(cond, index, ncl);
532 for(Int_t ic = 0; ic<ncl; ic++){
533 AliTRDcluster *c = layer->GetCluster(index[ic]);
534 clusters[nYclusters] = c;
535 yres[nYclusters++] = c->GetY() - yexp[iTime];
536 if(nYclusters >= kClusterCandidates) {
537 AliWarning(Form("Cluster candidates reached limit %d. Some may be lost.", kClusterCandidates));
542 tboundary[iTime] = nYclusters;
546 // Evaluate truncated mean on the y direction
547 Double_t mean, sigma;
548 AliMathBase::EvaluateUni(nYclusters, yres, mean, sigma, Int_t(nYclusters*.8)-2);
549 // purge cluster candidates
550 Int_t nZclusters = 0;
551 for(Int_t ic = 0; ic<nYclusters; ic++){
552 if(yres[ic] - mean > 4. * sigma){
556 zres[nZclusters++] = clusters[ic]->GetZ() - zexp[clusters[ic]->GetLocalTimeBin()];
559 // Evaluate truncated mean on the z direction
560 AliMathBase::EvaluateUni(nZclusters, zres, mean, sigma, Int_t(nZclusters*.8)-2);
561 // purge cluster candidates
562 for(Int_t ic = 0; ic<nZclusters; ic++){
563 if(zres[ic] - mean > 4. * sigma){
570 // Select only one cluster/TimeBin
571 Int_t lastCluster = 0;
573 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
574 ncl = tboundary[iTime] - lastCluster;
576 Int_t iptr = lastCluster;
578 Float_t dold = 9999.;
579 for(int ic=lastCluster; ic<tboundary[iTime]; ic++){
580 if(!clusters[ic]) continue;
581 Float_t y = yexp[iTime] - clusters[ic]->GetY();
582 Float_t z = zexp[iTime] - clusters[ic]->GetZ();
583 Float_t d = y * y + z * z;
584 if(d > dold) continue;
589 fIndexes[iTime] = chamber->GetTB(iTime)->GetGlobalIndex(iptr);
590 fClusters[iTime] = clusters[iptr];
591 fY[iTime] = clusters[iptr]->GetY();
592 fZ[iTime] = clusters[iptr]->GetZ();
593 lastCluster = tboundary[iTime];
597 // number of minimum numbers of clusters expected for the tracklet
598 Int_t kClmin = Int_t(fReconstructor->GetRecoParam() ->GetFindableClusters()*AliTRDtrackerV1::GetNTimeBins());
600 AliWarning(Form("Not enough clusters to fit the tracklet %d [%d].", fN2, kClmin));
605 // update used clusters
607 for (Int_t iTime = 0; iTime < AliTRDtrackerV1::GetNTimeBins(); iTime++) {
608 if(!fClusters[iTime]) continue;
609 if((fClusters[iTime]->IsUsed())) fNUsed++;
612 if (fN2-fNUsed < kClmin){
613 AliWarning(Form("Too many clusters already in use %d (from %d).", fNUsed, fN2));
621 //____________________________________________________________________
622 Bool_t AliTRDseedV1::Fit(Bool_t tilt)
625 // Linear fit of the tracklet
630 // True if successful
632 // Detailed description
633 // 2. Check if tracklet crosses pad row boundary
634 // 1. Calculate residuals in the y (r-phi) direction
635 // 3. Do a Least Square Fit to the data
638 const Int_t kClmin = 8;
639 const Float_t q0 = 100.;
640 const Float_t clSigma0 = 2.E-2; //[cm]
641 const Float_t clSlopeQ = -1.19E-2; //[1/cm]
644 const Int_t kNtb = AliTRDtrackerV1::GetNTimeBins();
645 AliTRDtrackerV1::AliTRDLeastSquare fitterY, fitterZ;
647 // convertion factor from square to gauss distribution for sigma
648 Double_t convert = 1./TMath::Sqrt(12.);
650 // book cluster information
651 Double_t xc[knTimebins+1], yc[knTimebins], zc[knTimebins+1], sy[knTimebins], sz[knTimebins+1];
652 Int_t zRow[knTimebins];
653 AliTRDcluster *c = 0x0;
655 for (Int_t ic=0; ic<kNtb; ic++) {
662 if(!(c = fClusters[ic])) continue;
663 if(!c->IsInChamber()) continue;
665 if(c->GetNPads()>4) w = .5;
666 if(c->GetNPads()>5) w = .2;
667 zRow[nc] = c->GetPadRow();
668 xc[nc] = c->GetX() - fX0;
671 Float_t qr = c->GetQ() - q0;
672 sy[nc] = qr < 0. ? clSigma0*TMath::Exp(clSlopeQ*qr) : clSigma0;
673 sz[nc] = fPadLength*convert;
674 fitterZ.AddPoint(&xc[nc], zc[nc], sz[nc]);
678 if (nc < kClmin) return kFALSE;
682 Int_t nz = AliTRDtrackerV1::Freq(nc, zRow, zN, kFALSE);
683 // more than one pad row crossing
684 if(nz>2) return kFALSE;
686 // estimate reference parameter at average x
687 Double_t y0 = fYref[0];
688 Double_t dydx = fYref[1];
689 Double_t dzdx = fZref[1];
692 // determine z offset of the fit
693 Int_t nchanges = 0, nCross = 0;
694 if(nz==2){ // tracklet is crossing pad row
695 // Find the break time allowing one chage on pad-rows
696 // with maximal number of accepted clusters
697 Int_t padRef = zRow[0];
698 for (Int_t ic=1; ic<nc; ic++) {
699 if(zRow[ic] == padRef) continue;
702 if(zRow[ic-1] == zRow[ic]){
703 printf("ERROR in pad row change!!!\n");
706 // evaluate parameters of the crossing point
707 Float_t sx = (xc[ic-1] - xc[ic])*convert;
708 xc[nc] = .5 * (xc[ic-1] + xc[ic]);
709 zc[nc] = .5 * (zc[ic-1] + zc[ic]);
710 sz[nc] = TMath::Max(dzdx * sx, .01);
711 dzdx = zc[ic-1] > zc[ic] ? 1. : -1.;
718 // condition on nCross and reset nchanges TODO
721 if(dzdx * fZref[1] < 0.){
722 AliInfo("tracklet direction does not correspond to the track direction. TODO.");
724 SetBit(kRowCross, kTRUE); // mark pad row crossing
725 fCross[0] = xc[nc]; fCross[2] = zc[nc]; fCross[3] = sz[nc];
726 fitterZ.AddPoint(&xc[nc], zc[nc], sz[nc]);
728 dzdx = fZref[1]; // we don't trust Parameter[1] ??;
729 zc[nc] = fitterZ.GetFunctionParameter(0);
730 } else if(nchanges > 1){ // debug
731 AliInfo("ERROR in n changes!!!");
736 // estimate deviation from reference direction
738 for (Int_t ic=0; ic<nc; ic++) {
739 yc[ic] -= (y0 + xc[ic]*dydx);
740 if(tilt) yc[ic] -= (xc[ic]*dzdx + fTilt * (zc[ic] - zc[nc]));
741 fitterY.AddPoint(&xc[ic], yc[ic], sy[ic]);
744 fYfit[0] = y0+fitterY.GetFunctionParameter(0);
745 fYfit[1] = dydx+fitterY.GetFunctionParameter(1);
747 if(nchanges) fCross[1] = fYfit[0] + fCross[0] * fYfit[1];
749 // printf("\nnz = %d\n", nz);
750 // for(int ic=0; ic<35; ic++) printf("%d row[%d]\n", ic, zRow[ic]);
752 // for(int ic=0; ic<nz; ic++) printf("%d n[%d]\n", ic, zN[ic]);
757 //___________________________________________________________________
758 void AliTRDseedV1::Draw(Option_t*)
762 //___________________________________________________________________
763 void AliTRDseedV1::Print(Option_t*) const
766 // Printing the seedstatus
769 printf("Seed status :\n");
770 printf(" fTilt = %f\n", fTilt);
771 printf(" fPadLength = %f\n", fPadLength);
772 printf(" fX0 = %f\n", fX0);
773 for(int ic=0; ic<AliTRDtrackerV1::GetNTimeBins(); ic++) {
774 const Char_t *isUsable = fUsable[ic]?"Yes":"No";
775 printf(" %d X[%f] Y[%f] Z[%f] Indexes[%d] clusters[%p] usable[%s]\n"
781 , ((void*) fClusters[ic])
785 printf(" fYref[0] =%f fYref[1] =%f\n", fYref[0], fYref[1]);
786 printf(" fZref[0] =%f fZref[1] =%f\n", fZref[0], fZref[1]);
787 printf(" fYfit[0] =%f fYfit[1] =%f\n", fYfit[0], fYfit[1]);
788 printf(" fYfitR[0]=%f fYfitR[1]=%f\n", fYfitR[0], fYfitR[1]);
789 printf(" fZfit[0] =%f fZfit[1] =%f\n", fZfit[0], fZfit[1]);
790 printf(" fZfitR[0]=%f fZfitR[1]=%f\n", fZfitR[0], fZfitR[1]);
791 printf(" fSigmaY =%f\n", fSigmaY);
792 printf(" fSigmaY2=%f\n", fSigmaY2);
793 printf(" fMeanz =%f\n", fMeanz);
794 printf(" fZProb =%f\n", fZProb);
795 printf(" fLabels[0]=%d fLabels[1]=%d\n", fLabels[0], fLabels[1]);
796 printf(" fN =%d\n", fN);
797 printf(" fN2 =%d (>8 isOK)\n",fN2);
798 printf(" fNUsed =%d\n", fNUsed);
799 printf(" fFreq =%d\n", fFreq);
800 printf(" fNChange=%d\n", fNChange);
801 printf(" fMPads =%f\n", fMPads);
803 printf(" fC =%f\n", fC);
804 printf(" fCC =%f\n",fCC);
805 printf(" fChi2 =%f\n", fChi2);
806 printf(" fChi2Z =%f\n", fChi2Z);