]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/hfe/AliHFEInclusiveSpectrumQA.h
Bug fix
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEInclusiveSpectrumQA.h
CommitLineData
959ea9d8 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
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**************************************************************************/
15//
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
20//
21#ifndef ALIHFEINCLUSIVESPECTRUMQA_H
22#define ALIHFEINCLUSIVESPECTRUMQA_H
23
24#ifndef ROOT_TNamed
25#include <TNamed.h>
26#endif
27
28
29class TObjArray;
30class TGraphErrors;
31class TObject;
32
33
34class AliHFEInclusiveSpectrumQA : public TNamed{
35 public:
36
37 enum Results_t{
38 kDataProjection = 0,
39 kCMProjection = 1,
40 kBeforeSC = 2,
41 kAfterSC = 3,
42 kBeforeV0 = 4,
43 kAfterV0 = 5,
44 kV0Efficiency = 6,
45 kBeforePE = 7,
46 kAfterPE = 8,
47 kPEfficiency = 9,
48 kBeforeMCE = 10,
49 kAfterMCE = 11,
50 kMCEfficiency = 12,
51 kBeforeU = 13,
52 kAfterU = 14,
53 kResidualU = 15,
54 kUEfficiency = 16,
55 kFinalResultUnfolded = 17,
56 kFinalResultDirectEfficiency = 18,
57 kNResults = 19
58 };
59
60
61 enum EfficiencyCorrection_t{
62 kV0 = 0,
63 kMC = 1,
64 kParametrized = 2,
65 kNTypeEfficiency = 3
66 };
67
68 void AddResultAt(TObject *obj,Int_t index);
69 TObject *GetResult(Int_t index);
70
71 void DrawProjections() const;
72 void DrawSubtractContamination() const;
73 void DrawCorrectWithEfficiency(Int_t typeeff) const;
74 void DrawUnfolding() const;
75 void DrawResult();
76
77 void SetStyle() const;
78 void SetWriteToFile(Bool_t writetofile) {fWriteToFile=writetofile; };
79 void SetPtMax(Double_t ptmax) {fPtMax = ptmax; };
80
81
82 TH1D *DivideSpectra(TGraphErrors *ga, TGraphErrors *gb);
83
84
85 AliHFEInclusiveSpectrumQA();
86 AliHFEInclusiveSpectrumQA(const char* name);
87 ~AliHFEInclusiveSpectrumQA();
88
89 protected:
90
91 private:
92
93 static const Char_t* fgkNameCanvas[kNTypeEfficiency]; // Name of canvas
94
95 AliHFEInclusiveSpectrumQA(const AliHFEInclusiveSpectrumQA &);
96 AliHFEInclusiveSpectrumQA &operator=(const AliHFEInclusiveSpectrumQA &);
97
98 Double_t fPtMax; // Pt max to plot
99 TObjArray *fListOfResult; // ListOfResults
100 Bool_t fWriteToFile; // Write plots to eps files
101
102 ClassDef(AliHFEInclusiveSpectrumQA, 1)
103};
104#endif
105