]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliFMDEventPlaneTask.h
changed name of add task macro. git test.
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliFMDEventPlaneTask.h
1 //
2 // Calculate the event plane in the forward regions using the FMD 
3 //
4 #ifndef ALIFMDEVENTPLANETASK_H
5 #define ALIFMDEVENTPLANETASK_H
6 /**
7  * @file AliFMDEventPlaneTask.h
8  * @author Alexander Hansen
9  * @date   Tue Feb 21 2012
10  * 
11  * @brief
12  * 
13  * 
14  * @ingroup pwglf_forward_flow
15  */
16 #include "AliBaseAODTask.h"
17 #include "AliFMDEventPlaneFinder.h"
18 class AliAODForwardMult;
19 class TH1D;
20 class TH2D;
21
22 /**
23  * Calculate the event plane in the forward regions using the FMD
24  *
25  * @par Inputs:
26  *   - AliAODEvent
27  *
28  * Outputs:
29  *   - AnalysisResults.root
30  *
31  * @ingroup pwglf_forward_tasks_flow
32  * @ingroup pwglf_forward_flow
33  *
34  *
35  */
36 class AliFMDEventPlaneTask : public AliBaseAODTask
37 {
38 public:
39   /** 
40    * Constructor 
41    */
42   AliFMDEventPlaneTask();
43   /** 
44    * Constructor
45    * 
46    * @param name Name of task 
47    */
48   AliFMDEventPlaneTask(const char* name);
49   /**
50    * Destructor
51    */
52   virtual ~AliFMDEventPlaneTask() {}
53   /** 
54    * @{ 
55    * @name Task interface methods 
56    */
57   /** 
58    * Create output objects 
59    * 
60    * @return true on success
61    */
62   virtual Bool_t Book();
63   /** 
64    * Process each event 
65    *
66    * @param aod AOD Event
67    * 
68    * @return true on success
69    */  
70   virtual Bool_t Event(AliAODEvent& aod);
71   /** 
72    * End of job
73    * 
74    * @return true on success
75    */
76   virtual Bool_t Finalize();
77  /**
78    * Get reference to the EventPlaneFinder algorithm 
79    * 
80    * @return Reference to AliFMDEventPlaneFinder object 
81    */
82   AliFMDEventPlaneFinder& GetEventPlaneFinder() { return fEventPlaneFinder; }
83   /**
84    * Get reference to the EventPlaneFinder algorithm 
85    * 
86    * @return Reference to AliFMDEventPlaneFinder object 
87    */
88   const AliFMDEventPlaneFinder& GetEventPlaneFinder() const { return fEventPlaneFinder; }
89 protected:
90   /** 
91    * Copy constructor 
92    * 
93    * @param o Object to copy from 
94    */
95   AliFMDEventPlaneTask(const AliFMDEventPlaneTask& o);
96   /** 
97    * Assignment operator 
98    * 
99    * @return Reference to this object 
100    */
101   AliFMDEventPlaneTask& operator=(const AliFMDEventPlaneTask&);
102
103   AliFMDEventPlaneFinder  fEventPlaneFinder; //  Eventplane finder for the FMD
104   TH1D*                   fHistVertexSel;    //  Diagnostics histogram
105
106   ClassDef(AliFMDEventPlaneTask, 3); // Analysis task for FMD analysis
107 };
108  
109 #endif
110 // Local Variables:
111 //   mode: C++ 
112 // End: