bug fixed (Diego)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Mar 2007 13:44:48 +0000 (13:44 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Mar 2007 13:44:48 +0000 (13:44 +0000)
MUON/AliMUONVTrackReconstructor.cxx

index dfa1795e4a2640b3bc762a51e4ec7af3cfb0deb5..33136e98831995e459e716b1023acd681b3d60f9 100644 (file)
@@ -333,7 +333,6 @@ void AliMUONVTrackReconstructor::ValidateTracksWithTrigger(void)
       distTriggerTrack[0] = (triggerTrack->GetX11()-xTrack)/kDistSigma[0];
       distTriggerTrack[1] = (triggerTrack->GetY11()-yTrack)/kDistSigma[1];
       distTriggerTrack[2] = (TMath::Tan(triggerTrack->GetThetay())-ySlopeTrack)/kDistSigma[2];
-      loTrgNum=triggerTrack->GetLoTrgNum();
       chi2 = 0.;
       for (Int_t iVar = 0; iVar < 3; iVar++) chi2 += distTriggerTrack[iVar]*distTriggerTrack[iVar];
       chi2 /= 3.; // Normalized Chi2: 3 degrees of freedom (X,Y,slopeY)
@@ -341,6 +340,7 @@ void AliMUONVTrackReconstructor::ValidateTracksWithTrigger(void)
         minChi2MatchTrigger = chi2;
         matchTrigger = kTRUE;
         chi2MatchTrigger = chi2;
+       loTrgNum=triggerTrack->GetLoTrgNum();
       }
       triggerTrack = (AliMUONTriggerTrack*) recTriggerTracks->After(triggerTrack);
     }
@@ -348,7 +348,6 @@ void AliMUONVTrackReconstructor::ValidateTracksWithTrigger(void)
     track->SetMatchTrigger(matchTrigger);
     track->SetLoTrgNum(loTrgNum);
     track->SetChi2MatchTrigger(chi2MatchTrigger);
-    
     track = (AliMUONTrack*) fRecTracksPtr->After(track);
   }