Stransverse mass computation as a numpy ufunc.
Project description
mt2
MT2, Asymmetric MT2, and the Stransverse Mass
This package may be used to evaluate MT2 in all its variants.
Specifically, it provides a numpy ufunc interface to the bisection algorithm and C++ implementation of http://arxiv.org/abs/1411.4312. The variable MT2 itself is described in http://arxiv.org/abs/hep-ph/9906349. Related information may be found in papers relating to MT2 linked from https://www.hep.phy.cam.ac.uk/~lester/mt2/index.html.
License
Please cite:
http://arxiv.org/abs/hep-ph/9906349, if you use MT2 in an academic paper, and
http://arxiv.org/abs/1411.4312 if you use this particular calculator.
Features
Example usage
from mt2 import mt2 pxA = 410 pyA = 20 mVisA = 100 chiA = 100 pxB = -210 pyB = -300 mVisB = 150 chiB = 100 pxMiss = -200 pyMiss = 280 val = mt2(mVisA, pxA, pyA, mVisB, pxB, pyB, pxMiss, pyMiss, chiA, chiB) print("Expected mT2 = 412.628. Computed mT2 = ", val)
History
0.1.5 (2021-02-10)
Migrate to preliminary v7 of C file
Disable copyright message printing on run
Move away from pybind11 in favour of raw numpy C API
0.1.4 (2021-02-09)
Actually fix the build, maybe
0.1.3 (2021-02-09)
Fix the build
0.1.2 (2021-02-09)
Attempt C++ build
0.1.1 (2021-02-09)
Trivial change to test updating package on PyPI.
0.1.0 (2021-02-09)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.