]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliCorrectionMatrix3D.h
uuhhhhaaa - what did I change? Added the run number and fixed coding conventions ;-)
[u/mrichter/AliRoot.git] / PWG0 / AliCorrectionMatrix3D.h
1 #ifndef ALICORRECTIONMATRIX3D_H
2 #define ALICORRECTIONMATRIX3D_H
3
4 /* $Id$ */
5
6 // ------------------------------------------------------
7 //
8 // Class to handle 3d-corrections.
9 //
10 // ------------------------------------------------------
11
12 #include <AliCorrectionMatrix.h>
13
14 class TH3F;
15 class TH1F;
16
17 class AliCorrectionMatrix3D : public AliCorrectionMatrix
18 {
19 public:
20   AliCorrectionMatrix3D();
21   AliCorrectionMatrix3D(const AliCorrectionMatrix3D& c);
22   AliCorrectionMatrix3D(const Char_t* name, const Char_t* title,
23                      Int_t nBinX=10, Float_t Xmin=0., Float_t Xmax=10.,
24                      Int_t nBinY=10, Float_t Ymin=0., Float_t Ymax=10.,
25                      Int_t nBinZ=10, Float_t Zmin=0., Float_t Zmax=10.);
26
27   AliCorrectionMatrix3D(const Char_t* name, const Char_t* title,
28          Int_t nBinX, Float_t Xmin, Float_t Xmax,
29          Int_t nBinY, Float_t Ymin, Float_t Ymax,
30          Int_t nBinZ, const Float_t* zbins);
31
32   virtual ~AliCorrectionMatrix3D();
33
34   AliCorrectionMatrix3D& operator= (const AliCorrectionMatrix3D& c);
35
36   TH3F* GetGeneratedHistogram();
37   TH3F* GetMeasuredHistogram();
38   TH3F* GetCorrectionHistogram();
39
40   void FillMeas(Float_t ax, Float_t ay, Float_t az);
41   void FillGene(Float_t ax, Float_t ay, Float_t az);
42
43   Float_t GetCorrection(Float_t ax, Float_t ay, Float_t az) const;
44
45   void RemoveEdges(Float_t cut=2, Int_t nBinsXedge = 0, Int_t nBinsYedge = 0, Int_t nBinsZedge = 0);
46
47   virtual void SaveHistograms();
48
49   Int_t CheckEmptyBins(Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax, Float_t zmin, Float_t zmax, Bool_t quiet = kFALSE);
50   TH1F* PlotBinErrors(Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax, Float_t zmin, Float_t zmax);
51
52
53 protected:
54   ClassDef(AliCorrectionMatrix3D,1)
55 };
56
57 #endif
58