6 #include <nlohmann/json.hpp>
15 result.name = setting[
"allvars"].get<std::vector<std::string>>();
16 result.alias =
static_cast<std::string
>(setting[
"alias"]);
17 result.type =
static_cast<std::string
>(setting[
"type"]);
18 result.path =
static_cast<std::string
>(setting[
"path"]);
19 result.title =
static_cast<std::string
>(setting[
"title"]);
20 result.weight =
static_cast<std::string
>(setting[
"weight"]);
21 result.cutMask =
static_cast<std::string
>(setting[
"cutMask"]);
23 result.convention =
static_cast<std::string
>(setting[
"convention"]);
25 if (
offline != std::string::npos) {
27 std::string durationString =
result.convention.substr(
offline);
28 if (durationString.find(
"run") != std::string::npos) {
30 }
else if (durationString.find(
"lowStat") != std::string::npos) {
40 result.Sumw2 = setting[
"Sumw2"];
41 result.kLBNHistoryDepth = setting[
"kLBNHistoryDepth"];
42 result.kAddBinsDynamically = setting[
"kAddBinsDynamically"];
43 result.kRebinAxes = setting[
"kRebinAxes"];
44 result.kCanRebin = setting[
"kCanRebin"];
45 result.kVec = setting[
"kVec"];
46 result.kVecUO = setting[
"kVecUO"];
47 result.kCumulative = setting[
"kCumulative"];
48 result.kLive = setting[
"kLive"];
49 result.kAlwaysCreate = setting[
"kAlwaysCreate"];
51 result.xvar =
static_cast<std::string
>(setting[
"xvar"]);
52 result.xbins = setting[
"xbins"];
53 result.xmin = setting[
"xmin"];
54 result.xmax = setting[
"xmax"];
55 result.xlabels = setting[
"xlabels"].get<std::vector<std::string>>();
56 result.xarray = setting[
"xarray"].get<std::vector<double>>();
58 result.yvar =
static_cast<std::string
>(setting[
"yvar"]);
59 result.ybins = setting[
"ybins"];
60 result.ymin = setting[
"ymin"];
61 result.ymax = setting[
"ymax"];
62 result.ylabels = setting[
"ylabels"].get<std::vector<std::string>>();
63 result.yarray = setting[
"yarray"].get<std::vector<double>>();
65 result.zvar =
static_cast<std::string
>(setting[
"zvar"]);
66 result.zbins = setting[
"zbins"];
67 result.zmin = setting[
"zmin"];
68 result.zmax = setting[
"zmax"];
69 result.zlabels = setting[
"zlabels"].get<std::vector<std::string>>();
71 result.merge =
static_cast<std::string
>(setting[
"merge"]);
73 result.treeDef =
static_cast<std::string
>(setting[
"treeDef"]);