SNEWS2 / snewpdag

SNEWS2 alert calculations
BSD 3-Clause "New" or "Revised" License
1 stars 13 forks source link

Read ndof from payload for Chi2CL and Chi2Prob #90

Closed tsengj10 closed 1 year ago

tsengj10 commented 1 year ago

Changed Chi2CL and Chi2Prob plugins to read ndof from the payload (instead of hard-wired 2, which was a kludge). Also removed subtraction of minimum value, since that's an independent operation and in any case is usually done at the previous step.

tsengj10 commented 1 year ago

Added a bugfix in TimeDistSource: the input histogram typically begins with a bunch of bins with no neutrino flux, and may end with such as well. TimeDistSource eliminated those bins in the contents array, but not the array of bin edges. The change fixes that bug.