]>
Commit | Line | Data |
---|---|---|
3c538586 | 1 | #ifndef ALIGAMMACONVERSIONHISTOGRAMS_H\r |
2 | #define ALIGAMMACONVERSIONHISTOGRAMS_H\r | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r | |
4 | * See cxx source for full Copyright notice */\r | |
5 | \r | |
6 | ////////////////////////////////////////////////\r | |
7 | //--------------------------------------------- \r | |
8 | // Class used to do analysis on conversion pairs\r | |
9 | //---------------------------------------------\r | |
10 | ////////////////////////////////////////////////\r | |
11 | \r | |
12 | #include "TString.h"\r | |
13 | #include "Riostream.h"\r | |
14 | #include <vector>\r | |
15 | \r | |
16 | class TMap;\r | |
17 | class TList;\r | |
18 | class TH1F;\r | |
19 | class TH2F;\r | |
20 | \r | |
21 | class AliGammaConversionHistograms{\r | |
22 | \r | |
23 | public: \r | |
24 | \r | |
25 | AliGammaConversionHistograms(); //constructor\r | |
26 | AliGammaConversionHistograms(const AliGammaConversionHistograms & original); //copy constructor\r | |
27 | AliGammaConversionHistograms & operator = (const AliGammaConversionHistograms & original); //assignment operator\r | |
28 | virtual ~AliGammaConversionHistograms(); //virtual destructor\r | |
29 | \r | |
30 | \r | |
31 | // TList * GetOutputContainer();\r | |
32 | void GetOutputContainer(TList *fOutputContainer);\r | |
33 | \r | |
34 | Int_t GetRBin(Double_t radius) const;\r | |
35 | Int_t GetPhiBin(Double_t phi) const;\r | |
36 | \r | |
37 | void InitializeMappingValues(Int_t nPhiHistograms, Int_t nRHistograms, Int_t nBinsR, Double_t minRadius, Double_t maxRadius,Int_t nBinsPhi, Double_t minPhi, Double_t maxPhi);\r | |
38 | \r | |
39 | void AddMappingHistograms(Int_t nPhiHistograms, Int_t nRHistograms,Int_t nXBins, Double_t firstX, Double_t lastX, Int_t nYBins, Double_t firstY, Double_t lastY, TString xAxisTitle="", TString yAxisTitle="");\r | |
40 | \r | |
41 | /*\r | |
42 | * Adds a TH1F histogram to the histogram map and create a key for it \r | |
43 | */\r | |
44 | void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX,Double_t lastX,TString xAxisTitle="", TString yAxisTitle="");\r | |
45 | \r | |
46 | /*\r | |
47 | * Adds a TH2F histogram to the histogram map and create a key for it \r | |
48 | */\r | |
49 | void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX, Double_t lastX, Int_t nYBins, Double_t firstY, Double_t lastY, TString xAxisTitle="", TString yAxisTitle="");\r | |
50 | \r | |
00a6a31a | 51 | /*\r |
52 | * Adds a TH1F Table to the table map and create a key for it\r | |
53 | */\r | |
54 | void AddTable(TString tableName,TString tableTitle,Int_t nXBins, const char * axesLabel[]); \r | |
55 | \r | |
56 | \r | |
3c538586 | 57 | /*\r |
58 | * Fills a TH1F histogram with the given name with the given value \r | |
59 | */\r | |
60 | void FillHistogram(TString histogramName, Double_t xValue) const;\r | |
61 | \r | |
62 | /*\r | |
63 | * Fills a TH2F histogram with the given name with the given value \r | |
64 | */\r | |
65 | void FillHistogram(TString histogramName, Double_t xValue, Double_t yValue) const;\r | |
66 | \r | |
00a6a31a | 67 | /*\r |
68 | * Fills a TH1F table with the given name with the given value\r | |
69 | */ \r | |
70 | void FillTable(TString tableName, Double_t xValue) const; \r | |
71 | \r | |
3c538586 | 72 | private:\r |
73 | TMap* fHistogramMap;\r | |
74 | \r | |
75 | Int_t fNPhiIndex;\r | |
76 | Int_t fNRIndex;\r | |
77 | Double_t fMinRadius;\r | |
78 | Double_t fMaxRadius;\r | |
79 | Double_t fDeltaR;\r | |
80 | Double_t fMinPhi;\r | |
81 | Double_t fMaxPhi;\r | |
82 | Double_t fDeltaPhi;\r | |
83 | \r | |
84 | TList * fMappingContainer;\r | |
a19c3402 | 85 | TList * fBackgroundContainer;\r |
86 | TList * fDebugContainer;\r | |
87 | TList * fResolutionContainer;\r | |
88 | TList * fMatchContainer;\r | |
89 | TList * fESDContainer;\r | |
90 | TList * fMCContainer;\r | |
00a6a31a | 91 | TList * fTableContainer; \r |
a19c3402 | 92 | TList * fOtherContainer;\r |
3c538586 | 93 | \r |
94 | \r | |
00a6a31a | 95 | ClassDef(AliGammaConversionHistograms,2)\r |
32a6d407 | 96 | };\r |
3c538586 | 97 | \r |
98 | \r | |
99 | #endif\r | |
100 | \r | |
101 | \r | |
102 | \r |