tpgillam / mt2

Stransverse mass computation, compatible with numpy.
MIT License
4 stars 3 forks source link

Add scale invariance and bounds checking #44

Closed Rupt closed 3 years ago

Rupt commented 3 years ago

Teach mt2_bisect_impl to divide out the scale to give bigger dynamic range.

Add a check for negative bounds, which can be caused by nasty negative mass inputs.

Add tests for both of these changes.

Make the template float-compatible by changing a couple of literals.

Add some formatting and comments improvments.

Affects issues #42 #43