]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG4/GammaConv/AliGammaConversionHistograms.h
Added a new class for the AOD information
[u/mrichter/AliRoot.git] / PWG4 / GammaConv / AliGammaConversionHistograms.h
index 056f2fc12811958055c45a65476e87a7a99f09e9..2a6ff9bea974e6b06f5f554e58dd7326c89bdd73 100644 (file)
-#ifndef ALIGAMMACONVERSIONHISTOGRAMS_H\r
-#define ALIGAMMACONVERSIONHISTOGRAMS_H\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
- * See cxx source for full Copyright notice     */\r
-\r
-////////////////////////////////////////////////\r
-//--------------------------------------------- \r
-// Class used to do analysis on conversion pairs\r
-//---------------------------------------------\r
-////////////////////////////////////////////////\r
-\r
-#include "TString.h"\r
-#include "Riostream.h"\r
-#include <vector>\r
-\r
-class TMap;\r
-class TList;\r
-class TH1F;\r
-class TH2F;\r
-\r
-class AliGammaConversionHistograms{\r
-\r
- public: \r
-  \r
-  AliGammaConversionHistograms();                                                                  //constructor\r
-  AliGammaConversionHistograms(const AliGammaConversionHistograms & original);                     //copy constructor\r
-  AliGammaConversionHistograms & operator = (const AliGammaConversionHistograms & original);       //assignment operator\r
-  virtual ~AliGammaConversionHistograms();                                                         //virtual destructor\r
-  \r
-\r
-  //  TList * GetOutputContainer();\r
-  void GetOutputContainer(TList *fOutputContainer);\r
-  \r
-  Int_t GetRBin(Double_t radius) const;\r
-  Int_t GetPhiBin(Double_t phi) const;\r
-\r
-  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
-\r
-  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
-\r
-  /*\r
-   * Adds a TH1F histogram to the histogram map and create a key for it \r
-   */\r
-  void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX,Double_t lastX,TString xAxisTitle="", TString yAxisTitle="");\r
-\r
-  /*\r
-   * Adds a TH2F histogram to the histogram map and create a key for it \r
-   */\r
-  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
-\r
-  /*\r
-   *  Adds a TH1F Table to the table map and create a key for it\r
-   */\r
-  void AddTable(TString tableName,TString tableTitle,Int_t nXBins, const char * axesLabel[]);  \r
-\r
-\r
-  /*\r
-   * Fills a TH1F histogram with the given name with the given value \r
-   */\r
-  void FillHistogram(TString histogramName, Double_t xValue) const;\r
-\r
-  /*\r
-   * Fills a TH2F histogram with the given name with the given value \r
-   */\r
-  void FillHistogram(TString histogramName, Double_t xValue, Double_t yValue) const;\r
-\r
-  /*\r
-   * Fills a TH1F table with the given name with the given value\r
-   */                  \r
-  void FillTable(TString tableName, Double_t xValue) const;            \r
-\r
- private:\r
-  TMap* fHistogramMap; // histogram map\r
-\r
-  Int_t fNPhiIndex; //phi index\r
-  Int_t fNRIndex; //r index\r
-  Double_t fMinRadius; //min radius cut\r
-  Double_t fMaxRadius; //max radius cut\r
-  Double_t fDeltaR; // delta r\r
-  Double_t fMinPhi; //min phi\r
-  Double_t fMaxPhi; // max phi\r
-  Double_t fDeltaPhi;//delta phi\r
-\r
-  TList * fMappingContainer; //mapping container\r
-  TList * fBackgroundContainer; // background container\r
-  TList * fDebugContainer; // debug container\r
-  TList * fResolutionContainer; //resolution container\r
-  TList * fMatchContainer; //match container\r
-  TList * fESDContainer;//esd container\r
-  TList * fMCContainer; // MC container\r
-  TList * fTableContainer; // table container\r
-  TList * fOtherContainer; // other container\r
-\r
-  ClassDef(AliGammaConversionHistograms,2)\r
-};\r
-\r
-\r
-#endif\r
-\r
-\r
-\r
+#ifndef ALIGAMMACONVERSIONHISTOGRAMS_H
+#define ALIGAMMACONVERSIONHISTOGRAMS_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice     */
+
+////////////////////////////////////////////////
+//--------------------------------------------- 
+// Class used to do analysis on conversion pairs
+//---------------------------------------------
+////////////////////////////////////////////////
+
+#include "TString.h"
+#include "Riostream.h"
+#include <vector>
+
+class TMap;
+class TList;
+class TH1F;
+class TH2F;
+
+class AliGammaConversionHistograms{
+
+ public: 
+  
+  AliGammaConversionHistograms();                                                                  //constructor
+  AliGammaConversionHistograms(const AliGammaConversionHistograms & original);                     //copy constructor
+  AliGammaConversionHistograms & operator = (const AliGammaConversionHistograms & original);       //assignment operator
+  virtual ~AliGammaConversionHistograms();                                                         //virtual destructor
+  
+
+  //  TList * GetOutputContainer();
+  void GetOutputContainer(TList *fOutputContainer);
+  
+  Int_t GetRBin(Double_t radius) const;
+  Int_t GetPhiBin(Double_t phi) const;
+
+  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);
+
+  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="");
+
+  /*
+   * Adds a TH1F histogram to the histogram map and create a key for it 
+   */
+  void AddHistogram(TString histogramName, TString histogramTitle, Int_t nXBins, Double_t firstX,Double_t lastX,TString xAxisTitle="", TString yAxisTitle="");
+
+  /*
+   * Adds a TH2F histogram to the histogram map and create a key for it 
+   */
+  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="");
+
+  /*
+   *  Adds a TH1F Table to the table map and create a key for it
+   */
+  void AddTable(TString tableName,TString tableTitle,Int_t nXBins, const char * axesLabel[]);  
+
+
+  /*
+   * Fills a TH1F histogram with the given name with the given value 
+   */
+  void FillHistogram(TString histogramName, Double_t xValue) const;
+
+  /*
+   * Fills a TH2F histogram with the given name with the given value 
+   */
+  void FillHistogram(TString histogramName, Double_t xValue, Double_t yValue) const;
+
+  /*
+   * Fills a TH1F table with the given name with the given value
+   */                  
+  void FillTable(TString tableName, Double_t xValue) const;            
+
+ private:
+  TMap* fHistogramMap; // histogram map
+
+  Int_t fNPhiIndex; //phi index
+  Int_t fNRIndex; //r index
+  Double_t fMinRadius; //min radius cut
+  Double_t fMaxRadius; //max radius cut
+  Double_t fDeltaR; // delta r
+  Double_t fMinPhi; //min phi
+  Double_t fMaxPhi; // max phi
+  Double_t fDeltaPhi;//delta phi
+
+  TList * fMappingContainer; //mapping container
+  TList * fBackgroundContainer; // background container
+  TList * fDebugContainer; // debug container
+  TList * fResolutionContainer; //resolution container
+  TList * fMatchContainer; //match container
+  TList * fESDContainer;//esd container
+  TList * fMCContainer; // MC container
+  TList * fTableContainer; // table container
+  TList * fOtherContainer; // other container
+
+  ClassDef(AliGammaConversionHistograms,2)
+};
+
+
+#endif
+
+
+