Skip to main content

Stransverse mass computation as a numpy ufunc.

Project description

mt2

https://img.shields.io/pypi/v/mt2.svg https://travis-ci.org/tpgillam/mt2.svg?branch=master

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mt2-0.1.5.tar.gz (16.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page