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