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 enum EfficiencyCorrection_t{
68 void AddResultAt(TObject *obj,Int_t index);
69 TObject *GetResult(Int_t index);
71 void DrawProjections() const;
72 void DrawSubtractContamination() const;
73 void DrawCorrectWithEfficiency(Int_t typeeff) const;
74 void DrawUnfolding() const;
77 void SetStyle() const;
78 void SetWriteToFile(Bool_t writetofile) {fWriteToFile=writetofile; };
79 void SetPtMax(Double_t ptmax) {fPtMax = ptmax; };
82 TH1D *DivideSpectra(TGraphErrors *ga, TGraphErrors *gb);
85 AliHFEInclusiveSpectrumQA();
86 AliHFEInclusiveSpectrumQA(const char* name);
87 ~AliHFEInclusiveSpectrumQA();
93 static const Char_t* fgkNameCanvas[kNTypeEfficiency]; // Name of canvas
95 AliHFEInclusiveSpectrumQA(const AliHFEInclusiveSpectrumQA &);
96 AliHFEInclusiveSpectrumQA &operator=(const AliHFEInclusiveSpectrumQA &);
98 Double_t fPtMax; // Pt max to plot
99 TObjArray *fListOfResult; // ListOfResults
100 Bool_t fWriteToFile; // Write plots to eps files
102 ClassDef(AliHFEInclusiveSpectrumQA, 1)