2 * @file AliForwardMultiplicityDistribution.h
3 * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
4 * @date Thu Feb 7 01:02:42 2013
9 * @ingroup pwglf_forward_multdist
11 #ifndef ALIFORWARDMULTIPLICITYDISTRIBUTION_H
12 #define ALIFORWARDMULTIPLICITYDISTRIBUTION_H
13 #include "AliBaseAODTask.h"
18 * Task to do the multiplicity distibution
20 * @ingroup pwglf_forward Tasks
21 * @ingroup pwglf_forward_multdist
22 * @todo Should not inherit from AliBasedNdetaTask
24 class AliForwardMultiplicityDistribution : public AliBaseAODTask
30 AliForwardMultiplicityDistribution();
34 AliForwardMultiplicityDistribution(const char* name);
38 virtual ~AliForwardMultiplicityDistribution(){}
40 * Embedded Class begins here
42 struct Bin : public TNamed
51 Bin(Double_t etaLow, Double_t etaHigh);
59 Bin& operator=(const Bin&){return*this;}
65 * Define outputs of a single eta bin
67 virtual void CreateOutputObjectss(TList* cont, Int_t max);
69 * Process a single eta bin
71 virtual void Process(TH1D* dndetaForward, TH1D* dndetaCentral, TH1D* normForward, TH1D* normCentral, Double_t VtxZ);
72 Double_t fEtaLow; // low eta limit
73 Double_t fEtaHigh; // high eta limit
74 TH1D* fHist; // multiplicity distribution hist
75 TH1D* fHistPlus05; // mult. dist. hist scaled up with 5%
76 TH1D* fHistPlus075; // mult. dist. hist scaled up with 7.5%
77 TH1D* fHistPlus10; // mult. dist. hist scaled up with 10%
78 TH1D* fHistMinus05; // mult. dist. hist scaled down with 5%
79 TH1D* fHistMinus075; // mult. dist. hist scaled down with 7.5%
80 TH1D* fHistMinus10; // mult. dist. hist scaled down with 10%
81 TH1D* fHistPlusSys; // mult. dist. hist scaled up with the event uncertainty
82 TH1D* fHistMinusSys; // mult. dist, hist scaled down with the event uncertainty
83 TH2D* fAcceptance; // histogram showing the 'holes' in acceptance.
84 // BinContent of 1 shows a hole, and BinContent of 10 shows data coverage
85 TH2D* fVtxZvsNdataBins; // VtxZ vs. number of data acceptance bins (normalised to the eta range)
87 ClassDef(Bin,3); // Manager of data
90 * Create Output Objects
92 virtual Bool_t Book();
96 Bool_t Event(AliAODEvent& aod);
100 Bool_t Finalize() { return true; }
104 void SetCentrality(Int_t low, Int_t high) { SetCentralityAxis(low, high); }
106 * Set fNBins, multiplicity histos run from 0 to fNBins
108 void SetNBins(Int_t n){fNBins= n;}
110 * Add another eta bin to the task
112 void AddBin(Double_t etaLow, Double_t etaHigh){fBins.Add(new Bin(etaLow, etaHigh)); }
114 * Form name of eta bin
116 static const Char_t* FormBinName(Double_t etaLow, Double_t etaHigh);
121 AliForwardMultiplicityDistribution(const AliForwardMultiplicityDistribution&);
123 * Assignment Operator
125 AliForwardMultiplicityDistribution&
126 operator=(const AliForwardMultiplicityDistribution&);
128 TList fBins; // eta bin list
129 Int_t fNBins; // multiplicity axis' runs from 0 to fNbins
130 ClassDef(AliForwardMultiplicityDistribution, 3);