]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliForwardMCMultiplicityTask.h
Major refactoring of the code.
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliForwardMCMultiplicityTask.h
index 34bdce4165abbcd726baa7c3d3267a58c32a4b8e..d207320e4e099e9b5570625db1e50fa5e18c5c6d 100644 (file)
@@ -60,30 +60,22 @@ public:
    */
   AliForwardMCMultiplicityTask();
   /** 
-   * Copy constructor 
-   * 
-   * @param o Object to copy from 
+   * @{ 
+   * @name Interface methods 
    */
-  AliForwardMCMultiplicityTask(const AliForwardMCMultiplicityTask& o);
   /** 
-   * Assignment operator 
-   * 
-   * @param o Object to assign from 
+   * Called before processing a single event - should not do anything
+   * but clear data, etc.
    * 
-   * @return Reference to this object 
-   */
-  AliForwardMCMultiplicityTask& 
-  operator=(const AliForwardMCMultiplicityTask& o);
-  /** 
-   * @{ 
-   * @name Interface methods 
+   * @return true on success
    */
+  virtual Bool_t PreEvent();
   /** 
    * Process each event 
    *
-   * @param option Not used
+   * @param esd ESD event
    */  
-  virtual void UserExec(Option_t* option);
+  virtual Bool_t Event(AliESDEvent& esd);
   /** 
    * @} 
    */
@@ -173,6 +165,21 @@ public:
    * @} 
    */
 protected: 
+  /** 
+   * Copy constructor 
+   * 
+   * @param o Object to copy from 
+   */
+  AliForwardMCMultiplicityTask(const AliForwardMCMultiplicityTask& o);
+  /** 
+   * Assignment operator 
+   * 
+   * @param o Object to assign from 
+   * 
+   * @return Reference to this object 
+   */
+  AliForwardMCMultiplicityTask& 
+  operator=(const AliForwardMCMultiplicityTask& o);
   /** 
    * Initialize members based on eta and vertex axis - only available
    * after first event - called from SetupForData.
@@ -180,7 +187,7 @@ protected:
    * @param pe @f$\eta@f$ axis
    * @param pv Interaction point Z-coordinate axis 
    */
-  virtual void InitMembers(const TAxis* pe, const TAxis* pv);
+  virtual void InitMembers(const TAxis& pe, const TAxis& pv);
   /**
    * Create output branches - called from UserCreateOutputObjects
    */