]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/DPhi/DiHadronPID/AliHistToolsDiHadronPID.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / DPhi / DiHadronPID / AliHistToolsDiHadronPID.h
1 #ifndef ALIHISTTOOLSDIHADRONPID_H
2 #define ALIHISTTOOLSDIHADRONPID_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * 
4 * See cxx source for full Copyright notice */ 
5 /* $Id$ */
6
7 /*
8 class TF2;
9 class TH1F;
10 class TH2;
11 class TH2F;
12 class TH3F;
13 class TCanvas;
14 */
15
16 #include "TH1F.h"
17 #include "TH2F.h"
18 #include "TH3F.h"
19 #include "TF2.h"
20 #include "TCanvas.h"
21
22 class AliHistToolsDiHadronPID {
23
24 public:
25         AliHistToolsDiHadronPID() {};
26
27 protected:
28         ~AliHistToolsDiHadronPID() {};
29
30 public:
31
32         // Histogram Manipulation.
33         static TH1F* RebinVariableBinning(const TH1F* histIn, const Double_t* binsx, Int_t Nbinsx, Bool_t density = kTRUE);
34         static TH1F* RebinVariableBinning(const TH1F* histIn, const TH1F* histAxis, Bool_t density = kTRUE);
35         static TH1F* RebinVariableBinning(const TH1F* histIn, const TAxis* xaxis, Bool_t density = kTRUE);
36         static TH1F* TrimHisto(const TH1F* histo, Int_t firstbin, Int_t lastbin);
37         static void ConstMinusHist(TH1F* histo, Float_t cc = 1);
38         static TH3F* MakeHist3D(const char* name, const char* title, 
39                 Int_t nbinsX, Double_t minX, Double_t maxX,
40                 Int_t nbinsY, Double_t minY, Double_t maxY,
41                 Int_t nbinsZ, const Double_t* zaxis);
42
43         // Creating histograms from other histograms or functions.
44         static TH2F* Function2DToHist2D(const TF2* function, const TH2* grid);
45
46         // Histogram Visualization.
47         static TCanvas* CreateSpectraComparison(const char* name, const char* title, const TH1F* h1, const TH1F* h2, Int_t markerstyle = 8, Bool_t logy = kTRUE);
48
49 //private:
50         static Double_t* CreateAxis(Int_t nbins, Double_t min, Double_t max);
51
52 };
53
54 #endif