]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONCheck.cxx
Warning corrections (from FC)
[u/mrichter/AliRoot.git] / MUON / AliMUONCheck.cxx
index f391f63a4c91b98a0080fcc640ec6e45edccd9bd..086c0f157bbc6b0861e8a2bbb66cb6bb485a1254 100644 (file)
@@ -72,12 +72,7 @@ foutDir(outDir),
 fFirstEvent(firstEvent),
 fLastEvent(lastEvent)
 {
-  /// ctor
-
-  // Load mapping
-  if ( ! AliMpCDB::LoadMpSegmentation() ) {
-    AliFatal("Could not access mapping from OCDB !");
-  }
+  /// ctor  
 }
 
 //_____________________________________________________________________________
@@ -93,11 +88,6 @@ fFirstEvent(firstEvent),
 fLastEvent(lastEvent)
 {
   /// ctor
-
-  // Load mapping
-  if ( ! AliMpCDB::LoadMpSegmentation() ) {
-    AliFatal("Could not access mapping from OCDB !");
-  }
 }
 
 //_____________________________________________________________________________
@@ -274,6 +264,10 @@ AliMUONCheck::CheckESD(Bool_t pdc06TriggerResponse)
     for ( Int_t iTrack1 = 0; iTrack1<nTracks; ++iTrack1 ) 
     { //1st loop
       AliESDMuonTrack* muonTrack = fESD->GetMuonTrack(iTrack1);
+      
+      // skip fake tracks (ghosts)
+      if (!muonTrack->ContainTrackerData()) continue;
+      
       ftracktot++;
       
       thetaX = muonTrack->GetThetaX();