- //if (TMath::Abs(hit->GetZ()-zEnd) > 0.1) {
- if (TMath::Abs(hit->GetZ()-zEnd) > 0.05) {
- // adjust position: for multiple hits in the chamber
- // (mostly (only?) for GEANT hits)
- cout << " ******* adjust " << zEnd << " " << hit->GetZ() << endl;
- zEnd = hit->GetZ();
- *fTrackPar = *fTrackParNew;
- ParPropagation(zEnd);
- WeightPropagation(zEnd, kTRUE);
- fPosition = fPositionNew;
- *fTrackPar = *fTrackParNew;
- // Get covariance
- *fCovariance = *fWeight;
- if (fCovariance->Determinant() != 0) {
- Int_t ifail;
- mnvertLocal(&((*fCovariance)(0,0)), fgkSize,fgkSize,fgkSize,ifail);
- } else {
- AliWarning(" Determinant fCovariance=0:" );
- }
- }