1 // Histogram and fit the energy loss distributions for the FMD
3 // Wraps AliFMDEnergyFitter
4 #ifndef ALIFMDENERGYFITTERTASK_H
5 #define ALIFMDENERGYFITTERTASK_H
6 #include <AliAnalysisTaskSE.h>
7 #include "AliForwardUtil.h"
8 #include "AliFMDEventInspector.h"
9 #include "AliFMDEnergyFitter.h"
10 #include <AliESDFMD.h>
19 * Histogram and fit the energy loss distributions for the FMD
29 * @par Corrections used
32 * @ingroup pwg2_forward_tasks
35 class AliFMDEnergyFitterTask : public AliAnalysisTaskSE
41 * @param name Name of task
43 AliFMDEnergyFitterTask(const char* name);
47 AliFMDEnergyFitterTask();
51 * @param o Object to copy from
53 AliFMDEnergyFitterTask(const AliFMDEnergyFitterTask& o);
57 * @param o Object to assign from
59 * @return Reference to this object
61 AliFMDEnergyFitterTask& operator=(const AliFMDEnergyFitterTask& o);
64 * @name Interface methods
72 * Create output objects
75 virtual void UserCreateOutputObjects();
79 * @param option Not used
81 virtual void UserExec(Option_t* option);
85 * @param option Not used
87 virtual void Terminate(Option_t* option);
94 * @param option Not used
96 void Print(Option_t* option="") const;
99 * @name Access to sub-algorithms
102 * Get reference to the EventInspector algorithm
104 * @return Reference to AliFMDEventInspector object
106 AliFMDEventInspector& GetEventInspector() { return fEventInspector; }
108 * Get reference to the EnergyFitter algorithm
110 * @return Reference to AliFMDEnergyFitter object
112 AliFMDEnergyFitter& GetEnergyFitter() { return fEnergyFitter; }
117 * Set the debug level
119 * @param dbg Debug level
121 void SetDebug(Int_t dbg);
124 * Initialise the sub objects and stuff. Called on first event
127 virtual void InitializeSubs();
129 Bool_t fFirstEvent; // Whether the event is the first seen
130 AliFMDEventInspector fEventInspector; // Algorithm
131 AliFMDEnergyFitter fEnergyFitter; // Algorithm
132 TList* fList; // Output list
134 ClassDef(AliFMDEnergyFitterTask,1) // Forward multiplicity class