]>
Commit | Line | Data |
---|---|---|
6788af99 | 1 | #ifndef ALIHISTTOOLSDIHADRONPID_H |
2 | #define ALIHISTTOOLSDIHADRONPID_H | |
97724bd1 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | /* $Id$ */ | |
6788af99 | 6 | |
a5422983 | 7 | /* |
5c01a71f | 8 | class TF2; |
9 | class TH1F; | |
07d62e30 | 10 | class TH2; |
5c01a71f | 11 | class TH2F; |
12 | class TH3F; | |
07d62e30 | 13 | class TCanvas; |
a5422983 | 14 | */ |
15 | ||
16 | #include "TH1F.h" | |
17 | #include "TH2F.h" | |
18 | #include "TH3F.h" | |
19 | #include "TF2.h" | |
20 | #include "TCanvas.h" | |
5c01a71f | 21 | |
6788af99 | 22 | class AliHistToolsDiHadronPID { |
23 | ||
24 | public: | |
25 | AliHistToolsDiHadronPID() {}; | |
26 | ||
27 | protected: | |
28 | ~AliHistToolsDiHadronPID() {}; | |
29 | ||
30 | public: | |
31 | ||
32 | // Histogram Manipulation. | |
fe463f34 | 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); | |
34e8fe1d | 37 | static void ConstMinusHist(TH1F* histo, Float_t cc = 1); |
6788af99 | 38 | static TH3F* MakeHist3D(const char* name, const char* title, |
fe463f34 | 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); | |
6788af99 | 42 | |
5c01a71f | 43 | // Creating histograms from other histograms or functions. |
44 | static TH2F* Function2DToHist2D(const TF2* function, const TH2* grid); | |
6788af99 | 45 | |
46 | // Histogram Visualization. | |
fe463f34 | 47 | static TCanvas* CreateSpectraComparison(const char* name, const char* title, const TH1F* h1, const TH1F* h2, Int_t markerstyle = 8, Bool_t logy = kTRUE); |
6788af99 | 48 | |
6214ec0c | 49 | //private: |
fe463f34 | 50 | static Double_t* CreateAxis(Int_t nbins, Double_t min, Double_t max); |
6788af99 | 51 | |
52 | }; | |
53 | ||
54 | #endif |