Minor things for testing
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Sep 2012 12:48:38 +0000 (12:48 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Sep 2012 12:48:38 +0000 (12:48 +0000)
PWGLF/FORWARD/analysis2/AliFMDEnergyFitterTask.cxx
PWGLF/FORWARD/analysis2/AliFMDEnergyFitterTask.h

index db894ca..223fb75 100644 (file)
@@ -105,6 +105,7 @@ AliFMDEnergyFitterTask::operator=(const AliFMDEnergyFitterTask& o)
   // Return:
   //    Reference to this object 
   //
+  fDebug = o.fDebug;
   DGUARD(fDebug,3,"Assignment of AliFMDEnergyFitterTask");
   if (&o == this) return *this; 
   AliAnalysisTaskSE::operator=(o);
@@ -129,6 +130,7 @@ AliFMDEnergyFitterTask::SetDebug(Int_t dbg)
   // Parameters:
   //    dbg Debug level
   //
+  fDebug = dbg;
   fEventInspector.SetDebug(dbg);
   fEnergyFitter.SetDebug(dbg);
 }
@@ -197,7 +199,7 @@ AliFMDEnergyFitterTask::UserExec(Option_t*)
   // static Int_t cnt = 0;
   // cnt++;
   // Get the input data 
-  DGUARD(fDebug,1,"Analyse event of AliFMDEnergyFitterTask");
+  DGUARD(fDebug,3,"Analyse event of AliFMDEnergyFitterTask");
   
   AliMCEvent* mcevent = MCEvent();
   if(mcevent) {
@@ -276,6 +278,21 @@ AliFMDEnergyFitterTask::UserExec(Option_t*)
   PostData(1, fList);
 }
 
+//____________________________________________________________________
+void
+AliFMDEnergyFitterTask::FinishTaskOutput()
+{
+  if (!fList) { 
+    Warning("FinishTaskOutput", "No list defined");
+  }
+  // else {
+  //   fList->ls();
+  // }
+  // if (fDebug)
+  // gDebug = 1;
+  AliAnalysisTaskSE::FinishTaskOutput();
+}
+
 //____________________________________________________________________
 void
 AliFMDEnergyFitterTask::Terminate(Option_t*)
index c4cd0a0..8a5aaec 100644 (file)
@@ -95,6 +95,11 @@ public:
    * @param option Not used 
    */
   virtual void Terminate(Option_t* option);
+  /** 
+   * Called on the slaves when the job has finished. 
+   * 
+   */
+  virtual void FinishTaskOutput();
   /** 
    * @} 
    */