rivet is hosted by Hepforge, IPPP Durham
Rivet::mT2 Namespace Reference

Functions

double mT2 (const FourMomentum &a, const FourMomentum &b, const FourMomentum &pTmiss, double invisiblesMass)
 Convenience wrapper for the mT2 calculator of Cheng/Han.

Function Documentation

double mT2 ( const FourMomentum &  a,
const FourMomentum &  b,
const FourMomentum &  pTmiss,
double  invisiblesMass 
)

Convenience wrapper for the mT2 calculator of Cheng/Han.

(arXiv:0810.5178). Could be adapted for other backends in future.

Definition at line 9 of file RivetMT2.cc.

    {
      mt2_bisect::mt2 mt2_event;
      
      double unused = -999.999;
      
      double pa[3]    = { 0.0, a.x(), a.y() };
      double pb[3]    = { 0.0, b.x(), b.y() };
      double pmiss[3] = { unused, pTmiss.x(), pTmiss.y() };
      
      mt2_event.set_momenta( pa, pb, pmiss );
      mt2_event.set_mn( invisiblesMass );
      
      return mt2_event.get_mt2();
    }