]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackerData.cxx
Added possibility to do cut on TPCnSigma and rapidity in the task.
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerData.cxx
index cdda9e55f407b45e75857200ea153b5f8d9f6a95..b595d0e0f9ddbf649b1efd48f988ae7e14b4fe73 100644 (file)
@@ -656,6 +656,8 @@ AliMUONTrackerData::Add(const AliMUONTrackerData& data)
 
   // First cross check we have compatible objects.
   
+  AliCodeTimerAuto("",0);
+  
   if ( fIsChannelLevelEnabled != data.fIsChannelLevelEnabled ) 
   {
     AliError("Incompatible IsChannelLevelEnabled status");
@@ -777,7 +779,10 @@ AliMUONTrackerData::Add(const AliMUONTrackerData& data)
     }
   }
   
-  fNevents =  TMath::Max(fNevents,data.fNevents);
+  for ( Int_t i = 0 ; i < fNofDDLs; ++i ) 
+  {
+    fNevents = TMath::Max(fNevents,fNofEventsPerDDL[i]);
+  }
   
   return kTRUE;
 }