1 #ifndef ALICORRECTION_H
2 #define ALICORRECTION_H
6 // ------------------------------------------------------
8 // This class is used to store the correction for one effect.
10 // Most effects have to be correction on track and event level, this class combines
11 // two correction matrices. One of the type AliCorrectionMatrix2D and one of
12 // the type AliCorrectionMatrix3D
14 // ------------------------------------------------------
18 class AliCorrectionMatrix2D;
19 class AliCorrectionMatrix3D;
21 class AliCorrection : public TNamed
25 AliCorrection(const Char_t* name, const Char_t* title);
26 AliCorrection(const AliCorrection& c);
28 virtual ~AliCorrection();
29 AliCorrection& operator=(const AliCorrection& corr);
30 virtual void Copy(TObject& c) const;
32 virtual Long64_t Merge(TCollection* list);
34 AliCorrectionMatrix2D* GetEventCorrection() { return fEventCorr; }
35 AliCorrectionMatrix3D* GetTrackCorrection() { return fTrackCorr; }
37 void SetEventCorrection(AliCorrectionMatrix2D* corr) { fEventCorr = corr; }
38 void SetTrackCorrection(AliCorrectionMatrix3D* corr) { fTrackCorr = corr; }
42 void SetCorrectionToUnity();
44 void Add(AliCorrection* aCorrectionToAdd, Float_t c=1);
46 virtual Bool_t LoadHistograms(const Char_t* dir = 0);
47 virtual void SaveHistograms();
48 virtual void DrawHistograms(const Char_t* name = 0);
50 virtual void ReduceInformation();
52 virtual void Reset(Option_t* option = "");
55 AliCorrectionMatrix2D* fEventCorr; // correction on event level
56 AliCorrectionMatrix3D* fTrackCorr; // correction on track level
58 ClassDef(AliCorrection,1)