2 // Task to analyse the AOD for for dN/deta in the forward regions
4 #ifndef ALIFORWARDDNDETATASK_H
5 #define ALIFORWARDDNDETATASK_H
7 * @file AliForwarddNdetaTask.h
8 * @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk>
9 * @date Wed Mar 23 14:04:54 2011
14 * @ingroup pwglf_forward_dndeta
16 #include "AliBasedNdetaTask.h"
22 * Tasks to determine @f$ dN/d\eta@f$ in the forward regions
24 * @ingroup pwglf_forward_tasks_dndeta
25 * @ingroup pwglf_forward_dndeta
27 class AliForwarddNdetaTask : public AliBasedNdetaTask
34 AliForwarddNdetaTask();
38 * @param name Name of task
40 AliForwarddNdetaTask(const char* name);
45 virtual ~AliForwarddNdetaTask() {}
50 * @param o object to copy from
52 AliForwarddNdetaTask(const AliForwarddNdetaTask& o);
54 * Assigmement operator
56 * @return Reference to this
58 AliForwarddNdetaTask& operator=(const AliForwarddNdetaTask&) { return *this; }
61 * Retrieve the histogram
63 * @param aod AOD event
64 * @param mc Whether to get the MC histogram or not
66 * @return Retrieved histogram or null
68 TH2D* GetHistogram(const AliAODEvent* aod, Bool_t mc);
70 * Get the colour to use for markers (only pp - in PbPb we use a rainbow)
72 * @return Marker colour
74 virtual Int_t GetColor() const { return kRed+2; }
76 * Make a new centrality bin
78 * @param name Histogram names
82 * @return Newly allocated object (of our type)
84 AliBasedNdetaTask::CentralityBin*
85 MakeCentralityBin(const char* name, Short_t l, Short_t h) const;
88 * A structure holding the per-centrality bin information
91 class CentralityBin : public AliBasedNdetaTask::CentralityBin
97 CentralityBin() : AliBasedNdetaTask::CentralityBin() {}
101 * @param name Name used for histograms (e.g., Forward)
102 * @param low Lower centrality cut in percent
103 * @param high Upper centrality cut in percent
105 CentralityBin(const char* name, Short_t low, Short_t high)
106 : AliBasedNdetaTask::CentralityBin(name, low, high)
111 * @param other Object to copy from
113 CentralityBin(const CentralityBin& other)
114 : AliBasedNdetaTask::CentralityBin(other)
119 virtual ~CentralityBin() {}
121 * Assignement operator
126 CentralityBin& operator=(const CentralityBin&) { return *this; }
130 * @param sums List of sums
131 * @param results Output list of results
132 * @param scheme Normalisation scheme options
133 * @param shapeCorr Shape correction or nil
134 * @param trigEff Trigger efficiency
135 * @param symmetrice Whether to symmetrice the results
136 * @param rebin Whether to rebin the results
137 * @param rootProj If true, use TH2::ProjectionX
138 * @param corrEmpty Whether to correct for empty bins
139 * @param cutEdges Whether to cut edges when rebinning
140 * @param triggerMask Trigger mask
141 * @param color Marker colour
142 * @param marker Marker style
143 * @param mclist List of MC results
144 * @param truthlist List of MC truth results
146 virtual void End(TList* sums,
149 const TH2F* shapeCorr,
162 ClassDef(CentralityBin,2); // A centrality bin
165 ClassDef(AliForwarddNdetaTask,2); // Determine multiplicity in forward region