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 * @image html alice-int-2012-040-performance_spdfmdvzero.png "dN/deta in PbPb"
26 * @ingroup pwglf_forward_tasks_dndeta
27 * @ingroup pwglf_forward_dndeta
29 class AliForwarddNdetaTask : public AliBasedNdetaTask
36 AliForwarddNdetaTask();
40 * @param name Name of task
42 AliForwarddNdetaTask(const char* name);
47 virtual ~AliForwarddNdetaTask() {}
52 * @param o object to copy from
54 AliForwarddNdetaTask(const AliForwarddNdetaTask& o);
56 * Assigmement operator
58 * @return Reference to this
60 AliForwarddNdetaTask& operator=(const AliForwarddNdetaTask&);
63 * Retrieve the histogram
65 * @param aod AOD event
66 * @param mc Whether to get the MC histogram or not
68 * @return Retrieved histogram or null
70 TH2D* GetHistogram(const AliAODEvent& aod, Bool_t mc);
72 * Get the colour to use for markers (only pp - in PbPb we use a rainbow)
74 * @return Marker colour
76 virtual Int_t GetColor() const { return kRed+2; }
78 * Massage data histograms for certain vertices in the satellite analysis
84 virtual void CheckEventData(Double_t vtx,
88 * Make a new centrality bin
90 * @param name Histogram names
94 * @return Newly allocated object (of our type)
96 AliBasedNdetaTask::CentralityBin*
97 MakeCentralityBin(const char* name, Short_t l, Short_t h) const;
100 * A structure holding the per-centrality bin information
103 class CentralityBin : public AliBasedNdetaTask::CentralityBin
109 CentralityBin() : AliBasedNdetaTask::CentralityBin() {}
113 * @param name Name used for histograms (e.g., Forward)
114 * @param low Lower centrality cut in percent
115 * @param high Upper centrality cut in percent
117 CentralityBin(const char* name, Short_t low, Short_t high)
118 : AliBasedNdetaTask::CentralityBin(name, low, high)
123 * @param other Object to copy from
125 CentralityBin(const CentralityBin& other);
129 virtual ~CentralityBin() {}
131 * Assignement operator
136 CentralityBin& operator=(const CentralityBin&);
140 * @param sums List of sums
141 * @param results Output list of results
142 * @param scheme Normalisation scheme options
143 * @param shapeCorr Shape correction or nil
144 * @param trigEff Trigger efficiency
145 * @param trigEff0 0-bin trigger efficiency
146 * @param symmetrice Whether to symmetrice the results
147 * @param rebin Whether to rebin the results
148 * @param rootProj If true, use TH2::ProjectionX
149 * @param corrEmpty Whether to correct for empty bins
150 * @param cutEdges Whether to cut edges when rebinning
151 * @param triggerMask Trigger mask
152 * @param color Marker colour
153 * @param marker Marker style
154 * @param mclist List of MC results
155 * @param truthlist List of MC truth results
157 virtual void End(TList* sums,
160 const TH2F* shapeCorr,
174 ClassDef(CentralityBin,3); // A centrality bin
177 ClassDef(AliForwarddNdetaTask,3); // Determine multiplicity in forward region