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
13 #include "Riostream.h"
\r
21 class AliGammaConversionHistograms{
\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
31 // TList * GetOutputContainer();
\r
32 void GetOutputContainer(TList *fOutputContainer);
\r
34 Int_t GetRBin(Double_t radius) const;
\r
35 Int_t GetPhiBin(Double_t phi) const;
\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
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
42 * Adds a TH1F histogram to the histogram map and create a key for it
\r
44 void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX,Double_t lastX,TString xAxisTitle="", TString yAxisTitle="");
\r
47 * Adds a TH2F histogram to the histogram map and create a key for it
\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
52 * Fills a TH1F histogram with the given name with the given value
\r
54 void FillHistogram(TString histogramName, Double_t xValue) const;
\r
57 * Fills a TH2F histogram with the given name with the given value
\r
59 void FillHistogram(TString histogramName, Double_t xValue, Double_t yValue) const;
\r
62 TMap* fHistogramMap;
\r
66 Double_t fMinRadius;
\r
67 Double_t fMaxRadius;
\r
73 TList * fMappingContainer;
\r
76 ClassDef(AliGammaConversionHistograms,1)
\r