Updated signature of AliMUONSegFactory
[u/mrichter/AliRoot.git] / PWG0 / AliCorrectionMatrix3D.h
CommitLineData
bf21645b 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
14class TH3F;
15
16class AliCorrectionMatrix3D : public AliCorrectionMatrix
17{
18public:
19 AliCorrectionMatrix3D();
20 AliCorrectionMatrix3D(const AliCorrectionMatrix3D& c);
21 AliCorrectionMatrix3D(const Char_t* name, const Char_t* title,
22 Int_t nBinX=10, Float_t Xmin=0., Float_t Xmax=10.,
23 Int_t nBinY=10, Float_t Ymin=0., Float_t Ymax=10.,
24 Int_t nBinZ=10, Float_t Zmin=0., Float_t Zmax=10.);
25
1afae8ff 26 AliCorrectionMatrix3D(const Char_t* name, const Char_t* title,
27 Int_t nBinX, Float_t Xmin, Float_t Xmax,
28 Int_t nBinY, Float_t Ymin, Float_t Ymax,
29 Int_t nBinZ, const Float_t* zbins);
30
bf21645b 31 virtual ~AliCorrectionMatrix3D();
32
61385583 33 AliCorrectionMatrix3D& operator= (const AliCorrectionMatrix3D& c);
34
bf21645b 35 TH3F* GetGeneratedHistogram();
36 TH3F* GetMeasuredHistogram();
37 TH3F* GetCorrectionHistogram();
38
39 void FillMeas(Float_t ax, Float_t ay, Float_t az);
40 void FillGene(Float_t ax, Float_t ay, Float_t az);
41
42 Float_t GetCorrection(Float_t ax, Float_t ay, Float_t az) const;
43
44 void RemoveEdges(Float_t cut=2, Int_t nBinsXedge = 0, Int_t nBinsYedge = 0, Int_t nBinsZedge = 0);
45
46 virtual void SaveHistograms();
bf21645b 47
48protected:
49 ClassDef(AliCorrectionMatrix3D,1)
50};
51
52#endif
53