]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
changes from fzhou
authormcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2012 16:38:01 +0000 (16:38 +0000)
committermcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2012 16:38:01 +0000 (16:38 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskPi0V2.cxx

index 63da9b58f53101527bccd29b36fc38831b489c04..274434dc35af8c068d8ffe46aa3cdb556a98fa01 100644 (file)
@@ -595,12 +595,13 @@ void AliAnalysisTaskPi0V2::UserExec(Option_t *)
 
   Bool_t isSelected =0;      
   if(fEvtSelect == 1){  //MB+SemiCentral
-    isSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kMB | AliVEvent::kSemiCentral));
+    isSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kAnyINT | AliVEvent::kSemiCentral));
   } else if (fEvtSelect == 2){  //MB+Central+SemiCentral
-    isSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kMB | AliVEvent::kSemiCentral | AliVEvent::kCentral));
+    isSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kAnyINT | AliVEvent::kSemiCentral | AliVEvent::kCentral));
   } else if(fEvtSelect == 3){  //MB
- isSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kMB ));
+ isSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kAnyINT ));
   }
+
   if(!isSelected )
         return; 
 
@@ -625,8 +626,8 @@ void AliAnalysisTaskPi0V2::UserExec(Option_t *)
     }
     delete arr;
     if (
-       !match || //select by Trigger classes in KCentral and KSemiCentral
-        !(((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kMB ))              // always accept MB
+       !match && //select by Trigger classes in KCentral and KSemiCentral
+        !(((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & (AliVEvent::kAnyINT ))              // always accept MB
        ) 
       return; //Not match skip this event
   }