New set of default cuts suitable for pp events.
[u/mrichter/AliRoot.git] / PWG0 / AliCorrectionMatrix2D.h
CommitLineData
bf21645b 1#ifndef ALICORRECTIONMATRIX2D_H
2#define ALICORRECTIONMATRIX2D_H
3
4/* $Id$ */
5
6// ------------------------------------------------------
7//
8// Class to handle 2d-corrections.
9//
10// ------------------------------------------------------
11
12#include <AliCorrectionMatrix.h>
13
14class TH2F;
15class TH1F;
16
17class AliCorrectionMatrix2D : public AliCorrectionMatrix
18{
19public:
20 AliCorrectionMatrix2D();
21 AliCorrectionMatrix2D(const AliCorrectionMatrix2D& c);
22 AliCorrectionMatrix2D(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
26 AliCorrectionMatrix2D(const Char_t* name, const Char_t* title,
27 Int_t nBinX, Float_t *X, Int_t nBinY, Float_t *Y);
28
29 virtual ~AliCorrectionMatrix2D();
30
61385583 31 AliCorrectionMatrix2D& operator= (const AliCorrectionMatrix2D& c);
32
bf21645b 33 TH2F* GetGeneratedHistogram() const;
34 TH2F* GetMeasuredHistogram() const;
35
29771dc8 36 TH2F* GetCorrectionHistogram() {return (TH2F*)fhCorr;}
7584d357 37 TH1F* Get1DCorrection(Char_t* opt="x", Float_t min=0, Float_t max=0);
bf21645b 38
39 void FillMeas(Float_t ax, Float_t ay);
40 void FillGene(Float_t ax, Float_t ay);
41 Float_t GetCorrection(Float_t ax, Float_t ay) const;
42
43 void RemoveEdges(Float_t cut=2, Int_t nBinsX=0, Int_t nBinsY=0);
44
45protected:
46 ClassDef(AliCorrectionMatrix2D,1)
61385583 47
48private:
bf21645b 49};
50
51#endif
52