1 // Histogram and fit the energy loss distributions for the FMD
3 // Wraps AliFMDEnergyFitter
4 #ifndef ALIFMDENERGYFITTERTASK_H
5 #define ALIFMDENERGYFITTERTASK_H
7 * @file AliFMDEnergyFitterTask.h
8 * @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk>
9 * @date Wed Mar 23 14:02:39 2011
13 * @ingroup pwglf_forward_eloss
16 #include <AliAnalysisTaskSE.h>
17 #include "AliFMDEventInspector.h"
18 #include "AliFMDEnergyFitter.h"
19 #include <AliESDFMD.h>
28 * Histogram and fit the energy loss distributions for the FMD
38 * @par Corrections used
41 * @ingroup pwglf_forward_tasks
42 * @ingroup pwglf_forward_eloss
45 class AliFMDEnergyFitterTask : public AliAnalysisTaskSE
51 * @param name Name of task
53 AliFMDEnergyFitterTask(const char* name);
57 AliFMDEnergyFitterTask();
61 * @param o Object to copy from
63 AliFMDEnergyFitterTask(const AliFMDEnergyFitterTask& o);
67 * @param o Object to assign from
69 * @return Reference to this object
71 AliFMDEnergyFitterTask& operator=(const AliFMDEnergyFitterTask& o);
74 * @name Interface methods
82 * Create output objects
85 virtual void UserCreateOutputObjects();
89 * @param option Not used
91 virtual void UserExec(Option_t* option);
95 * @param option Not used
97 virtual void Terminate(Option_t* option);
104 * @param option Not used
106 void Print(Option_t* option="") const;
109 * @name Access to sub-algorithms
112 * Get reference to the EventInspector algorithm
114 * @return Reference to AliFMDEventInspector object
116 AliFMDEventInspector& GetEventInspector() { return fEventInspector; }
118 * Get reference to the EnergyFitter algorithm
120 * @return Reference to AliFMDEnergyFitter object
122 AliFMDEnergyFitter& GetEnergyFitter() { return fEnergyFitter; }
127 * Set the debug level
129 * @param dbg Debug level
131 void SetDebug(Int_t dbg);
133 void SetBLow(Float_t b) {fbLow = b;}
134 void SetBHigh(Float_t b) {fbHigh = b;}
138 * Initialise the sub objects and stuff. Called on first event
141 virtual void InitializeSubs();
143 Bool_t fFirstEvent; // Whether the event is the first seen
144 AliFMDEventInspector fEventInspector; // Algorithm
145 AliFMDEnergyFitter fEnergyFitter; // Algorithm
146 TList* fList; // Output list
150 ClassDef(AliFMDEnergyFitterTask,1) // Forward multiplicity class