Skip to content

Commit d264d9e

Browse files
add bin_edges to example
1 parent 1616a30 commit d264d9e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- name: "pxpy"
1515
x_axis:
1616
field: "pxpy"
17-
bins: [100, -3, 3]
17+
bin_edges: [-3, -1.5, -0.5, 0, 0.5, 1.5, 3]
1818
2D:
1919
- name: "sim_pT_y"
2020
x_axis: &sim_y

src/YamlReader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class YamlReader {
2323
return {title, task->GetVariable(field),
2424
{static_cast<Int_t>(bins.at(0)), bins.at(1), bins.at(2)}};
2525
}
26-
else if(yaml_axis["bins_edges"]){
27-
auto bins = yaml_axis["bins_edges"].as<std::vector<double>>();
26+
else if(yaml_axis["bin_edges"]){
27+
auto bins = yaml_axis["bin_edges"].as<std::vector<double>>();
2828
return {title, task->GetVariable(field),
2929
TAxis(bins.size()-1, &(bins[0]))};
3030
}

0 commit comments

Comments
 (0)