Skip to content
Snippets Groups Projects
Commit 126b0234 authored by Zachary W Sweger's avatar Zachary W Sweger
Browse files

minbineff and maxbineff to ints

parent 40b79e72
No related branches found
No related tags found
No related merge requests found
Pipeline #103909 passed
...@@ -173,8 +173,8 @@ void plot_rho_physics_benchmark(TString filename="./sim_output/plot_combined.roo ...@@ -173,8 +173,8 @@ void plot_rho_physics_benchmark(TString filename="./sim_output/plot_combined.roo
h_VM_mass_MC_etacut->Draw("HIST E same"); h_VM_mass_MC_etacut->Draw("HIST E same");
h_VM_mass_REC_etacut->Draw("HIST E same"); h_VM_mass_REC_etacut->Draw("HIST E same");
double minbineff = h_VM_mass_MC_etacut->FindBin(0.6); int minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
double maxbineff = h_VM_mass_MC_etacut->FindBin(1.0); int maxbineff = h_VM_mass_MC_etacut->FindBin(1.0);
double thiseff = 100.0*(1.0*h_VM_mass_REC_etacut->Integral(minbineff,maxbineff))/(1.0*h_VM_mass_MC_etacut->Integral(minbineff,maxbineff)); double thiseff = 100.0*(1.0*h_VM_mass_REC_etacut->Integral(minbineff,maxbineff))/(1.0*h_VM_mass_MC_etacut->Integral(minbineff,maxbineff));
r42->Draw("same"); r42->Draw("same");
...@@ -409,8 +409,8 @@ void plot_rho_physics_benchmark(TString filename="./sim_output/plot_combined.roo ...@@ -409,8 +409,8 @@ void plot_rho_physics_benchmark(TString filename="./sim_output/plot_combined.roo
TString figure3name = figure_directory+"/benchmark_rho_efficiencies.pdf"; TString figure3name = figure_directory+"/benchmark_rho_efficiencies.pdf";
c5->Print(figure3name); c5->Print(figure3name);
int minbineff = h_VM_mass_MC_etacut->FindBin(0.6); minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
int maxbineff = h_VM_mass_MC_etacut->FindBin(1.0); maxbineff = h_VM_mass_MC_etacut->FindBin(1.0);
double reconstuctionEfficiency = (1.0*h_VM_mass_REC_etacut->Integral(minbineff,maxbineff))/(1.0*h_VM_mass_MC_etacut->Integral(minbineff,maxbineff)); double reconstuctionEfficiency = (1.0*h_VM_mass_REC_etacut->Integral(minbineff,maxbineff))/(1.0*h_VM_mass_MC_etacut->Integral(minbineff,maxbineff));
//set the benchmark status: //set the benchmark status:
setbenchstatus(reconstuctionEfficiency); setbenchstatus(reconstuctionEfficiency);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment