<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sddm/utils/plot-muons, branch master</title>
<subtitle>Code for the self-destructing dark matter search in SNO</subtitle>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/'/>
<entry>
<title>don't print out ftp_r_michel since it's deleted</title>
<updated>2021-01-15T15:10:05+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2021-01-15T15:10:05+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=cc2460119d160ac22eaf94e0742089fdeae99dfc'/>
<id>cc2460119d160ac22eaf94e0742089fdeae99dfc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>get rid of nhit_thresh</title>
<updated>2021-01-04T19:03:03+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2021-01-04T19:03:03+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=3d13f8f409d412c6d2aa3447b81e29a1a3d7b2a7'/>
<id>3d13f8f409d412c6d2aa3447b81e29a1a3d7b2a7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cache results from get_events()</title>
<updated>2021-01-03T17:40:47+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2021-01-03T17:40:47+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=6fc97e22fa2a8cc48a96b2ce22c4d55a8fd2b80f'/>
<id>6fc97e22fa2a8cc48a96b2ce22c4d55a8fd2b80f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>small fixes</title>
<updated>2020-11-17T13:58:41+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-11-17T13:58:41+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=9ddb79bb708b0581462ccacb360df5cd77b2d150'/>
<id>9ddb79bb708b0581462ccacb360df5cd77b2d150</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>don't apply nhit trigger cut to MC</title>
<updated>2020-11-01T17:12:14+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-11-01T17:12:14+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=d36ee0ae1209e124f794db103b2258a73df20c89'/>
<id>d36ee0ae1209e124f794db103b2258a73df20c89</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>major updates to the chi2 analysis</title>
<updated>2020-10-05T19:36:40+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-10-05T19:36:40+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=d48484c29d09a944de6f9251a3c659e76279464e'/>
<id>d48484c29d09a944de6f9251a3c659e76279464e</id>
<content type='text'>
This commit fixes the chi2 analysis so that it is no longer biased.
Previously, the chi2 analysis pull plots showed a consistent bias. At
first, I thought this was due to the fact that the posterior wasn't
gaussian, but even after switching to percentile plots based on the
algorithm outlined in "Validating Bayesian Inference Algorithms with
Simulation-Based Calibration", I was still seeing a bias. I finally
tracked it down to the fact that I was applying the energy scale
parameters to the data instead of the Monte Carlo. Therefore, in this
commit I update the posterior to now apply the energy scale parameters
to the Monte Carlo instead of the data. This has the slight disadvantage
that the final histograms will be binned in the biased energy, but
that's not really a big deal.

In addition, this commit contains several other updates:

- switch to plotting percentile plots based on the algorithm in
  "Validating Bayesian Inference Algorithms with Simulation-Based
  Calibration" instead of pull plots
- apply both the energy scale and resolution at the individual particle
  level, i.e. there is no longer an energy resolution term for electron
  + muon fits
- separate pull plots and coverage plots. Previously I was making both
  the p-value coverage plots and the pull plots at the same time.
  However, the pull plots shouldn't have anything to do with the GENIE
  weights whereas the p-value coverage plots should draw samples
  weighted by the GENIE weights. In addition, for the pull plots we draw
  new truth parameters on every iteration whereas for the p-value
  coverage plots we only draw them once.
- switch to using KDEMove() for the MCMC since I think it samples
  multimodal distributions a lot better than the default emcee move.
- I now correct for the reconstruction energy bias in plot-michel and
  plot-muons
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes the chi2 analysis so that it is no longer biased.
Previously, the chi2 analysis pull plots showed a consistent bias. At
first, I thought this was due to the fact that the posterior wasn't
gaussian, but even after switching to percentile plots based on the
algorithm outlined in "Validating Bayesian Inference Algorithms with
Simulation-Based Calibration", I was still seeing a bias. I finally
tracked it down to the fact that I was applying the energy scale
parameters to the data instead of the Monte Carlo. Therefore, in this
commit I update the posterior to now apply the energy scale parameters
to the Monte Carlo instead of the data. This has the slight disadvantage
that the final histograms will be binned in the biased energy, but
that's not really a big deal.

In addition, this commit contains several other updates:

- switch to plotting percentile plots based on the algorithm in
  "Validating Bayesian Inference Algorithms with Simulation-Based
  Calibration" instead of pull plots
- apply both the energy scale and resolution at the individual particle
  level, i.e. there is no longer an energy resolution term for electron
  + muon fits
- separate pull plots and coverage plots. Previously I was making both
  the p-value coverage plots and the pull plots at the same time.
  However, the pull plots shouldn't have anything to do with the GENIE
  weights whereas the p-value coverage plots should draw samples
  weighted by the GENIE weights. In addition, for the pull plots we draw
  new truth parameters on every iteration whereas for the p-value
  coverage plots we only draw them once.
- switch to using KDEMove() for the MCMC since I think it samples
  multimodal distributions a lot better than the default emcee move.
- I now correct for the reconstruction energy bias in plot-michel and
  plot-muons
</pre>
</div>
</content>
</entry>
<entry>
<title>update plot-muons to plot bias and resolution with fmt='o'</title>
<updated>2020-09-16T15:37:23+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-09-16T15:37:23+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=1cc5fc8014ab75ac55672aa962228ac54ae8d9db'/>
<id>1cc5fc8014ab75ac55672aa962228ac54ae8d9db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>update python scripts to not call plt.show() when run with --save</title>
<updated>2020-09-07T16:35:10+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-09-07T16:35:10+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=fd231f3d5472ff43044ee57ff3ac5fb37f85da5b'/>
<id>fd231f3d5472ff43044ee57ff3ac5fb37f85da5b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix best fit line by changing axhline -&gt; hlines</title>
<updated>2020-09-06T16:51:06+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-09-06T16:51:06+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=0fe166726f6b93ab51ee7190596670930363068d'/>
<id>0fe166726f6b93ab51ee7190596670930363068d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>update plot-muons to fit energy scale and resolution difference</title>
<updated>2020-09-06T16:03:39+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-09-06T16:03:39+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=34d79179a967c3600aefeaa06fd368031c115ee9'/>
<id>34d79179a967c3600aefeaa06fd368031c115ee9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
