#include "SUSYTools/SUSYCrossSection.h"
#include "SUSYTools/SUSYCrossSectionPMG.h"
#include "AsgTools/AnaToolHandle.h"
#include "PMGAnalysisInterfaces/IPMGCrossSectionTool.h"
#include <string>
#include <iostream>
#include <TSystem.h>
#include <TString.h>
#include <TError.h>
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 19 of file check_xsections.cxx.
22 ::Error(
"main()",
"Please provide a DSID to be checked!");
30 std::cout <<
"--- File Validation Mode ----" << std::endl;
34 std::cout <<
"--- Generator info Mode ----" << std::endl;
39 std::cout <<
"--- Wrapper Validation Mode ----" << std::endl;
43 SUSY::CrossSectionDB my_XsecDB(gSystem->ExpandPathName(
"$ROOTCOREBIN/data/SUSYTools/mc15_13TeV/"));
47 pmgxs.
setTypeAndName(
"PMGTools::PMGCrossSectionTool/PMGCrossSectionTool");
49 pmgxs->
readInfosFromDir(gSystem->ExpandPathName(
"$ROOTCOREBIN/data/PMGTools/"));
62 std::cout <<
"ST_CrossSection name : " << my_XsecDB.name(
dsid) << std::endl;
63 std::cout <<
"ST_CrossSection xs : " << my_XsecDB.xsectTimesEff(
dsid) << std::endl;
64 std::cout <<
"ST_CrossSection raw : " << my_XsecDB.rawxsect(
dsid) << std::endl;
65 std::cout <<
"ST_CrossSection k : " << my_XsecDB.kfactor(
dsid) << std::endl;
66 std::cout <<
"ST_CrossSection eff : " << my_XsecDB.efficiency(
dsid) << std::endl;
69 std::cout <<
"PMG_CrossSection name : " << pmgxs->
getSampleName(
dsid) << std::endl;
72 std::cout <<
"PMG_CrossSection (k) : " << pmgxs->
getKfactor(
dsid) << std::endl;
73 std::cout <<
"PMG_CrossSection (eff) : " << pmgxs->
getFilterEff(
dsid) << std::endl;
76 std::cout <<
"STPMG_CrossSection name : " << my_XsecDBPMG.name(
dsid) << std::endl;
77 std::cout <<
"STPMG_CrossSection xs : " << my_XsecDBPMG.xsectTimesEff(
dsid) << std::endl;
78 std::cout <<
"STPMG_CrossSection raw : " << my_XsecDBPMG.rawxsect(
dsid) << std::endl;
79 std::cout <<
"STPMG_CrossSection k : " << my_XsecDBPMG.kfactor(
dsid) << std::endl;
80 std::cout <<
"STPMG_CrossSection eff : " << my_XsecDBPMG.efficiency(
dsid) << std::endl;
87 std::string genname=
"SHOWER";
88 std::cout <<
id <<
"\t"
89 << genname << std::endl;
102 if(my_XsecDB.xsectTimesEff(
id) < 0)
continue;
104 TString
cmd = Form(
"grep \"%d\" PMGTools/data/*.txt | cut -d: -f1 >> PMG_id_file.txt",
id);
107 std::string shortname = pmgxs->
getSampleName(
id).erase(0,18);
108 std::string delim=
"\t";
110 std::cout <<
id << delim
111 << shortname << delim
112 << my_XsecDB.xsectTimesEff(
id) << delim
114 << my_XsecDB.rawxsect(
id) << delim
116 << my_XsecDB.kfactor(
id) << delim
118 << my_XsecDB.efficiency(
id) << delim