2 // Calculate the event plane in the forward regions using the FMD
4 #ifndef ALIFMDEVENTPLANETASK_H
5 #define ALIFMDEVENTPLANETASK_H
7 * @file AliFMDEventPlaneTask.h
8 * @author Alexander Hansen
9 * @date Tue Feb 21 2012
14 * @ingroup pwglf_forward_flow
16 #include "AliAnalysisTaskSE.h"
17 #include "AliFMDEventPlaneFinder.h"
18 class AliAODForwardMult;
23 * @defgroup pwg2_forward_tasks_flow Flow tasks
24 * @ingroup pwg2_forward_tasks
27 * Calculate the event plane in the forward regions using the FMD
33 * - AnalysisResults.root
35 * @ingroup pwglf_forward_tasks_flow
36 * @ingroup pwglf_forward_flow
40 class AliFMDEventPlaneTask : public AliAnalysisTaskSE
46 AliFMDEventPlaneTask();
50 * @param name Name of task
52 AliFMDEventPlaneTask(const char* name);
56 virtual ~AliFMDEventPlaneTask() {}
59 * @name Task interface methods
62 * Create output objects
64 virtual void UserCreateOutputObjects();
68 virtual void Init() {}
72 * @param option Not used
74 virtual void UserExec(Option_t *option);
78 * @param option Not used
80 virtual void Terminate(Option_t *option);
82 * Check AODForwardMult object for trigger, vertex and centrality
83 * returns true if event is OK
89 Bool_t AODCheck(const AliAODForwardMult* aodfm);
91 * Get reference to the EventPlaneFinder algorithm
93 * @return Reference to AliFMDEventPlaneFinder object
95 AliFMDEventPlaneFinder& GetEventPlaneFinder() { return fEventPlaneFinder; }
97 * Get reference to the EventPlaneFinder algorithm
99 * @return Reference to AliFMDEventPlaneFinder object
101 const AliFMDEventPlaneFinder& GetEventPlaneFinder() const { return fEventPlaneFinder; }
103 * Set MC input flag - currently does nothing special
105 * @ param mc MC input flag
107 void SetMCInput(Bool_t mc = true) { fMC = mc; }
113 * @param o Object to copy from
115 AliFMDEventPlaneTask(const AliFMDEventPlaneTask& o);
117 * Assignment operator
119 * @return Reference to this object
121 AliFMDEventPlaneTask& operator=(const AliFMDEventPlaneTask&);
123 TList* fSumList; // Sum list
124 TList* fOutputList; // Output list
125 AliAODEvent* fAOD; // AOD event
126 Bool_t fMC; // MC input?
127 AliFMDEventPlaneFinder fEventPlaneFinder; // Eventplane finder for the FMD
128 Float_t fZvertex; // Z vertex
129 Double_t fCent; // Centrality
130 TH1D* fHistCent; // Diagnostics histogram
131 TH1D* fHistVertexSel; // Diagnostics histogram
132 TH1D* fHistVertexAll; // Diagnostics histogram
134 ClassDef(AliFMDEventPlaneTask, 1); // Analysis task for FMD analysis