{"library":"mt2","title":"mt2 - Stransverse Mass Computation as a NumPy UFunc","description":"mt2 provides a fast, numerically stable computation of the stransverse mass (M_T2) as a NumPy universal function (ufunc). It is commonly used in high-energy physics for SUSY searches and dilepton event analysis. Current version: 1.3.1, with release cadence approximately every 3-4 months. Requires Python >=3.9.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mt2"],"cli":null},"imports":["import mt2"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import numpy as np\nimport mt2\n\n# Define transverse momenta and masses\npa = np.array([100.0, 50.0, 0.0])  # (px, py, m) for visible particle a\npb = np.array([80.0, -30.0, 0.0]) # (px, py, m) for visible particle b\npt_miss = np.array([20.0, 10.0])  # missing transverse momentum (px, py)\nm_invis = 0.0  # mass of the invisible particle\n\n# Compute M_T2\nresult = mt2.mt2(pa, pb, pt_miss, m_invis)\nprint(f\"M_T2 = {result:.2f}\")","lang":"python","description":"Compute the stransverse mass for a single event.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}