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
6 ////////////////////////////////////////////////
\r
7 //---------------------------------------------
\r
8 // Class used to do analysis on conversion pairs
\r
9 //---------------------------------------------
\r
10 ////////////////////////////////////////////////
\r
12 #include "TString.h"
\r
15 #include "Riostream.h"
\r
17 //#include "TList.h"
\r
25 class AliGammaConversionHistograms{
\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
35 // TList * GetOutputContainer();
\r
36 void GetOutputContainer(TList *fOutputContainer) const;
\r
38 Int_t GetRBin(Double_t radius) const;
\r
39 Int_t GetPhiBin(Double_t phi) const;
\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
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
46 * Adds a TH1F histogram to the histogram map and create a key for it
\r
48 void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX,Double_t lastX,TString xAxisTitle="", TString yAxisTitle="");
\r
51 * Adds a TH2F histogram to the histogram map and create a key for it
\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
56 * Fills a TH1F histogram with the given name with the given value
\r
58 void FillHistogram(TString histogramName, Double_t xValue) const;
\r
61 * Fills a TH2F histogram with the given name with the given value
\r
63 void FillHistogram(TString histogramName, Double_t xValue, Double_t yValue) const;
\r
66 TMap* fHistogramMap;
\r
70 Double_t fMinRadius;
\r
71 Double_t fMaxRadius;
\r
77 ClassDef(AliGammaConversionHistograms,1)
\r