]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/dNdEta/dNdEtaAnalysis.h
first checkin of Claus' code with a few modifications
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / dNdEtaAnalysis.h
1 // ------------------------------------------------------
2 //
3 // Class for dn/deta analysis
4 //
5 // ------------------------------------------------------
6 // 
7 // TODO:
8 // - more documentation
9 // - add debug statements
10 // - add more histograms
11 // - add functionality to set the bin sizes
12 // - figure out correct way to treat the errors
13 // - add functionality to make dn/deta for different mult classes?
14
15 #ifndef ROOT_TObject
16 #include "TObject.h"
17 #endif
18 #ifndef ROOT_TFile
19 #include "TFile.h"
20 #endif
21 #ifndef ROOT_TH2
22 #include "TH2.h"
23 #endif
24 #ifndef ROOT_TMath
25 #include "TMath.h"
26 #endif
27
28 class dNdEtaAnalysis : public TObject 
29 {
30 protected:    
31
32   TString  fName; 
33
34   TH2F* hEtaVsVtx;
35   TH1F* hVtx;
36   TH1F* hdNdEta;
37
38 public:
39   dNdEtaAnalysis(Char_t* name="dndeta_correction");
40
41   void FillTrack(Float_t vtx, Float_t eta, Float_t weight);
42   void FillEvent(Float_t vtx);
43   
44   void Finish();
45   
46   void SaveHistograms();
47   
48   ClassDef(dNdEtaAnalysis,0)
49 };
50
51