DUNE / dune-tms

DUNE ND Temporary Muon Spectrometer
0 stars 2 forks source link

Feature/mdolce muon efficiency #154

Closed mdolce8 closed 1 month ago

mdolce8 commented 2 months ago

There was interest in seeing what the truth efficiencies are for the True Signed Distance distributions for differing magnetic fields. These two scripts do that; the scripts to create the Efficiency vs. Muon KE plots for muons (and mu+) for different B fields.

The first script, sign_distance_efficiency_vs_muon_true_ke.py creates reads in a TMS Reco file and actually does the "calculation". The output is a ROOT file and pngs and pdfs (see first image below, of red and blue hists). This

The second script plot_multiple_truth_signed_distances.py doesn't do any "work". It reads in the ROOT files made from the above script and plots them on the same axis using uproot. The result is a single plot of efficiencies for different B fields. So in the case here, TMS Reco files were read in for 0 T, 1 T, and 2 T fields. The output of this script is the second plot below with three curves on it.

This was presented at the Santa Fe meeting.

dune-tms_sd_eff_vs_mu_true_ke_lar_ke

plot_multiple_truth_efficiencies_muon_tms