]>
Commit | Line | Data |
---|---|---|
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 | |
7029240a | 21 | #include <TNamed.h> |
75ec0f41 | 22 | |
ceb5d1b5 | 23 | class TH2F; |
24 | class TH1D; | |
7029240a | 25 | class TCollection; |
fcf2fb36 | 26 | class dNdEtaCorrection; |
75ec0f41 | 27 | |
7029240a | 28 | class dNdEtaAnalysis : public TNamed |
ceb5d1b5 | 29 | { |
75ec0f41 | 30 | public: |
fcf2fb36 | 31 | enum { kVertexBinning = 1+6 }; // the first is for the whole vertex range, the others divide the vertex range |
7029240a | 32 | |
33 | dNdEtaAnalysis(Char_t* name, Char_t* title); | |
75ec0f41 | 34 | |
fcf2fb36 | 35 | void FillTrack(Float_t vtx, Float_t eta, Float_t c); |
75ec0f41 | 36 | void FillEvent(Float_t vtx); |
ceb5d1b5 | 37 | |
fcf2fb36 | 38 | void Finish(dNdEtaCorrection* correction); |
ceb5d1b5 | 39 | |
40 | void DrawHistograms(); | |
75ec0f41 | 41 | void SaveHistograms(); |
ceb5d1b5 | 42 | |
7029240a | 43 | virtual Long64_t Merge(TCollection* list); |
44 | ||
ceb5d1b5 | 45 | TH2F* GetEtaVsVtxHistogram() { return hEtaVsVtx; } |
46 | TH2F* GetEtaVsVtxUncorrectedHistogram() { return hEtaVsVtxUncorrected; } | |
47 | TH1D* GetVtxHistogram() { return hVtx; } | |
7029240a | 48 | TH1D* GetdNdEtaHistogram(Int_t i = 0) { return hdNdEta[i]; } |
ceb5d1b5 | 49 | |
50 | protected: | |
ceb5d1b5 | 51 | TH2F* hEtaVsVtx; |
fcf2fb36 | 52 | TH2F* hEtaVsVtxCheck; |
ceb5d1b5 | 53 | TH2F* hEtaVsVtxUncorrected; |
54 | TH1D* hVtx; | |
7029240a | 55 | TH1D* hdNdEta[kVertexBinning]; |
ceb5d1b5 | 56 | |
75ec0f41 | 57 | ClassDef(dNdEtaAnalysis,0) |
58 | }; | |
59 | ||
539b6cb4 | 60 | #endif |