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 * Calculate the event plane in the forward regions using the FMD
29 * - AnalysisResults.root
31 * @ingroup pwglf_forward_tasks_flow
32 * @ingroup pwglf_forward_flow
36 class AliFMDEventPlaneTask : public AliAnalysisTaskSE
42 AliFMDEventPlaneTask();
46 * @param name Name of task
48 AliFMDEventPlaneTask(const char* name);
52 virtual ~AliFMDEventPlaneTask() {}
55 * @name Task interface methods
58 * Create output objects
60 virtual void UserCreateOutputObjects();
64 virtual void Init() {}
68 * @param option Not used
70 virtual void UserExec(Option_t *option);
74 * @param option Not used
76 virtual void Terminate(Option_t *option);
78 * Check AODForwardMult object for trigger, vertex and centrality
79 * returns true if event is OK
81 * @param aodfm Output object
85 Bool_t AODCheck(const AliAODForwardMult* aodfm);
87 * Get reference to the EventPlaneFinder algorithm
89 * @return Reference to AliFMDEventPlaneFinder object
91 AliFMDEventPlaneFinder& GetEventPlaneFinder() { return fEventPlaneFinder; }
93 * Get reference to the EventPlaneFinder algorithm
95 * @return Reference to AliFMDEventPlaneFinder object
97 const AliFMDEventPlaneFinder& GetEventPlaneFinder() const { return fEventPlaneFinder; }
99 * Set MC input flag - currently does nothing special
101 * @ param mc MC input flag
103 void SetMCInput(Bool_t mc = true) { fMC = mc; }
109 * @param o Object to copy from
111 AliFMDEventPlaneTask(const AliFMDEventPlaneTask& o);
113 * Assignment operator
115 * @return Reference to this object
117 AliFMDEventPlaneTask& operator=(const AliFMDEventPlaneTask&);
119 TList* fSumList; // Sum list
120 TList* fOutputList; // Output list
121 AliAODEvent* fAOD; // AOD event
122 Bool_t fMC; // MC input?
123 AliFMDEventPlaneFinder fEventPlaneFinder; // Eventplane finder for the FMD
124 Float_t fZvertex; // Z vertex
125 Double_t fCent; // Centrality
126 TH1D* fHistCent; // Diagnostics histogram
127 TH1D* fHistVertexSel; // Diagnostics histogram
128 TH1D* fHistVertexAll; // Diagnostics histogram
130 ClassDef(AliFMDEventPlaneTask, 2); // Analysis task for FMD analysis