Default changed: SPD chips thickness is 150 microns
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / dNdEtaAnalysis.h
CommitLineData
539b6cb4 1#ifndef DNDETANALYSIS_H
2#define DNDETANALYSIS_H
3
75ec0f41 4// ------------------------------------------------------
5//
6// Class for dn/deta analysis
7//
8// ------------------------------------------------------
9//
10// TODO:
11// - more documentation
12// - add debug statements
13// - add more histograms
14// - add functionality to set the bin sizes
15// - figure out correct way to treat the errors
16// - add functionality to make dn/deta for different mult classes?
4dd2ad81 17// - implement destructor
75ec0f41 18
ceb5d1b5 19#include <TObject.h>
20#include <TString.h>
75ec0f41 21
ceb5d1b5 22class TH2F;
23class TH1D;
75ec0f41 24
ceb5d1b5 25class dNdEtaAnalysis : public TObject
26{
75ec0f41 27public:
28 dNdEtaAnalysis(Char_t* name="dndeta_correction");
29
30 void FillTrack(Float_t vtx, Float_t eta, Float_t weight);
31 void FillEvent(Float_t vtx);
ceb5d1b5 32
75ec0f41 33 void Finish();
ceb5d1b5 34
35 void DrawHistograms();
75ec0f41 36 void SaveHistograms();
ceb5d1b5 37
38 TH2F* GetEtaVsVtxHistogram() { return hEtaVsVtx; }
39 TH2F* GetEtaVsVtxUncorrectedHistogram() { return hEtaVsVtxUncorrected; }
40 TH1D* GetVtxHistogram() { return hVtx; }
41 TH1D* GetdNdEtaHistogram() { return hdNdEta; }
42
43 void SetEtaVsVtxHistogram(TH2F* aHist) { hEtaVsVtx = aHist; }
44 void SetEtaVsVtxUncorrectedHistogram(TH2F* aHist) { hEtaVsVtxUncorrected = aHist; }
45 void SetVtxHistogram(TH1D* aHist) { hVtx = aHist; }
46 void SetdNdEtaHistogram(TH1D* aHist) { hdNdEta = aHist; }
47
48protected:
49 TString fName;
50
51 TH2F* hEtaVsVtx;
52 TH2F* hEtaVsVtxUncorrected;
53 TH1D* hVtx;
54 TH1D* hdNdEta;
55
75ec0f41 56 ClassDef(dNdEtaAnalysis,0)
57};
58
539b6cb4 59#endif