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? |
17 | |
18 | #ifndef ROOT_TObject |
19 | #include "TObject.h" |
20 | #endif |
21 | #ifndef ROOT_TFile |
22 | #include "TFile.h" |
23 | #endif |
24 | #ifndef ROOT_TH2 |
25 | #include "TH2.h" |
26 | #endif |
27 | #ifndef ROOT_TMath |
28 | #include "TMath.h" |
29 | #endif |
30 | |
31 | class dNdEtaAnalysis : public TObject |
32 | { |
33 | protected: |
34 | |
35 | TString fName; |
36 | |
37 | TH2F* hEtaVsVtx; |
38 | TH1F* hVtx; |
39 | TH1F* hdNdEta; |
40 | |
41 | public: |
42 | dNdEtaAnalysis(Char_t* name="dndeta_correction"); |
43 | |
44 | void FillTrack(Float_t vtx, Float_t eta, Float_t weight); |
45 | void FillEvent(Float_t vtx); |
46 | |
47 | void Finish(); |
48 | |
49 | void SaveHistograms(); |
50 | |
51 | ClassDef(dNdEtaAnalysis,0) |
52 | }; |
53 | |
539b6cb4 |
54 | #endif |