In case of negative value for diagonal elements of covariance matrix, the related...
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 15 May 2010 15:17:11 +0000 (15:17 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 15 May 2010 15:17:11 +0000 (15:17 +0000)
TOF/AliTOFtracker.cxx
TOF/AliTOFtrackerV1.cxx

index f91568a..7cfb305 100644 (file)
@@ -745,11 +745,11 @@ void AliTOFtracker::MatchTracks( Bool_t mLastStep){
     if (cov[0]>=0.)
       fHRecSigYVsP->Fill(mom,TMath::Sqrt(cov[0]));
     else
-      fHRecSigYVsP->Fill(mom,TMath::Sqrt(-cov[0]));
+      fHRecSigYVsP->Fill(mom,-TMath::Sqrt(-cov[0]));
     if (cov[2]>=0.)
       fHRecSigZVsP->Fill(mom,TMath::Sqrt(cov[2]));
     else
-      fHRecSigZVsP->Fill(mom,TMath::Sqrt(-cov[2]));
+      fHRecSigZVsP->Fill(mom,-TMath::Sqrt(-cov[2]));
     fHRecSigYVsPWin->Fill(mom,dphi*sensRadius);
     fHRecSigZVsPWin->Fill(mom,dz);
 
index 594db73..0686365 100644 (file)
@@ -582,11 +582,11 @@ void AliTOFtrackerV1::MatchTracks( ){
     if (cov[0]>=0.)
       fHRecSigYVsP->Fill(mom,TMath::Sqrt(cov[0]));
     else
-      fHRecSigYVsP->Fill(mom,TMath::Sqrt(-cov[0]));
+      fHRecSigYVsP->Fill(mom,-TMath::Sqrt(-cov[0]));
     if (cov[2]>=0.)
       fHRecSigZVsP->Fill(mom,TMath::Sqrt(cov[2]));
     else
-      fHRecSigZVsP->Fill(mom,TMath::Sqrt(-cov[2]));
+      fHRecSigZVsP->Fill(mom,-TMath::Sqrt(-cov[2]));
     fHRecSigYVsPWin->Fill(mom,dphi*sensRadius);
     fHRecSigZVsPWin->Fill(mom,dz);