1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 // Class for spectrum correction
17 // Subtraction of hadronic background, Unfolding of the data and
18 // Renormalization done here
19 // For more information see the implementation file
21 #ifndef ALIHFEINCLUSIVESPECTRUMQA_H
22 #define ALIHFEINCLUSIVESPECTRUMQA_H
34 class AliHFEInclusiveSpectrumQA : public TNamed{
55 kFinalResultUnfolded = 17,
56 kFinalResultDirectEfficiency = 18,
61 kHadronContaminationND = 23,
75 enum EfficiencyCorrection_t{
82 void AddResultAt(TObject *obj,Int_t index);
83 TObject *GetResult(Int_t index);
85 void DrawProjections() const;
86 void DrawSubtractContamination() const;
87 void DrawSubtractContaminationND() const;
88 void DrawSubtractPhotonicBackground() const;
89 void DrawCorrectWithEfficiency(Int_t typeeff) const;
90 void DrawCorrectWithEfficiencyND(Int_t typeeff) const;
91 void DrawUnfolding() const;
94 void SetStyle() const;
95 void SetWriteToFile(Bool_t writetofile) {fWriteToFile=writetofile; };
96 void SetPtMax(Double_t ptmax) {fPtMax = ptmax; };
99 TH1D *DivideSpectra(TGraphErrors *ga, TGraphErrors *gb);
102 AliHFEInclusiveSpectrumQA();
103 AliHFEInclusiveSpectrumQA(const char* name);
104 ~AliHFEInclusiveSpectrumQA();
110 static const Char_t* fgkNameCanvas[kNTypeEfficiency]; // Name of canvas
111 static const Char_t* fgkNameCanvasND[kNTypeEfficiency]; // Name of canvas
113 AliHFEInclusiveSpectrumQA(const AliHFEInclusiveSpectrumQA &);
114 AliHFEInclusiveSpectrumQA &operator=(const AliHFEInclusiveSpectrumQA &);
116 Double_t fPtMax; // Pt max to plot
117 TObjArray *fListOfResult; // ListOfResults
118 Bool_t fWriteToFile; // Write plots to eps files
120 ClassDef(AliHFEInclusiveSpectrumQA, 1)