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

WIP: add 2d histograms def 2

parent ff35eae9
Branches
No related tags found
1 merge request!42Add y, Q2, x, t resolution tests
......@@ -147,7 +147,7 @@ int vm_invar(const std::string& config_name)
h_Var1D[i][j] = (TH1D*)htmp.Clone(histName[i][j].c_str());
}
//2d histogram
histName[i][4] = "h_" + VarName[i] + "_" + VarCate[4];
/*histName[i][4] = "h_" + VarName[i] + "_" + VarCate[4];
if(i==1){
histTitles[i][4] = ";Q^{2}_{sim};Q^{2}_{rec};#";
}else{
......@@ -155,7 +155,7 @@ int vm_invar(const std::string& config_name)
}
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