Skip to content
Snippets Groups Projects
Commit 0a23fd13 authored by Ziyue Zhang's avatar Ziyue Zhang
Browse files

WIP: re-test factorizing out histogram definition with c_str() 6.7

parent b6a1d514
No related branches found
No related tags found
1 merge request!42Add y, Q2, x, t resolution tests
...@@ -150,7 +150,7 @@ int vm_invar(const std::string& config_name) ...@@ -150,7 +150,7 @@ int vm_invar(const std::string& config_name)
TH1D* h_sim[4]; TH1D* h_sim[4];
for(int i = 0 ; i < 4 ; i++){ for(int i = 0 ; i < 4 ; i++){
auto h_tmp = d_im.Histo1D({(VarName[i]+"test").c_str(), histTitle[i].c_str(), 50, hist_range_l[i], hist_range_h[i]}, RawHist[i].c_str()); //directly quote the string auto h_tmp = d_im.Histo1D({(fmt::format("{}_test", VarName[i])).c_str(), histTitle[i].c_str(), 50, hist_range_l[i], hist_range_h[i]}, RawHist[i].c_str()); //directly quote the string
h_sim[i] = &(*h_tmp); h_sim[i] = &(*h_tmp);
h_sim[i] = (TH1D*)h_sim[i]->Clone(); h_sim[i] = (TH1D*)h_sim[i]->Clone();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment