]>
Commit | Line | Data |
---|---|---|
9fdb2372 | 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 "TH1F.h"\r | |
14 | //#include "TH2F.h"\r | |
15 | #include "Riostream.h"\r | |
16 | #include <vector>\r | |
17 | //#include "TList.h"\r | |
18 | //#include "TMap.h"\r | |
19 | \r | |
20 | class TMap;\r | |
21 | class TList;\r | |
22 | class TH1F;\r | |
23 | class TH2F;\r | |
24 | \r | |
25 | class AliGammaConversionHistograms{\r | |
26 | \r | |
27 | public: \r | |
28 | \r | |
29 | AliGammaConversionHistograms(); //constructor\r | |
30 | AliGammaConversionHistograms(const AliGammaConversionHistograms & original); //copy constructor\r | |
31 | AliGammaConversionHistograms & operator = (const AliGammaConversionHistograms & original); //assignment operator\r | |
32 | virtual ~AliGammaConversionHistograms(); //virtual destructor\r | |
33 | \r | |
34 | \r | |
35 | // TList * GetOutputContainer();\r | |
36 | void GetOutputContainer(TList *fOutputContainer) const;\r | |
37 | \r | |
38 | Int_t GetRBin(Double_t radius) const;\r | |
39 | Int_t GetPhiBin(Double_t phi) const;\r | |
40 | \r | |
41 | 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 | |
42 | \r | |
43 | 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 | |
44 | \r | |
45 | /*\r | |
46 | * Adds a TH1F histogram to the histogram map and create a key for it \r | |
47 | */\r | |
48 | void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX,Double_t lastX,TString xAxisTitle="", TString yAxisTitle="");\r | |
49 | \r | |
50 | /*\r | |
51 | * Adds a TH2F histogram to the histogram map and create a key for it \r | |
52 | */\r | |
53 | 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 | |
54 | \r | |
55 | /*\r | |
56 | * Fills a TH1F histogram with the given name with the given value \r | |
57 | */\r | |
58 | void FillHistogram(TString histogramName, Double_t xValue) const;\r | |
59 | \r | |
60 | /*\r | |
61 | * Fills a TH2F histogram with the given name with the given value \r | |
62 | */\r | |
63 | void FillHistogram(TString histogramName, Double_t xValue, Double_t yValue) const;\r | |
64 | \r | |
65 | private:\r | |
66 | TMap* fHistogramMap;\r | |
67 | \r | |
68 | Int_t fNPhiIndex;\r | |
69 | Int_t fNRIndex;\r | |
70 | Double_t fMinRadius;\r | |
71 | Double_t fMaxRadius;\r | |
72 | Double_t fDeltaR;\r | |
73 | Double_t fMinPhi;\r | |
74 | Double_t fMaxPhi;\r | |
75 | Double_t fDeltaPhi;\r | |
76 | \r | |
77 | ClassDef(AliGammaConversionHistograms,1)\r | |
78 | } ;\r | |
79 | \r | |
80 | \r | |
81 | #endif\r | |
82 | \r | |
83 | \r | |
84 | \r |