aboutsummaryrefslogtreecommitdiff
path: root/utils/submit-grid-jobs
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-01-20 11:35:52 -0600
committertlatorre <tlatorre@uchicago.edu>2020-01-20 11:35:52 -0600
commitdba25e918c13fcadd8859cb16e236911bb935780 (patch)
tree1b6d31ce59ab9b322fbe5488786c02d6763ca057 /utils/submit-grid-jobs
parente2c312637edc755e9e782a8dda220a0f674a6722 (diff)
downloadsddm-dba25e918c13fcadd8859cb16e236911bb935780.tar.gz
sddm-dba25e918c13fcadd8859cb16e236911bb935780.tar.bz2
sddm-dba25e918c13fcadd8859cb16e236911bb935780.zip
update plot-energy to plot energy bias and resolution for stopping muons
To select stopping muons we simply look for the muons before a Michel event. The muon distance is calculated by first projecting the muon fit back to the PSUP along the fitted direction and then taking the distance between this point and the fitted position of the Michel event. I then calculate the expected kinetic energy of the muon by using the muon lookup tables of the CSDA range to convert the distance to an energy. I also changed a few other things like changing as_index=False -> group_keys=False when grouping events. The reason for this is just that if we do this we don't have to reset the index and drop the new index after calling apply(). I also fixed a small bug I had introduced recently where I selected only prompt events before finding the michel events and atmospheric events. This commit updates the plot-energy script to plot the energy bias and resolution for stopping muons by computing the expected
Diffstat (limited to 'utils/submit-grid-jobs')
0 files changed, 0 insertions, 0 deletions