RivetMT2.cc
Go to the documentation of this file.00001 #include "Rivet/Tools/RivetMT2.hh"
00002 #include "Rivet/Math/Vector4.hh"
00003 #include "mt2_bisect.hh"
00004
00005
00006 namespace Rivet {
00007 namespace mT2 {
00008
00009 double mT2(const FourMomentum & a,
00010 const FourMomentum & b,
00011 const FourMomentum & pTmiss,
00012 double invisiblesMass)
00013 {
00014 mt2_bisect::mt2 mt2_event;
00015
00016 double unused = -999.999;
00017
00018 double pa[3] = { 0.0, a.x(), a.y() };
00019 double pb[3] = { 0.0, b.x(), b.y() };
00020 double pmiss[3] = { unused, pTmiss.x(), pTmiss.y() };
00021
00022 mt2_event.set_momenta( pa, pb, pmiss );
00023 mt2_event.set_mn( invisiblesMass );
00024
00025 return mt2_event.get_mt2();
00026 }
00027
00028 }
00029 }