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)

Function Documentation

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

Definition at line 9 of file RivetMT2.cc.

References mt2::get_mt2(), mt2::set_mn(), mt2::set_momenta(), FourVector::x(), and FourVector::y().

Referenced by CDF_2008_S7541902::analyze(), ATLAS_2012_I1126136::analyze(), ATLAS_2012_I1186556::analyze(), and ATLAS_2011_S8983313::analyze().

    {
      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();
    }