Skip to content
Snippets Groups Projects
Commit ef4e06db authored by Marshall Scott's avatar Marshall Scott
Browse files

testing tests

parent 3db28cfd
No related branches found
No related tags found
1 merge request!24Resolve "pi0 resolution for ECal barrel"
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
...@@ -182,13 +182,12 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -182,13 +182,12 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
double* res = hdE_rel->GetFunction("gaus")->GetParameters(); double* res = hdE_rel->GetFunction("gaus")->GetParameters();
//Pass/Fail //Pass/Fail
/*
if (res[2] <= resolutionTarget) { if (res[2] <= resolutionTarget) {
pion0_energy_resolution.pass(res[2]); pion0_energy_resolution.pass(res[2]);
} else { } else {
pion0_energy_resolution.fail(res[2]); pion0_energy_resolution.fail(res[2]);
} }
*/
//std::printf("Energy Resolution is %f\n", res[2]); //std::printf("Energy Resolution is %f\n", res[2]);
//Energy Resolution Histogram Plotting //Energy Resolution Histogram Plotting
...@@ -211,7 +210,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -211,7 +210,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
cdE_rel->SaveAs("results/emcal_barrel_pi0_dE_rel.png"); cdE_rel->SaveAs("results/emcal_barrel_pi0_dE_rel.png");
cdE_rel->SaveAs("results/emcal_barrel_pi0_dE_rel.pdf"); cdE_rel->SaveAs("results/emcal_barrel_pi0_dE_rel.pdf");
//eic::util::write_test({pion0_energy_resolution}, fmt::format("{}_pions.json", detector)); eic::util::write_test({pion0_energy_resolution}, fmt::format("{}_pions.json", detector));
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment