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 "AliFMDEventInspector.h"
8 #include "AliFMDEnergyFitter.h"
18 * Histogram and fit the energy loss distributions for the FMD
28 * @par Corrections used
31 * @ingroup pwg2_forward_tasks
34 class AliFMDEnergyFitterTask : public AliAnalysisTaskSE
40 * @param name Name of task
42 AliFMDEnergyFitterTask(const char* name);
46 AliFMDEnergyFitterTask();
50 * @param o Object to copy from
52 AliFMDEnergyFitterTask(const AliFMDEnergyFitterTask& o);
56 * @param o Object to assign from
58 * @return Reference to this object
60 AliFMDEnergyFitterTask& operator=(const AliFMDEnergyFitterTask& o);
63 * @name Interface methods
71 * Create output objects
74 virtual void UserCreateOutputObjects();
78 * @param option Not used
80 virtual void UserExec(Option_t* option);
84 * @param option Not used
86 virtual void Terminate(Option_t* option);
93 * @param option Not used
95 void Print(Option_t* option="") const;
98 * @name Access to sub-algorithms
101 * Get reference to the EventInspector algorithm
103 * @return Reference to AliFMDEventInspector object
105 AliFMDEventInspector& GetEventInspector() { return fEventInspector; }
107 * Get reference to the EnergyFitter algorithm
109 * @return Reference to AliFMDEnergyFitter object
111 AliFMDEnergyFitter& GetEnergyFitter() { return fEnergyFitter; }
116 * Set the debug level
118 * @param dbg Debug level
120 void SetDebug(Int_t dbg);
122 void SetBLow(Float_t b) {fbLow = b;}
123 void SetBHigh(Float_t b) {fbHigh = b;}
127 * Initialise the sub objects and stuff. Called on first event
130 virtual void InitializeSubs();
132 Bool_t fFirstEvent; // Whether the event is the first seen
133 AliFMDEventInspector fEventInspector; // Algorithm
134 AliFMDEnergyFitter fEnergyFitter; // Algorithm
135 TList* fList; // Output list
139 ClassDef(AliFMDEnergyFitterTask,1) // Forward multiplicity class