Skip to content
Snippets Groups Projects
Commit b81ff461 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Cb update

parent a9174f0b
No related branches found
No related tags found
1 merge request!60Cb update
...@@ -32,6 +32,7 @@ common:setup: ...@@ -32,6 +32,7 @@ common:setup:
if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then
export COMMON_BENCH_VERSION="master" export COMMON_BENCH_VERSION="master"
fi fi
export COMMON_BENCH_VERSION="docs" # temporary
echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}" echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}"
git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup
script: script:
......
#include "dis.h" #include "dis.h"
#include "plot.h" #include "plot.h"
#include <benchmark.h> #include <common_bench/benchmark.h>
#include <mt.h> #include <common_bench/mt.h>
#include <util.h> #include <common_bench/util.h>
#include "ROOT/RDataFrame.hxx" #include "ROOT/RDataFrame.hxx"
#include <cmath> #include <cmath>
...@@ -150,7 +150,7 @@ int dis_electrons(const std::string& config_name) ...@@ -150,7 +150,7 @@ int dis_electrons(const std::string& config_name)
// create our test definition // create our test definition
// test_tag // test_tag
eic::util::Test dis_Q2_resolution{ common_bench::Test dis_Q2_resolution{
{{"name", fmt::format("{}_Q2_resolution", test_tag)}, {{"name", fmt::format("{}_Q2_resolution", test_tag)},
{"title", "DIS Q2 resolution"}, {"title", "DIS Q2 resolution"},
{"description", {"description",
...@@ -290,7 +290,7 @@ int dis_electrons(const std::string& config_name) ...@@ -290,7 +290,7 @@ int dis_electrons(const std::string& config_name)
c.Print(fmt::format("{}momentum.png", output_prefix).c_str()); c.Print(fmt::format("{}momentum.png", output_prefix).c_str());
} }
eic::util::write_test({dis_Q2_resolution}, fmt::format("{}dis_electrons.json", output_prefix)); common_bench::write_test({dis_Q2_resolution}, fmt::format("{}dis_electrons.json", output_prefix));
return 0; return 0;
} }
#include "dvmp.h" #include "dvmp.h"
#include "plot.h" #include "plot.h"
#include <benchmark.h> #include <common_bench/benchmark.h>
#include <mt.h> #include <common_bench/mt.h>
#include <util.h> #include <common_bench/util.h>
#include <ROOT/RDataFrame.hxx> #include <ROOT/RDataFrame.hxx>
#include <cmath> #include <cmath>
...@@ -44,7 +44,7 @@ int vm_invar(const std::string& config_name) ...@@ -44,7 +44,7 @@ int vm_invar(const std::string& config_name)
// create our test definition // create our test definition
// test_tag // test_tag
eic::util::Test Q2_resolution_test{ common_bench::Test Q2_resolution_test{
{{"name", fmt::format("{}_Q2_resolution", test_tag)}, {{"name", fmt::format("{}_Q2_resolution", test_tag)},
{"title", {"title",
fmt::format("Q^2 Resolution for {} -> {} events with {}", vm_name, decay_name, detector)}, fmt::format("Q^2 Resolution for {} -> {} events with {}", vm_name, decay_name, detector)},
...@@ -238,7 +238,7 @@ int vm_invar(const std::string& config_name) ...@@ -238,7 +238,7 @@ int vm_invar(const std::string& config_name)
Q2_resolution_test.error(-1); Q2_resolution_test.error(-1);
// write out our test data // write out our test data
eic::util::write_test(Q2_resolution_test, fmt::format("{}invar.json", output_prefix)); common_bench::write_test(Q2_resolution_test, fmt::format("{}invar.json", output_prefix));
// That's all! // That's all!
return 0; return 0;
......
#include "dvmp.h" #include "dvmp.h"
#include "plot.h" #include "plot.h"
#include <benchmark.h> #include <common_bench/benchmark.h>
#include <mt.h> #include <common_bench/mt.h>
#include <util.h> #include <common_bench/util.h>
#include <ROOT/RDataFrame.hxx> #include <ROOT/RDataFrame.hxx>
#include <cmath> #include <cmath>
...@@ -61,7 +61,7 @@ int vm_mass(const std::string& config_name) ...@@ -61,7 +61,7 @@ int vm_mass(const std::string& config_name)
// create our test definition // create our test definition
// test_tag // test_tag
eic::util::Test mass_resolution_test{ common_bench::Test mass_resolution_test{
{{"name", fmt::format("{}_mass_resolution", test_tag, vm_name, decay_name)}, {{"name", fmt::format("{}_mass_resolution", test_tag, vm_name, decay_name)},
{"title", fmt::format("{} Invariant Mass Resolution for {} -> {} with {}", vm_name, vm_name, {"title", fmt::format("{} Invariant Mass Resolution for {} -> {} with {}", vm_name, vm_name,
decay_name, detector)}, decay_name, detector)},
...@@ -281,7 +281,7 @@ int vm_mass(const std::string& config_name) ...@@ -281,7 +281,7 @@ int vm_mass(const std::string& config_name)
// write out our test data // write out our test data
eic::util::write_test(mass_resolution_test, fmt::format("{}mass.json", output_prefix)); common_bench::write_test(mass_resolution_test, fmt::format("{}mass.json", output_prefix));
// That's all! // That's all!
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment