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

WIP: debug - hist def 01

parent 09a3a9aa
No related branches found
No related tags found
1 merge request!42Add y, Q2, x, t resolution tests
...@@ -148,16 +148,15 @@ int vm_invar(const std::string& config_name) ...@@ -148,16 +148,15 @@ int vm_invar(const std::string& config_name)
TH1D* hptr_tmp = &(*h_tmp); TH1D* hptr_tmp = &(*h_tmp);
h_Var1D[i][j] = (TH1D*)hptr_tmp->Clone(histName[i][j].c_str()); h_Var1D[i][j] = (TH1D*)hptr_tmp->Clone(histName[i][j].c_str());
delete hptr_tmp; delete hptr_tmp;
TCanvas* ctest = new TCanvas("ctest", "ctest", 800,600);
h_Var1D[i][j]->Draw("hist");
ctest->Print(fmt::format("{}{}{}test.png", output_prefix).c_str(), i, j);
delete ctest;
} }
} }
double nEvents = h_Var1D[0][0]->Integral(0, -1);
TCanvas* ctest = new TCanvas("ctest", "ctest", 600,900); //double nEvents = h_Var1D[0][0]->Integral(0, -1);
ctest->Divide(1,2,0.001,0.001);
ctest->cd(1);
h_Var1D[0][0]->Draw("hist");
ctest->cd(2);
h_Var1D[0][1]->Draw("hist");
ctest->Print(fmt::format("{}test.png", output_prefix).c_str());
//==============================hist def============================== //==============================hist def==============================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment