]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix in the calculation of the mean curvature for the merged cosmic track
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Dec 2009 11:30:31 +0000 (11:30 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Dec 2009 11:30:31 +0000 (11:30 +0000)
PWG1/ITS/AliAlignmentDataFilterITS.cxx

index ea50a64fc78f9847aed91daced504ed008e0b5ea..d0217963caa6e76c0fd1112789e84dd5730b110b 100644 (file)
@@ -658,7 +658,7 @@ void AliAlignmentDataFilterITS::FilterCosmic(const AliESDEvent *esd)
   }
 
   if(GetRecoParam()->GetAlignFilterCosmicMergeTracks()) {
-    curv = 0.5*(curvArray[0]+curvArray[1]);
+    curv = 0.5*(curvArray[0]-curvArray[1]);  // the "-" is because the two tracks have opposite curvature!
     curverr = 0.5*TMath::Sqrt(curverrArray[0]*curverrArray[0]+curverrArray[1]*curverrArray[1]);
     fspTree->Fill();
   }