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

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

parent a3b86166
No related branches found
No related tags found
1 merge request!42Add y, Q2, x, t resolution tests
...@@ -151,7 +151,7 @@ int vm_invar(const std::string& config_name) ...@@ -151,7 +151,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({histName[i].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({histName[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)->Clone(); h_sim[i] = (&(*h_tmp))->Clone();
} }
TCanvas* ctest = new TCanvas("test", "test", 800, 800); TCanvas* ctest = new TCanvas("test", "test", 800, 800);
h_sim[2]->Draw("hist"); h_sim[2]->Draw("hist");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment