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

WIP: add 2d histograms def - pass ptr

parent f5994501
No related branches found
No related tags found
1 merge request!42Add y, Q2, x, t resolution tests
......@@ -153,9 +153,9 @@ int vm_invar(const std::string& config_name)
}else{
histTitles[i][4] = ";" + VarName[i] + "_{sim};" + VarName[i] + "_{rec};#";
}
/*auto h_tmp = d_im.Histo2D({fmt::format("{}_tmp", histName[i][4]).c_str(), histTitles[i][4].c_str(), 50, range_l[i][0], range_h[i][0], 50, range_l[i][0], range_h[i][0]}, RawhistName[i][0].c_str(), RawhistName[i][1].c_str());
auto h_tmp = d_im.Histo2D({fmt::format("{}_tmp", histName[i][4]).c_str(), histTitles[i][4].c_str(), 50, range_l[i][0], range_h[i][0], 50, range_l[i][0], range_h[i][0]}, RawhistName[i][0].c_str(), RawhistName[i][1].c_str());
auto& htmp = *h_tmp;
h_Var2D[i] = (TH2D*)htmp.Clone(histName[i][4].c_str());*/
h_Var2D[i] = (TH2D*)htmp.Clone(histName[i][4].c_str());
}
double nEvents = h_Var1D[0][0]->Integral(0, -1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment