]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRecoCheck.cxx
Fixing anti-aliasing problem on MacOSX
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoCheck.cxx
index 4478a79240ebc9f4e28e3cec9788d53f5bfe4f14..8b5b6c1415020c0ef85d7cdd7b4e6955497e5570 100644 (file)
@@ -300,11 +300,12 @@ AliMUONVTrackStore* AliMUONRecoCheck::TrackRefs(Int_t event)
   
   if (fTrackRefStore != 0x0) return fTrackRefStore;
   else {
-    if (!fMCEventHandler->LoadEvent(event)) {
+    if (!fMCEventHandler->BeginEvent(event)) {
       AliError(Form("fails to read MC objects for event %d", event));
       return 0x0;
     }
     MakeTrackRefs();
+    fMCEventHandler->FinishEvent();
     return fTrackRefStore;
   }
 }
@@ -327,11 +328,12 @@ AliMUONVTriggerTrackStore* AliMUONRecoCheck::TriggerableTracks(Int_t event)
        
   if (fRecoTriggerRefStore != 0x0) return fRecoTriggerRefStore;
   else {
-    if (!fMCEventHandler->LoadEvent(event)) {
+    if (!fMCEventHandler->BeginEvent(event)) {
       AliError(Form("fails to read MC objects for event %d", event));
       return 0x0;
     }
     MakeTriggerableTracks();
+    fMCEventHandler->FinishEvent();
     return fRecoTriggerRefStore;
   }
 }
@@ -408,12 +410,12 @@ void AliMUONRecoCheck::MakeTriggeredTracks()
 }
 
 //_____________________________________________________________________________
-void AliMUONRecoCheck::TriggerToTrack(const AliMUONLocalTrigger& locTrg, AliMUONTriggerTrack& triggerTrack)
+Bool_t AliMUONRecoCheck::TriggerToTrack(const AliMUONLocalTrigger& locTrg, AliMUONTriggerTrack& triggerTrack)
 {
   /// Make trigger track from local trigger info
-  if ( ! InitCircuit() ) return;
+  if ( ! InitCircuit() ) return kFALSE;
   AliMUONVTrackReconstructor* tracker = AliMUONESDInterface::GetTracker();
-  tracker->TriggerToTrack(*fTriggerCircuit, locTrg, triggerTrack);
+  return tracker->TriggerToTrack(*fTriggerCircuit, locTrg, triggerTrack);
 }