fAlignObjs[iLayer] = new AliAlignObj*[AliAlignObj::LayerSize(iLayer + AliAlignObj::kFirstLayer)];
for (Int_t iModule = 0; iModule < AliAlignObj::LayerSize(iLayer + AliAlignObj::kFirstLayer); iModule++) {
UShort_t volid = AliAlignObj::LayerToVolUID(iLayer+ AliAlignObj::kFirstLayer,iModule);
- fAlignObjs[iLayer][iModule] = new AliAlignObjAngles("",volid,0,0,0,0,0,0,kTRUE);
+ fAlignObjs[iLayer][iModule] = new AliAlignObjAngles(AliAlignObj::SymName(volid),volid,0,0,0,0,0,0,kTRUE);
}
}
}
TMath::Sort(nvectors, data, index, kFALSE);
Int_t nquant = TMath::Min(Int_t(Double_t(((hh*1./nvectors)-0.5)*40))+1, 11);
- Double_t factor = faclts[nquant-1];
+ Double_t factor = faclts[TMath::Max(0,nquant-1)];
Double_t sumx =0;
Double_t sumx2 =0;
// 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();
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);
}
-