Skip to content

Commit

Permalink
minbineff and maxbineff to ints
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary W Sweger committed Oct 2, 2024
1 parent 40b79e7 commit 126b023
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmarks/your_benchmark/macros/plot_rho_physics_benchmark.C
Original file line number Diff line number Diff line change
Expand Up @@ -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_REC_etacut->Draw("HIST E same");

double minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
double maxbineff = h_VM_mass_MC_etacut->FindBin(1.0);
int minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
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));

r42->Draw("same");
Expand Down Expand Up @@ -409,8 +409,8 @@ void plot_rho_physics_benchmark(TString filename="./sim_output/plot_combined.roo
TString figure3name = figure_directory+"/benchmark_rho_efficiencies.pdf";
c5->Print(figure3name);

int minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
int maxbineff = h_VM_mass_MC_etacut->FindBin(1.0);
minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
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));
//set the benchmark status:
setbenchstatus(reconstuctionEfficiency);
Expand Down

0 comments on commit 126b023

Please sign in to comment.