Skip to content

Commit

Permalink
[nobm] regenerate nobm_gg_tt.sa after moving to sm-no_b_mass (without…
Browse files Browse the repository at this point in the history
… loop_)

This fixes madgraph5#696 for this process (COND and reglog are not needed - see madgraph5#697)
  • Loading branch information
valassi committed Jul 21, 2023
1 parent d9fb94d commit f045418
Show file tree
Hide file tree
Showing 12 changed files with 167 additions and 507 deletions.
237 changes: 55 additions & 182 deletions epochX/cudacpp/nobm_gg_tt.sa/CODEGEN_cudacpp_nobm_gg_tt_log.txt

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions epochX/cudacpp/nobm_gg_tt.sa/Cards/param_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
## ##
######################################################################

###################################
## INFORMATION FOR LOOP
###################################
Block loop
1 9.118800e+01 # MU_R

###################################
## INFORMATION FOR MASS
###################################
Expand Down Expand Up @@ -81,12 +75,3 @@ DECAY 15 0.000000e+00 # ta- : 0.0
DECAY 16 0.000000e+00 # vt : 0.0
DECAY 21 0.000000e+00 # g : 0.0
DECAY 22 0.000000e+00 # a : 0.0
#===========================================================
# QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)
#===========================================================

Block QNUMBERS 82 # gh
1 0 # 3 times electric charge
2 1 # number of spin states (2S+1)
3 8 # colour rep (1: singlet, 3: triplet, 8: octet)
4 1 # Particle/Antiparticle distinction (0=own anti)
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class MemoryAccessCouplingsBase //_AOSOAv1
friend class KernelAccessHelper<MemoryAccessCouplingsBase, false>;

// The number of couplings that dependent on the running alphas QCD in this specific process
static constexpr size_t ndcoup = Parameters_loop_sm_no_b_mass_dependentCouplings::ndcoup;
static constexpr size_t ndcoup = Parameters_sm_no_b_mass_dependentCouplings::ndcoup;

// The number of floating point components of a complex number
static constexpr int nx2 = mgOnGpu::nx2;
Expand Down
4 changes: 2 additions & 2 deletions epochX/cudacpp/nobm_gg_tt.sa/SubProcesses/MemoryBuffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "CPPProcess.h"
#include "CudaRuntime.h"
#include "Parameters_loop_sm_no_b_mass.h"
#include "Parameters_sm_no_b_mass.h"

#include <sstream>

Expand All @@ -33,7 +33,7 @@ namespace mg5amcCpu
// Process-dependent compile-time constants
static constexpr size_t nparf = CPPProcess::nparf;
static constexpr size_t npar = CPPProcess::npar;
static constexpr size_t ndcoup = Parameters_loop_sm_no_b_mass_dependentCouplings::ndcoup;
static constexpr size_t ndcoup = Parameters_sm_no_b_mass_dependentCouplings::ndcoup;
}

//--------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "mgOnGpuConfig.h"

#include "CudaRuntime.h"
#include "HelAmps_loop_sm_no_b_mass.h"
#include "HelAmps_sm_no_b_mass.h"
#include "MemoryAccessAmplitudes.h"
#include "MemoryAccessCouplings.h"
#include "MemoryAccessCouplingsFixed.h"
Expand Down Expand Up @@ -59,8 +59,8 @@ namespace mg5amcCpu
// [NB: I am currently unable to get the right value of nwf in CPPProcess.h - will hardcode it in CPPProcess.cc instead (#644)]
//using CPPProcess::nwf; // #wavefunctions = #external (npar) + #internal: e.g. 5 for e+ e- -> mu+ mu- (1 internal is gamma or Z)

using Parameters_loop_sm_no_b_mass_dependentCouplings::ndcoup; // #couplings that vary event by event (depend on running alphas QCD)
using Parameters_loop_sm_no_b_mass_independentCouplings::nicoup; // #couplings that are fixed for all events (do not depend on running alphas QCD)
using Parameters_sm_no_b_mass_dependentCouplings::ndcoup; // #couplings that vary event by event (depend on running alphas QCD)
using Parameters_sm_no_b_mass_independentCouplings::nicoup; // #couplings that are fixed for all events (do not depend on running alphas QCD)

// The number of colors
constexpr int ncolor = 2;
Expand All @@ -77,7 +77,7 @@ namespace mg5amcCpu
// However, physics parameters are user-defined through card files: use CUDA constant memory instead (issue #39)
// [NB if hardcoded parameters are used, it's better to define them here to avoid silent shadowing (issue #263)]
#ifdef MGONGPU_HARDCODE_PARAM
__device__ const fptype cIPD[2] = { (fptype)Parameters_loop_sm_no_b_mass::mdl_MT, (fptype)Parameters_loop_sm_no_b_mass::mdl_WT };
__device__ const fptype cIPD[2] = { (fptype)Parameters_sm_no_b_mass::mdl_MT, (fptype)Parameters_sm_no_b_mass::mdl_WT };
__device__ const fptype* cIPC = nullptr; // unused as nicoup=0
#else
#ifdef __CUDACC__
Expand Down Expand Up @@ -481,7 +481,7 @@ namespace mg5amcCpu
CPPProcess::initProc( const std::string& param_card_name )
{
// Instantiate the model class and set parameters that stay fixed during run
m_pars = Parameters_loop_sm_no_b_mass::getInstance();
m_pars = Parameters_sm_no_b_mass::getInstance();
SLHAReader slha( param_card_name, m_verbose );
m_pars->setIndependentParameters( slha );
m_pars->setIndependentCouplings();
Expand Down Expand Up @@ -520,16 +520,16 @@ namespace mg5amcCpu
// Use hardcoded physics parameters
if( m_verbose )
{
Parameters_loop_sm_no_b_mass::printIndependentParameters();
Parameters_loop_sm_no_b_mass::printIndependentCouplings();
//Parameters_loop_sm_no_b_mass::printDependentParameters(); // now computed event-by-event (running alphas #373)
//Parameters_loop_sm_no_b_mass::printDependentCouplings(); // now computed event-by-event (running alphas #373)
Parameters_sm_no_b_mass::printIndependentParameters();
Parameters_sm_no_b_mass::printIndependentCouplings();
//Parameters_sm_no_b_mass::printDependentParameters(); // now computed event-by-event (running alphas #373)
//Parameters_sm_no_b_mass::printDependentCouplings(); // now computed event-by-event (running alphas #373)
}
// Set external particle masses for this matrix element
m_masses.push_back( Parameters_loop_sm_no_b_mass::ZERO );
m_masses.push_back( Parameters_loop_sm_no_b_mass::ZERO );
m_masses.push_back( Parameters_loop_sm_no_b_mass::mdl_MT );
m_masses.push_back( Parameters_loop_sm_no_b_mass::mdl_MT );
m_masses.push_back( Parameters_sm_no_b_mass::ZERO );
m_masses.push_back( Parameters_sm_no_b_mass::ZERO );
m_masses.push_back( Parameters_sm_no_b_mass::mdl_MT );
m_masses.push_back( Parameters_sm_no_b_mass::mdl_MT );
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
// Visit launchpad.net/madgraph5 and amcatnlo.web.cern.ch
//==========================================================================

#ifndef MG5_Sigma_loop_sm_no_b_mass_gg_ttx_H
#define MG5_Sigma_loop_sm_no_b_mass_gg_ttx_H 1
#ifndef MG5_Sigma_sm_no_b_mass_gg_ttx_H
#define MG5_Sigma_sm_no_b_mass_gg_ttx_H 1

#include "mgOnGpuConfig.h"

#include "mgOnGpuVectors.h"

#include "Parameters_loop_sm_no_b_mass.h"
#include "Parameters_sm_no_b_mass.h"

#include <vector>

Expand Down Expand Up @@ -96,7 +96,7 @@ namespace mg5amcCpu

// Physics model parameters to be read from file (initProc function)
#ifndef MGONGPU_HARDCODE_PARAM
Parameters_loop_sm_no_b_mass* m_pars;
Parameters_sm_no_b_mass* m_pars;
#endif
std::vector<fptype> m_masses; // external particle masses

Expand Down Expand Up @@ -185,4 +185,4 @@ namespace mg5amcCpu
//--------------------------------------------------------------------------
}

#endif // MG5_Sigma_loop_sm_no_b_mass_gg_ttx_H
#endif // MG5_Sigma_sm_no_b_mass_gg_ttx_H
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

// No need to indicate EPOCHX_ any longer for auto-generated code
// However, keep the name of the file as it may be useful again for new manual developments
#define MG_EPOCH_PROCESS_ID SIGMA_LOOP_SM_NO_B_MASS_GG_TTX
#define MG_EPOCH_PROCESS_ID SIGMA_SM_NO_B_MASS_GG_TTX

// For simplicity, define here the name of the process-dependent reference file for tests
#define MG_EPOCH_REFERENCE_FILE_NAME "../../test/ref/dump_CPUTest.Sigma_loop_sm_no_b_mass_gg_ttx.txt"
#define MG_EPOCH_REFERENCE_FILE_NAME "../../test/ref/dump_CPUTest.Sigma_sm_no_b_mass_gg_ttx.txt"

#endif // EPOCH_PROCESS_ID_H
2 changes: 1 addition & 1 deletion epochX/cudacpp/nobm_gg_tt.sa/SubProcesses/testxxx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "mgOnGpuConfig.h"

#include "CPPProcess.h"
#include "HelAmps_loop_sm_no_b_mass.h"
#include "HelAmps_sm_no_b_mass.h"
#include "MemoryAccessMomenta.h"
#include "MemoryAccessWavefunctions.h"
#include "MemoryBuffers.h"
Expand Down
8 changes: 4 additions & 4 deletions epochX/cudacpp/nobm_gg_tt.sa/src/HelAmps_sm_no_b_mass.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
// Visit launchpad.net/madgraph5 and amcatnlo.web.cern.ch
//==========================================================================

#ifndef HelAmps_loop_sm_no_b_mass_H
#define HelAmps_loop_sm_no_b_mass_H 1
#ifndef HelAmps_sm_no_b_mass_H
#define HelAmps_sm_no_b_mass_H 1

#include "mgOnGpuConfig.h"

#include "mgOnGpuVectors.h"

#include "Parameters_loop_sm_no_b_mass.h"
#include "Parameters_sm_no_b_mass.h"

//#include <cmath>
//#include <cstdlib>
Expand Down Expand Up @@ -967,4 +967,4 @@ namespace mg5amcCpu

} // end namespace

#endif // HelAmps_loop_sm_no_b_mass_H
#endif // HelAmps_sm_no_b_mass_H
Loading

0 comments on commit f045418

Please sign in to comment.