]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliForwardMultiplicityTask.h
Renamed some member functions for more logical names
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliForwardMultiplicityTask.h
index 1bbd5e3a265f806e11d1a63add3ca67f36f2bd7e..37533256c6c7364727aa94f91ba77c2e06631bde 100644 (file)
@@ -11,7 +11,7 @@
  * @brief  
  * 
  * 
- * @ingroup pwg2_forward_aod
+ * @ingroup pwglf_forward_aod
  */
 #include "AliForwardMultiplicityBase.h"
 #include "AliForwardUtil.h"
@@ -21,7 +21,9 @@
 #include "AliFMDCorrector.h"
 #include "AliFMDHistCollector.h"
 #include "AliAODForwardMult.h"
+#include "AliAODForwardEP.h"
 #include "AliFMDEnergyFitter.h"
+#include "AliFMDEventPlaneFinder.h"
 #include <AliESDFMD.h>
 class AliESDEvent;
 class TH2D;
@@ -40,8 +42,8 @@ class TList;
  *   
  * @par Corrections used 
  * 
- * @ingroup pwg2_forward_tasks
- * @ingroup pwg2_forward_aod
+ * @ingroup pwglf_forward_tasks
+ * @ingroup pwglf_forward_aod
  * 
  */
 class AliForwardMultiplicityTask : public AliForwardMultiplicityBase
@@ -86,6 +88,11 @@ public:
    * @param option Not used
    */  
   virtual void UserExec(Option_t* option);
+  /** 
+   * Called on the slaves when the job has finished. 
+   * 
+   */
+  virtual void FinishTaskOutput();
   /** 
    * End of job
    * 
@@ -159,9 +166,22 @@ public:
    * @return Reference to AliFMDHistCollector object 
    */
   const AliFMDHistCollector& GetHistCollector() const { return fHistCollector; }
+ /**
+   * Get reference to the EventPlaneFinder algorithm 
+   * 
+   * @return Reference to AliFMDEventPlaneFinder object 
+   */
+  AliFMDEventPlaneFinder& GetEventPlaneFinder() { return fEventPlaneFinder; }
+  /**
+   * Get reference to the EventPlaneFinder algorithm 
+   * 
+   * @return Reference to AliFMDEventPlaneFinder object 
+   */
+  const AliFMDEventPlaneFinder& GetEventPlaneFinder() const { return fEventPlaneFinder; }
   /** 
    * @} 
    */
+
   /** 
    * Set debug level 
    * 
@@ -172,13 +192,15 @@ protected:
   /** 
    * Initialise the sub objects and stuff.  Called on first event 
    * 
+   * @return false on errors 
    */
-  virtual void   InitializeSubs();
+  virtual Bool_t SetupForData();
 
   TH2D*                  fHData;        // Summed 1/Nd^2N_{ch}/dphideta
   AliESDFMD              fESDFMD;       // Sharing corrected ESD object
   AliForwardUtil::Histos fHistos;       // Cache histograms 
   AliAODForwardMult      fAODFMD;       // Output object
+  AliAODForwardEP        fAODEP;        // Output object
   AliForwardUtil::Histos fRingSums;     // Cache histograms 
 
   AliFMDEventInspector    fEventInspector;    // Algorithm
@@ -186,10 +208,11 @@ protected:
   AliFMDDensityCalculator fDensityCalculator; // Algorithm
   AliFMDCorrector         fCorrections;       // Algorithm
   AliFMDHistCollector     fHistCollector;     // Algorithm
+  AliFMDEventPlaneFinder  fEventPlaneFinder;  // Algorithm
 
   TList* fList; // Output list 
 
-  ClassDef(AliForwardMultiplicityTask,1) // Forward multiplicity class
+  ClassDef(AliForwardMultiplicityTask,2) // Forward multiplicity class
 };
 
 #endif