]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bug fix
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Jan 2011 09:37:02 +0000 (09:37 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Jan 2011 09:37:02 +0000 (09:37 +0000)
PWG0/dNdEta/AlidNdEtaTask.cxx

index ca0419ba5714ddd589b2d8f249dad37bdbbd659f..526ca18a5adf1b88644912a12b3c519cc440d396 100644 (file)
@@ -131,7 +131,7 @@ AlidNdEtaTask::~AlidNdEtaTask()
   // histograms are in the output list and deleted when the output
   // list is deleted by the TSelector dtor
 
-  if (fOutput) {
+  if (fOutput && !AliAnalysisManager::GetAnalysisManager()->IsProofMode()) {
     delete fOutput;
     fOutput = 0;
   }
@@ -198,6 +198,7 @@ void AlidNdEtaTask::UserCreateOutputObjects()
   // create result objects and add to output list
 
   Printf("AlidNdEtaTask::CreateOutputObjects");
+  //AliLog::SetClassDebugLevel("AliPhysicsSelection", AliLog::kDebug);
 
   if (fOnlyPrimaries)
     Printf("WARNING: Processing only primaries (MC information used). This is for systematical checks only.");
@@ -454,6 +455,7 @@ void AlidNdEtaTask::UserExec(Option_t*)
       return;
     }
     
+    // TODO use flags here!
     eventTriggered = inputHandler->IsEventSelected();
         
     static AliTriggerAnalysis* triggerAnalysis = 0;
@@ -604,8 +606,10 @@ isManager()->GetInputEventHandler());
         
       const AliMultiplicity* mult = fESD->GetMultiplicity();
       if (!mult)
+      {
        Printf("Returning, no Multiplicity found");
         return;
+      }
       
       if (mult->GetNumberOfTracklets() == 0)
       {