Commit fdaa2a79 authored by silvan's avatar silvan Committed by Sebastian Liebschner

Fix order counting in EXTAMP

(cherry picked from commit 169a9770575576e9af96ac877a82bf51a1088a39)
parent b653d3a0
......@@ -53,6 +53,9 @@ Tree_ME2_Base* ATOOLS::Getter<Tree_ME2_Base,
OpenLoops_Born>::
operator()(const External_ME_Args &args) const
{
if (!args.m_source.empty() && args.m_source != "OpenLoops")
return NULL;
OpenLoops_Interface::SetParameter("coupling_qcd_0", (int) args.m_orders[0]);
OpenLoops_Interface::SetParameter("coupling_qcd_1", 0);
OpenLoops_Interface::SetParameter("coupling_ew_0" , (int) args.m_orders[1]);
......
......@@ -63,13 +63,14 @@ PHASIC::Spin_Color_Correlated_ME2 *ATOOLS::Getter
operator()(const PHASIC::External_ME_Args& args) const
{
DEBUG_FUNC(this);
OpenLoops_Interface::SetParameter("coupling_qcd_0", -1);
OpenLoops_Interface::SetParameter("coupling_qcd_1", -1);
OpenLoops_Interface::SetParameter("coupling_ew_0", -1);
OpenLoops_Interface::SetParameter("coupling_ew_1", -1);
if (args.m_source != "" && args.m_source != "OpenLoops")
if (!args.m_source.empty() && args.m_source != "OpenLoops")
return NULL;
OpenLoops_Interface::SetParameter("coupling_qcd_0", (int) args.m_orders[0]);
OpenLoops_Interface::SetParameter("coupling_qcd_1", 0);
OpenLoops_Interface::SetParameter("coupling_ew_0" , (int) args.m_orders[1]);
OpenLoops_Interface::SetParameter("coupling_ew_1" , 0);
AmplitudeType types[2] = {Loop2, Tree};
for (size_t i=0; i<2; ++i) {
......
......@@ -116,7 +116,7 @@ CS_Dipole::CS_Dipole(const Dipole_Info& di)
/* TODO: pass orders correctly!! */
PHASIC::External_ME_Args args(ATOOLS::Flavour_Vector(Flavours().begin(),Flavours().begin()+2),
ATOOLS::Flavour_Vector(Flavours().begin()+2, Flavours().end()),
std::vector<double>());
{-1,-1});
p_corr_me = PHASIC::Spin_Color_Correlated_ME2::GetME2(args);
if(!p_corr_me) THROW(fatal_error, "Could not find correlated ME for this process.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment