// found using the covariance matrix of the point
// (assuming sigma(x)=0 at the reference coordinate system.
Int_t debugLevel = AliLog::GetDebugLevel("","AliTrackFitterRieman");
- Float_t debugRatio = 1./(1.+debugLevel);
+
+ // Float_t debugRatio = 1./(1.+debugLevel);
+ Float_t debugRatio = debugLevel? 1.0/debugLevel : 1.0;
const Int_t kMinPoints =1;
Int_t npoints = fPoints->GetNPoints();
fPTrack->GetPoint(pFit,ipoint);
pFitlocal= pFit.Rotate(lAngle);
//
- Float_t xyz[3], cov[3];
+ Float_t xyz[3], cov[6];
xyz[0] = pFitlocal.GetX();
xyz[1] = pFitlocal.GetY();
xyz[2] = pFitlocal.GetZ();
if (AliLog::GetDebugLevel("","AliTrackFitterRieman")>0 && gRandom->Rndm()<debugRatio){
AliTrackPoint lp0(p);
AliTrackPoint lp2(p2);
+ AliTrackPoint localp0(p);
+ AliTrackPoint localp2(p2);
+ Float_t lAngle = lp0.GetAngle();
+ localp0 = localp0.Rotate(lAngle);
+ localp2 = localp2.Rotate(lAngle);
+
(*fDebugStream)<<"PCA"<<
- "P0.="<<&lp0<<
+ "P0.="<<&lp0<< //global position
"P2.="<<&lp2<<
+ "LP0.="<<&localp0<< //local position
+ "LP2.="<<&localp2<<
"\n";
}
return kTRUE;
}
return TMath::Sqrt(error+correction);
}
-