+ if(addMisalErr) {
+ // add error due to misalignment (to be improved)
+ Float_t errmisalY2 = AliITSReconstructor::GetRecoParam()->GetClusterMisalErrorY(layer)
+ *AliITSReconstructor::GetRecoParam()->GetClusterMisalErrorY(layer);
+ Float_t errmisalZ2 = AliITSReconstructor::GetRecoParam()->GetClusterMisalErrorZ(layer)
+ *AliITSReconstructor::GetRecoParam()->GetClusterMisalErrorZ(layer);
+ erry = TMath::Sqrt(erry*erry+errmisalY2);
+ errz = TMath::Sqrt(errz*errz+errmisalZ2);
+ }
+
+ return retval;
+