00001 #ifndef __SUSYCROSSSECTIONPMG__
00002 #define __SUSYCROSSSECTIONPMG__
00003
00004 #include <iostream>
00005 #include <fstream>
00006 #include <sstream>
00007 #include <string>
00008 #include <map>
00009 #include <stdlib.h>
00010
00011
00012 #include "PMGTools/PMGCrossSectionTool.h"
00013 #include <stdlib.h>
00014
00015 namespace SUSY
00016 {
00017
00018 class CrossSectionDBPMG
00019 {
00020 public:
00021 CrossSectionDBPMG(const std::string& txtfilenameOrDir = "SUSYTools/data/mc15_13TeV/");
00022
00023 void loadFile(const std::string&);
00024
00025
00026 PMGTools::PMGCrossSectionTool pmgxs;
00027
00028 float xsectTimesEff(int id) const { return pmgxs.getSampleXsection(id); };
00029 float rawxsect(int id) const { return pmgxs.getAMIXsection(id); };
00030 float kfactor(int id) const { return pmgxs.getKfactor(id); };
00031
00032 float efficiency(int id) const { return pmgxs.getFilterEff(id); }
00033 float rel_uncertainty(int , int ) const { return -1; };
00034 float sumweight(int ) const { return -1; };
00035
00036
00037 std::string name(int id) const { return pmgxs.getSampleName(id); }
00038
00039
00040
00041
00042
00043 };
00044
00045 }
00046
00047 #endif