3 #ifndef DNDETANALYSIS_H
4 #define DNDETANALYSIS_H
6 // ------------------------------------------------------
8 // Class for dn/deta analysis
10 // ------------------------------------------------------
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?
19 // - implement destructor
26 class dNdEtaCorrection;
28 class dNdEtaAnalysis : public TNamed
31 enum { kVertexBinning = 1+6 }; // the first is for the whole vertex range, the others divide the vertex range
33 dNdEtaAnalysis(Char_t* name, Char_t* title);
35 void FillTrack(Float_t vtx, Float_t eta, Float_t c);
36 void FillEvent(Float_t vtx);
38 void Finish(dNdEtaCorrection* correction);
40 void DrawHistograms();
41 void SaveHistograms();
43 virtual Long64_t Merge(TCollection* list);
45 TH2F* GetEtaVsVtxHistogram() { return hEtaVsVtx; }
46 TH2F* GetEtaVsVtxUncorrectedHistogram() { return hEtaVsVtxUncorrected; }
47 TH1D* GetVtxHistogram() { return hVtx; }
48 TH1D* GetdNdEtaHistogram(Int_t i = 0) { return hdNdEta[i]; }
53 TH2F* hEtaVsVtxUncorrected;
55 TH1D* hdNdEta[kVertexBinning];
57 ClassDef(dNdEtaAnalysis,0)