29 defineParameter(
"InputWidth", 2 );
30 defineParameter(
"OutputWidth", 2 );
47 TCS_EXCEPTION(
"MET sort alg expects exactly single MET TOB, got " << input.size());
51 int missingET = quadraticSumBW(mets[0].Ex(), mets[0].Ey());
55 output.push_back(
GenericTOB( missingET, 0, metphi ) );
64 TCS_EXCEPTION(
"MET sort alg expects exactly single MET TOB, got " << input.size());
68 int missingET = sqrt(mets[0].Ex()*mets[0].Ex() + mets[0].Ey() * mets[0].Ey());
72 int metphi =
round(10*atan2(mets[0].Ey(),mets[0].Ex()));
77 output.push_back(
GenericTOB( missingET, 0, metphi ) );