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