• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

BCMTFComparisonTool.h

Go to the documentation of this file.
00001 #ifndef __BCMTFCOMPARISONTOOL__H
00002 #define __BCMTFCOMPARISONTOOL__H
00003 
00014 /*
00015  * Copyright (C) 2008-2012, Daniel Kollar and Kevin Kroeninger.
00016  * All rights reserved.
00017  *
00018  * For the licensing terms see doc/COPYING.
00019  */
00020 
00021 // ---------------------------------------------------------
00022 #include <string>
00023 #include <vector>
00024 
00025 #include <TH1D.h>
00026 
00027 // ---------------------------------------------------------
00028 class BCMTFComparisonTool
00029 {
00030 
00031    public:
00032 
00039       BCMTFComparisonTool(const char * name);
00040 
00043       ~BCMTFComparisonTool();
00044 
00051       std::string GetName()
00052          { return fName; };
00053 
00056       int GetNContributions()
00057          { return (int) fHistogramContainer.size(); };
00058 
00067       void AddContribution(const char * name, TH1D hist);
00068 
00074       void AddContribution(const char * name, double centralvalue, double uncertainty);
00075 
00078       void DrawOverview();
00079 
00087       void PrintHistograms(const char * filename);
00088 
00092       void PrintOverview(const char * filename);
00093 
00096  private:
00097 
00100       std::string fName;
00101 
00104       std::vector<std::string> fNameContainer;
00105 
00108       std::vector<TH1D *> fHistogramContainer;
00109 
00112       std::vector<double> fCentralValueContainer;
00113 
00116       std::vector<double> fUncertaintyContainer;
00117 
00118 };
00119 // ---------------------------------------------------------
00120 
00121 #endif
00122 

Generated by  doxygen 1.7.1