Simplified ValidateTracksWithTrigger method
authorcussonno <cussonno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Mar 2004 12:32:46 +0000 (12:32 +0000)
committercussonno <cussonno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Mar 2004 12:32:46 +0000 (12:32 +0000)
MUON/AliMUONEventReconstructor.cxx

index c536ccff357e3d97e8d13673d62064d6a2e22a03..abba3d5408366b0a9b0f2e1348782eb5a7fbeb83 100644 (file)
@@ -991,26 +991,19 @@ void AliMUONEventReconstructor::MakeTracks(void)
 void AliMUONEventReconstructor::ValidateTracksWithTrigger(void)
 {
   AliMUONTrack *track;
 void AliMUONEventReconstructor::ValidateTracksWithTrigger(void)
 {
   AliMUONTrack *track;
-  static Bool_t isTriggerTrackInMem = 1;
-
-  TClonesArray *recTriggerTracks = fMUONData->RecTriggerTracks();
-
-  // protection if using triggertrack and track macro instead of reconstruct macro
-  if (recTriggerTracks == 0x0) 
-    isTriggerTrackInMem = 0;
-
-  if (!isTriggerTrackInMem) {
-    fMUONData->ResetRecTriggerTracks();
-    fMUONData->SetTreeAddress("RL");
-    fMUONData->GetRecTriggerTracks();
-    recTriggerTracks = fMUONData->RecTriggerTracks();
-  } 
+  TClonesArray *recTriggerTracks;
+  
+  fMUONData->ResetRecTriggerTracks();
+  fMUONData->SetTreeAddress("RL");
+  fMUONData->GetRecTriggerTracks();
+  recTriggerTracks = fMUONData->RecTriggerTracks();
 
   track = (AliMUONTrack*) fRecTracksPtr->First();
   while (track) {
     track->MatchTriggerTrack(recTriggerTracks);
     track = (AliMUONTrack*) fRecTracksPtr->After(track);
   }
 
   track = (AliMUONTrack*) fRecTracksPtr->First();
   while (track) {
     track->MatchTriggerTrack(recTriggerTracks);
     track = (AliMUONTrack*) fRecTracksPtr->After(track);
   }
+
 }
 
   //__________________________________________________________________________
 }
 
   //__________________________________________________________________________