]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
exit if no operation is requested (Salvatore)
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Apr 2013 14:36:46 +0000 (14:36 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Apr 2013 14:36:46 +0000 (14:36 +0000)
PWG/EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx

index 1657aa8894b29b5b2db9f827c3b21977f115d611..f85aaeff2ab2f2545ac0030d8529d5f7a93b4612 100644 (file)
@@ -188,6 +188,10 @@ void AliAnalysisTaskEMCALClusterizeFast::UserExec(Option_t *)
 {
   // Main loop, called for each event
 
+  // if no operation is requested, return
+  if (!fDoClusterize && !fDoUpdateCells)
+    return;
+
   // remove the contents of output list set in the previous event 
   if (fOutputAODBranch)
     fOutputAODBranch->Clear("C");