#include "GoSam_Virtual.H" #include "AddOns/GoSam/GoSam_Interface.H" #include "ATOOLS/Org/Run_Parameter.H" #include "ATOOLS/Org/Exception.H" #include "ATOOLS/Org/MyStrStream.H" #include "ATOOLS/Org/Library_Loader.H" #include "ATOOLS/Math/Poincare.H" using namespace GoSam; using namespace PHASIC; using namespace ATOOLS; using namespace std; GoSam_Virtual::GoSam_Virtual(const Process_Info& pi, const Flavour_Vector& flavs, int gs_id) : Virtual_ME2_Base(pi, flavs), m_gs_id(gs_id), m_ismapped(false), m_modebackup(m_mode) { DEBUG_FUNC(""); msg_Debugging()< "<Start(); } GoSam_Interface::EvaluateLoop(m_gs_id, momenta, m_mur2, m_born, m_res, m_accu); if (msg_LevelIsDebugging()) { timing->Stop(); PRINT_INFO(momenta[2][0]<<" "<:: operator()(const PHASIC::Process_Info &pi) const { DEBUG_FUNC(pi); if (pi.m_loopgenerator!="GoSam") return NULL; if (!(pi.m_fi.m_nlotype==nlo_type::loop)) return NULL; DEBUG_VAR(pi.m_maxcpl[0]-pi.m_fi.m_nlocpl[0]); DEBUG_VAR(pi.m_fi.m_nlocpl[0]); DEBUG_VAR(pi.m_maxcpl[1]-pi.m_fi.m_nlocpl[1]); DEBUG_VAR(pi.m_fi.m_nlocpl[1]); // GoSam_Interface::SetParameter // ("CouplingPower QCD Born", (int) pi.m_maxcpl[0]-pi.m_fi.m_nlocpl[0]); // GoSam_Interface::SetParameter // ("CouplingPower QCD Loop", (int) pi.m_fi.m_nlocpl[0]); // GoSam_Interface::SetParameter // ("CouplingPower QED Born", (int) pi.m_maxcpl[1]-pi.m_fi.m_nlocpl[1]); // GoSam_Interface::SetParameter // ("CouplingPower QED Loop", (int) pi.m_fi.m_nlocpl[1]); int id = GoSam_Interface::RegisterProcess(pi.m_ii, pi.m_fi); if (id>=0) { Flavour_Vector flavs = pi.ExtractFlavours(); return new GoSam_Virtual(pi, flavs, id); } else { return NULL; } }