aboutsummaryrefslogtreecommitdiff
path: root/utils/plot-fit-results
AgeCommit message (Collapse)Author
2020-09-06update chi2 to correct for energy biastlatorre
This commit updates the chi2 script to correct for the energy bias of the reconstruction relative to Monte Carlo.
2020-05-11add setup_matplotlib function and switch to logarithmic binstlatorre
This commit contains the following small updates: - create a setup_matplotlib() function to set up matplotlib correctly depending on if we are saving the plots or just displaying them - change default font size to 12 when displaying plots - switch to using logarithmic bins in plot-energy - fix despine() function when x axis is logarithmic
2020-05-11update utils/ folder to make a python package called sddmtlatorre
This commit adds an sddm python package to the utils/ folder. This allows me to consolidate code used across all the various scripts. This package is now installed by default to /home/tlatorre/local/lib/python2.7/site-packages so you should add the following to your .bashrc file: export PYTHONPATH=$HOME/local/lib/python2.7/site-packages/:$PYTHONPATH before using the scripts installed to ~/local/bin.
2020-04-13update plot-fit-results script to be able to handle files with ↵tlatorre
multi-particle fits
2019-12-04update plot-fit-results to make nicer plotstlatorre
2019-12-02small fix to prevent an Exception when there is only one data pointtlatorre
2019-11-22update plot-fit-results to use median and iqr instead of mean and stdtlatorre
This commit updates plot-fit-results to use the median when plotting the energy and position bias and the interquartile range (times 1.35) when plotting the energy and position resolution. The reason is that single large outliers for higher energy muons were causing the energy bias and resolution to no longer represent the central part of the distribution well.
2019-07-12set ignore_index=True in pd.concat() since we don't care about the indextlatorre
2019-07-12fix a couple of bugs in plot-energytlatorre
This commit fixes two small bugs in the plotting scripts. First, after the HDF5 commit I wasn't correctly computing the particle ID string which I had been using before which was needed in order to plot things correctly. Second, I realized that the dataframe groupby function first() actually selects the first non-null column from each group! What I really wanted was the first row from each group, so all instances of .first() were updated to .nth(0). See https://stackoverflow.com/questions/20067636/pandas-dataframe-get-first-row-of-each-group.
2019-07-11switch from YAML output to HDF5 to speed things uptlatorre
2019-06-05try to import CLoader if possible since it's *much* fastertlatorre
2019-03-26update plotting scripts to handle case when there is no fittlatorre
2019-03-16add GPLv3 licensetlatorre
2019-01-15update zebra library to be able to use linkstlatorre
This commit updates the zebra library files zebra.{c,h} so that it's now possible to traverse the data structure using links! This was originally motivated by wanting to figure out which MC particles were generated from the MCGN bank (from which it's only possible to access the tracks and vertices using structural links). I've also added a new test to test-zebra which checks the consistency of all of the next/up/orig, structural, and reference links in a zebra file.
2018-11-30update plot-fit-results to handle masked arrays properlytlatorre
2018-11-25add a script to plot the fit results as a function of energytlatorre