1 #ifndef ALIROOT_PWG2_FORWARD_ALIFMDENERGYFITTERTASK_H
2 #define ALIROOT_PWG2_FORWARD_ALIFMDENERGYFITTERTASK_H
3 #include <AliAnalysisTaskSE.h>
4 #include "AliForwardUtil.h"
5 #include "AliFMDEventInspector.h"
6 #include "AliFMDEnergyFitter.h"
16 * Histogram and fit the energy loss distributions for the FMD
26 * @par Corrections used
29 * @ingroup pwg2_forward_tasks
32 class AliFMDEnergyFitterTask : public AliAnalysisTaskSE
38 * @param name Name of task
40 AliFMDEnergyFitterTask(const char* name);
44 AliFMDEnergyFitterTask();
48 * @param o Object to copy from
50 AliFMDEnergyFitterTask(const AliFMDEnergyFitterTask& o);
54 * @param o Object to assign from
56 * @return Reference to this object
58 AliFMDEnergyFitterTask& operator=(const AliFMDEnergyFitterTask& o);
61 * @name Interface methods
69 * Create output objects
72 virtual void UserCreateOutputObjects();
76 * @param option Not used
78 virtual void UserExec(Option_t* option);
82 * @param option Not used
84 virtual void Terminate(Option_t* option);
91 * @param option Not used
93 void Print(Option_t* option="") const;
96 * @name Access to sub-algorithms
99 * Get reference to the EventInspector algorithm
101 * @return Reference to AliFMDEventInspector object
103 AliFMDEventInspector& GetEventInspector() { return fEventInspector; }
105 * Get reference to the EnergyFitter algorithm
107 * @return Reference to AliFMDEnergyFitter object
109 AliFMDEnergyFitter& GetEnergyFitter() { return fEnergyFitter; }
113 void SetDebug(Int_t dbg);
116 * Initialise the sub objects and stuff. Called on first event
119 virtual void InitializeSubs();
121 Bool_t fFirstEvent; // Whether the event is the first seen
122 AliFMDEventInspector fEventInspector; // Algorithm
123 AliFMDEnergyFitter fEnergyFitter; // Algorithm
124 TList* fList; // Output list
126 ClassDef(AliFMDEnergyFitterTask,1) // Forward multiplicity class