cannot mix loop induced process with not loop induced process

Asked by toodles

Hi,

I am trying to generate p p > h > t t~ [QCD]
add process p p > t t~.

It seems that I cannot mix loop induced process with not loop induced process.
Is There a way to generate the above two processes and study their interference effect?
Thank you very much!

Best regards,
Ying-Ying

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Valentin Hirschi
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Please look at the answer provided to the question:
https://answers.launchpad.net/mg5amcnlo/+question/369922

Cheers,

Olivier

Revision history for this message
toodles (liyybnu) said :
#2

I see. Thanks Olivier

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#3

For reference, I have listed the instructions to simulate the interference of loop-induced and tree-level diagrams on this wiki page:

https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/LoopInducedTimesTree

I stress that we do not have official support for such computation yet, so employing the procedure detailed above requires care and cross-checks.

Revision history for this message
toodles (liyybnu) said :
#4

Hi,

Thanks Valentin Hirschi. I followed the instruction on this wiki page.
However I failed to generate LO events with:
generate g g > h > t t~ [noborn=QCD BKGQCD] BKGQCD^2==3
I am a little confused with those coupling order.
What should I set for BKGQCD to get LO events?

Thank you very much!
Best Regards,
Ying-Ying

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#5

What do you mean LO events? All the computations we are talking about here
are LO, but including loops.
Anyway, think of each BKGQCD coupling order as a vertex in the
tree-diagrams you want to interface against. In the case of g g > t t~
(and not g g > t t~ g), there is only two such vertices, so you want to
select BKGQCD^2==2 and not BKGQCD^2==3.

Please, if it does not fix your issues, include the details of your crash
(including the stack trace in the DEBUG file indicated) when you report it.
I cannot infer much from just your statement that it doesn't work or it
failed.

On Wed, Aug 31, 2016 at 7:43 AM, toodles <
<email address hidden>> wrote:

> Question #372453 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/372453
>
> Status: Solved => Open
>
> toodles is still having a problem:
> Hi,
>
> Thanks Valentin Hirschi. I followed the instruction on this wiki page.
> However I failed to generate LO events with:
> generate g g > h > t t~ [noborn=QCD BKGQCD] BKGQCD^2==3
> I am a little confused with those coupling order.
> What should I set for BKGQCD to get LO events?
>
> Thank you very much!
> Best Regards,
> Ying-Ying
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
toodles (liyybnu) said :
#6

Dear Valentin Hirschi,

Sorry for not including the details. Using BKGQCD^2==2 solved my problem!
One more thing I want to make sure:
with the command" generate p p > h > t t~ [noborn=QCD BKGQCD] BKGQCD^2==2",
I will generate events with the signal and interference effects, am I right?
Thanks for replying!

Best Regards,
Ying-Ying

Revision history for this message
toodles (liyybnu) said :
#7

Dear Valentin Hirschi,

I followed the instruction on this website: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/LoopInducedTimesTree
and tried to generate event with the command " generate p p > h > t t~ [noborn=QCD BKGQCD] BKGQCD^2==2".
Everything seems okay, however the produced root file is empty.
I attached the txt file produced per run here:

set group_subprocesses False
import model special_loop_sm
generate g g > h > t t~ [noborn=QCD BKGQCD] BKGQCD^2==2
output try
</MG5ProcCard>
<MGProcCard>
#*********************************************************************
# MadGraph/MadEvent *
# http://madgraph.hep.uiuc.edu *
# *
# proc_card.dat *
#*********************************************************************
# *
# This Files is generated by MADGRAPH 5 *
# *
# WARNING: This Files is generated for MADEVENT (compatibility issue)*
# This files is NOT a valid MG4 proc_card.dat *
# Running this in MG4 will NEVER reproduce the result of MG5*
# *
#*********************************************************************
#*********************************************************************
# Process(es) requested : mg2 input *
#*********************************************************************
# Begin PROCESS # This is TAG. Do not modify this line
g g > h > t t~ BKGQCD] #Process
# Be carefull the coupling are here in MG5 convention
[noborn=QCD
BKGQCD^2==2

end_coup # End the couplings input

done # this tells MG there are no more procs
# End PROCESS # This is TAG. Do not modify this line
#*********************************************************************
# Model information *
#*********************************************************************
# Begin MODEL # This is TAG. Do not modify this line
special_loop_sm
# End MODEL # This is TAG. Do not modify this line
#*********************************************************************
# Start multiparticle definitions *
#*********************************************************************
# Begin MULTIPARTICLES # This is TAG. Do not modify this line

# End MULTIPARTICLES # This is TAG. Do not modify this line
</MGProcCard>
<MGRunCard>
#*********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat MadEvent *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a '# ' are info or comments *
# *
# mind the format: value = variable ! comment *
#*********************************************************************
#
#*******************
# Running parameters
#*******************
#
#*********************************************************************
# Tag name for the run (one word) *
#*********************************************************************
  tag_1 = run_tag ! name of the run
#*********************************************************************
# Run to generate the grid pack *
#*********************************************************************
  False = gridpack !True = setting up the grid pack
#*********************************************************************
# Number of events and rnd seed *
# Warning: Do not generate more than 1M events in a single run *
# If you want to run Pythia, avoid more than 50k events in a run. *
#*********************************************************************
  10000 = nevents ! Number of unweighted events requested
 21 = iseed ! rnd seed (0=assigned automatically=default))
#*********************************************************************
# Collider type and energy *
# lpp: 0=No PDF, 1=proton, -1=antiproton, 2=photon from proton, *
# 3=photon from electron *
#*********************************************************************
     1 = lpp1 ! beam 1 type
     1 = lpp2 ! beam 2 type
     6500.0 = ebeam1 ! beam 1 total energy in GeV
     6500.0 = ebeam2 ! beam 2 total energy in GeV
#*********************************************************************
# Beam polarization from -100 (left-handed) to 100 (right-handed) *
#*********************************************************************
     0.0 = polbeam1 ! beam polarization for beam 1
     0.0 = polbeam2 ! beam polarization for beam 2
#*********************************************************************
# PDF CHOICE: this automatically fixes also alpha_s and its evol. *
#*********************************************************************
     nn23lo1 = pdlabel ! PDF set
     230000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
#*********************************************************************
# Renormalization and factorization scales *
#*********************************************************************
 False = fixed_ren_scale ! if .true. use fixed ren scale
 False = fixed_fac_scale ! if .true. use fixed fac scale
 91.188 = scale ! fixed ren scale
 91.188 = dsqrt_q2fact1 ! fixed fact scale for pdf1
 91.188 = dsqrt_q2fact2 ! fixed fact scale for pdf2
 -1 = dynamical_scale_choice ! Choose one of the preselected dynamical choices
 1.0 = scalefact ! scale factor for event-by-event scales
#*********************************************************************
# Time of flight information. (-1 means not run)
#*********************************************************************
 -1.0 = time_of_flight ! threshold below which info is not written
#*********************************************************************
# Matching - Warning! ickkw > 1 is still beta
#*********************************************************************
 0 = ickkw ! 0 no matching, 1 MLM, 2 CKKW matching
 1 = highestmult ! for ickkw=2, highest mult group
 1 = ktscheme ! for ickkw=1, 1 Durham kT, 2 Pythia pTE
 1.0 = alpsfact ! scale factor for QCD emission vx
 False = chcluster ! cluster only according to channel diag
 True = pdfwgt ! for ickkw=1, perform pdf reweighting
 4 = asrwgtflavor ! highest quark flavor for a_s reweight
 True = clusinfo ! include clustering tag in output
 3.0 = lhe_version ! Change the way clustering information pass to shower.
#*********************************************************************
#**********************************************************
#
#**********************************************************
# Automatic ptj and mjj cuts if xqcut > 0
# (turn off for VBF and single top processes)
#**********************************************************
   True = auto_ptj_mjj ! Automatic setting of ptj and mjj
#**********************************************************
#
#**********************************
# BW cutoff (M+/-bwcutoff*Gamma)
#**********************************
  15.0 = bwcutoff ! (M+/-bwcutoff*Gamma)
#**********************************************************
# Apply pt/E/eta/dr/mij/kt_durham cuts on decay products or not
# (note that etmiss/ptll/ptheavy/ht/sorted cuts always apply)
#*************************************************************
   False = cut_decays ! Cut decay products
#*************************************************************
# Number of helicities to sum per event (0 = all helicities)
# 0 gives more stable result, but longer run time (needed for
# long decay chains e.g.).
# Use >=2 if most helicities contribute, e.g. pure QCD.
#*************************************************************
   1 = nhel ! Number of helicities used per event
#*******************
# Standard Cuts
#*******************
#
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
 20.0 = ptj ! minimum pt for the jets
 0.0 = ptb ! minimum pt for the b
 10.0 = pta ! minimum pt for the photons
 10.0 = ptl ! minimum pt for the charged leptons
 0.0 = misset ! minimum missing Et (sum of neutrino's momenta)
 0.0 = ptheavy ! minimum pt for one heavy final state
 -1.0 = ptjmax ! maximum pt for the jets
 -1.0 = ptbmax ! maximum pt for the b
 -1.0 = ptamax ! maximum pt for the photons
 -1.0 = ptlmax ! maximum pt for the charged leptons
 -1.0 = missetmax ! maximum missing Et (sum of neutrino's momenta)
#*********************************************************************
# Minimum and maximum E's (in the center of mass frame) *
#*********************************************************************
  0.0 = ej ! minimum E for the jets
  0.0 = eb ! minimum E for the b
  0.0 = ea ! minimum E for the photons
  0.0 = el ! minimum E for the charged leptons
  -1.0 = ejmax ! maximum E for the jets
 -1.0 = ebmax ! maximum E for the b
 -1.0 = eamax ! maximum E for the photons
 -1.0 = elmax ! maximum E for the charged leptons
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
  5.0 = etaj ! max rap for the jets
  -1.0 = etab ! max rap for the b
 2.5 = etaa ! max rap for the photons
 2.5 = etal ! max rap for the charged leptons
 0.0 = etajmin ! min rap for the jets
 0.0 = etabmin ! min rap for the b
 0.0 = etaamin ! min rap for the photons
 0.0 = etalmin ! main rap for the charged leptons
#*********************************************************************
# Minimum and maximum DeltaR distance *
#*********************************************************************
 0.4 = drjj ! min distance between jets
 0.0 = drbb ! min distance between b's
 0.4 = drll ! min distance between leptons
 0.4 = draa ! min distance between gammas
 0.0 = drbj ! min distance between b and jet
 0.4 = draj ! min distance between gamma and jet
 0.4 = drjl ! min distance between jet and lepton
 0.0 = drab ! min distance between gamma and b
 0.0 = drbl ! min distance between b and lepton
 0.4 = dral ! min distance between gamma and lepton
 -1.0 = drjjmax ! max distance between jets
 -1.0 = drbbmax ! max distance between b's
 -1.0 = drllmax ! max distance between leptons
 -1.0 = draamax ! max distance between gammas
 -1.0 = drbjmax ! max distance between b and jet
 -1.0 = drajmax ! max distance between gamma and jet
 -1.0 = drjlmax ! max distance between jet and lepton
 -1.0 = drabmax ! max distance between gamma and b
 -1.0 = drblmax ! max distance between b and lepton
 -1.0 = dralmax ! maxdistance between gamma and lepton
#*********************************************************************
# Minimum and maximum invariant mass for pairs *
# WARNING: for four lepton final state mmll cut require to have *
# different lepton masses for each flavor! *
#*********************************************************************
 0.0 = mmjj ! min invariant mass of a jet pair
 0.0 = mmbb ! min invariant mass of a b pair
 0.0 = mmaa ! min invariant mass of gamma gamma pair
 0.0 = mmll ! min invariant mass of l+l- (same flavour) lepton pair
 -1.0 = mmjjmax ! max invariant mass of a jet pair
 -1.0 = mmbbmax ! max invariant mass of a b pair
 -1.0 = mmaamax ! max invariant mass of gamma gamma pair
 -1.0 = mmllmax ! max invariant mass of l+l- (same flavour) lepton pair
#*********************************************************************
# Minimum and maximum invariant mass for all letpons *
#*********************************************************************
 0.0 = mmnl ! min invariant mass for all letpons (l+- and vl)
 -1.0 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
#*********************************************************************
# Minimum and maximum pt for 4-momenta sum of leptons *
#*********************************************************************
 0.0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
 -1.0 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
#*********************************************************************
# Inclusive cuts *
#*********************************************************************
 0.0 = xptj ! minimum pt for at least one jet
 0.0 = xptb ! minimum pt for at least one b
 0.0 = xpta ! minimum pt for at least one photon
 0.0 = xptl ! minimum pt for at least one charged lepton
#*********************************************************************
# Control the pt's of the jets sorted by pt *
#*********************************************************************
 0.0 = ptj1min ! minimum pt for the leading jet in pt
 0.0 = ptj2min ! minimum pt for the second jet in pt
 0.0 = ptj3min ! minimum pt for the third jet in pt
 0.0 = ptj4min ! minimum pt for the fourth jet in pt
 -1.0 = ptj1max ! maximum pt for the leading jet in pt
 -1.0 = ptj2max ! maximum pt for the second jet in pt
 -1.0 = ptj3max ! maximum pt for the third jet in pt
 -1.0 = ptj4max ! maximum pt for the fourth jet in pt
 0 = cutuse ! reject event if fails any (0) / all (1) jet pt cuts
#*********************************************************************
# Control the pt's of leptons sorted by pt *
#*********************************************************************
 0.0 = ptl1min ! minimum pt for the leading lepton in pt
 0.0 = ptl2min ! minimum pt for the second lepton in pt
 0.0 = ptl3min ! minimum pt for the third lepton in pt
 0.0 = ptl4min ! minimum pt for the fourth lepton in pt
 -1.0 = ptl1max ! maximum pt for the leading lepton in pt
 -1.0 = ptl2max ! maximum pt for the second lepton in pt
 -1.0 = ptl3max ! maximum pt for the third lepton in pt
 -1.0 = ptl4max ! maximum pt for the fourth lepton in pt
#*********************************************************************
# Control the Ht(k)=Sum of k leading jets *
#*********************************************************************
 0.0 = htjmin ! minimum jet HT=Sum(jet pt)
 -1.0 = htjmax ! maximum jet HT=Sum(jet pt)
 0.0 = ihtmin !inclusive Ht for all partons (including b)
 -1.0 = ihtmax !inclusive Ht for all partons (including b)
 0.0 = ht2min ! minimum Ht for the two leading jets
 0.0 = ht3min ! minimum Ht for the three leading jets
 0.0 = ht4min ! minimum Ht for the four leading jets
 -1.0 = ht2max ! maximum Ht for the two leading jets
 -1.0 = ht3max ! maximum Ht for the three leading jets
 -1.0 = ht4max ! maximum Ht for the four leading jets
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# When ptgmin=0, all the other parameters are ignored *
# When ptgmin>0, pta and draj are not going to be used *
#***********************************************************************
 0.0 = ptgmin ! Min photon transverse momentum
 0.4 = R0gamma ! Radius of isolation code
 1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
 1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
 True = isoEM ! isolate photons from EM energy (photons and leptons)
#*********************************************************************
# WBF cuts *
#*********************************************************************
 0.0 = xetamin ! minimum rapidity for two jets in the WBF case
 0.0 = deltaeta ! minimum rapidity for two jets in the WBF case
#*********************************************************************
# KT DURHAM CUT *
#*********************************************************************
 -1.0 = ktdurham
 0.4 = dparameter
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
 4 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
# Jet measure cuts *
#*********************************************************************
 0.0 = xqcut ! minimum kt jet measure between partons
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: If use_syst is T, matched Pythia output is *
# meaningful ONLY if plotted taking matchscale *
# reweighting into account! *
#*********************************************************************
   True = use_syst ! Enable systematics studies
#
#**************************************
# Parameter of the systematics study
# will be used by SysCalc (if installed)
#**************************************
#
0.5 1 2 = sys_scalefact # factorization/renormalization scale factor
None = sys_alpsfact # \alpha_s emission scale factors
30 50 = sys_matchscale # variation of merging scale
# PDF sets and number of members (0 or none for all members).
NNPDF23_lo_as_0130_qed = sys_pdf # matching scales
# MSTW2008nlo68cl.LHgrid 1 = sys_pdf
</MGRunCard>
<slha>
######################################################################
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 FOLLOWING UFO MODEL ####
######################################################################
## ##
## Width set on Auto will be computed following the information ##
## present in the decay.py files of the model. ##
## See arXiv:1402.1178 for more details. ##
## ##
######################################################################

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

###################################
## INFORMATION FOR MASS
###################################
Block mass
    5 4.700000e+00 # MB
    6 1.730000e+02 # MT
   15 1.777000e+00 # MTA
   23 9.118800e+01 # MZ
   25 1.250000e+02 # MH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
  1 0.000000 # d : 0.0
  2 0.000000 # u : 0.0
  3 0.000000 # s : 0.0
  4 0.000000 # c : 0.0
  11 0.000000 # e- : 0.0
  12 0.000000 # ve : 0.0
  13 0.000000 # mu- : 0.0
  14 0.000000 # vm : 0.0
  16 0.000000 # vt : 0.0
  21 0.000000 # g : 0.0
  22 0.000000 # a : 0.0
  24 80.419002 # w+ : cmath.sqrt(MZ__exp__2/2. + cmath.sqrt(MZ__exp__4/4. - (aEW*cmath.pi*MZ__exp__2)/(Gf*sqrt__2)))
  250 91.188000 # g0 : MZ
  251 80.419002 # g+ : MW

###################################
## INFORMATION FOR SMINPUTS
###################################
Block sminputs
    1 1.325070e+02 # aEWM1
    2 1.166390e-05 # Gf
    3 1.180000e-01 # aS

###################################
## INFORMATION FOR YUKAWA
###################################
Block yukawa
    5 4.700000e+00 # ymb
    6 1.730000e+02 # ymt
   15 1.777000e+00 # ymtau

###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.491500e+00 # WT
DECAY 23 2.441404e+00 # WZ
DECAY 24 2.047600e+00 # WW
DECAY 25 6.382339e-03 # WH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
DECAY 1 0.000000 # d : 0.0
DECAY 2 0.000000 # u : 0.0
DECAY 3 0.000000 # s : 0.0
DECAY 4 0.000000 # c : 0.0
DECAY 5 0.000000 # b : 0.0
DECAY 11 0.000000 # e- : 0.0
DECAY 12 0.000000 # ve : 0.0
DECAY 13 0.000000 # mu- : 0.0
DECAY 14 0.000000 # vm : 0.0
DECAY 15 0.000000 # ta- : 0.0
DECAY 16 0.000000 # vt : 0.0
DECAY 21 0.000000 # g : 0.0
DECAY 22 0.000000 # a : 0.0
DECAY 250 2.441404 # g0 : WZ
DECAY 251 2.047600 # g+ : WW
#===========================================================
# QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)
#===========================================================

Block QNUMBERS 250 # g0
        1 0 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 0 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 251 # g+
        1 3 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
</slha>
<MGGenerationInfo>
# Number of Events : 10000
# Integrated weight (pb) : -0.887943576274
</MGGenerationInfo>
</header>
</LesHouchesEvents>

What is the reason? Thank you very much for your helping!

Best Regards,
Ying-Ying

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#8

Hi,

Is the lhe file produced correctly? Is it empty?

The conversion to root format is done by an external library (ExRootAnalysis).
Not sure if that library support negative weight.
If the lhe file is correct, then please use another library to pass to the root format.

Cheers,

Olivier

Revision history for this message
toodles (liyybnu) said :
#9

Hi Olivier,

Thanks for your response!
The lhe file is produced correctly.
It seems that ExRootAnalysis only check too large positive value or too large negative value.
Are there other libraries to convert the lhe file with negative weight to root format for me to do a test?

Best Regards,
Ying-Ying

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#10

Hi,

> Are there other libraries to convert the lhe file with negative weight to root format for me to do a test?

You should check what ATLAS and/or CMS are using.

Cheers,

Olivier

> On Sep 6, 2016, at 08:07, toodles <email address hidden> wrote:
>
> Question #372453 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/372453
>
> Status: Answered => Open
>
> toodles is still having a problem:
> Hi Olivier,
>
> Thanks for your response!
> The lhe file is produced correctly.
> It seems that ExRootAnalysis only check too large positive value or too large negative value.
> Are there other libraries to convert the lhe file with negative weight to root format for me to do a test?
>
> Best Regards,
> Ying-Ying
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
toodles (liyybnu) said :
#11

Hi Olivier,

Thanks for the suggestion. I will check that!

Sorry that I met another problem when I do
"generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3".
I attached the MG5_debug file here:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.4.3 2016-08-01 *
#* BZR mg5amcnlo 266 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
set group_subprocesses False
import model special_loop_sm
set group_subprocesses False
import model special_loop_sm
generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3
output try_event
Traceback (most recent call last):
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py", line 1011, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/master_interface.py", line 284, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madgraph_interface.py", line 7138, in do_output
    self.export(nojpeg, main_file_name, group_processes, args)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/master_interface.py", line 298, in export
    return self.cmd.export(self, *args, **opts)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madgraph_interface.py", line 7270, in export
    self._curr_fortran_model)
  File "/home/toodles/madness/mg5amcnlo/madgraph/iolibs/export_v4.py", line 111, in export_processes
    me, fortran_model, me_number)
  File "/home/toodles/madness/mg5amcnlo/madgraph/loop/loop_exporters.py", line 3122, in generate_subprocess_directory_v4
    self, matrix_element, fortran_model, me_number)
  File "/home/toodles/madness/mg5amcnlo/madgraph/iolibs/export_v4.py", line 3297, in generate_subprocess_directory_v4
    matrix_element)
  File "/home/toodles/madness/mg5amcnlo/madgraph/iolibs/export_v4.py", line 3788, in write_coloramps_file
    lines = self.get_icolamp_lines(mapconfigs, matrix_element, 1)
  File "/home/toodles/madness/mg5amcnlo/madgraph/iolibs/export_v4.py", line 974, in get_icolamp_lines
    color_basis.values()],[]))
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
                          MadGraph5_aMC@NLO Options
                          ----------------
        complex_mass_scheme : False
                      gauge : Feynman (user set)
         group_subprocesses : False (user set)
  ignore_six_quark_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0
               stdout_level : 10 (user set)

                         MadEvent Options
                          ----------------
     automatic_html_opening : True
                    nb_core : None
        notification_center : True
                   run_mode : 2

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
                auto_update : 7
         cluster_local_path : None
           cluster_nb_retry : 1
              cluster_queue : None (user set)
         cluster_retry_wait : 300
               cluster_size : 100
      cluster_status_update : (600, 30)
          cluster_temp_path : None
               cluster_type : condor
               cpp_compiler : None
               delphes_path : ./Delphes
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : None
                    fastjet : fastjet-config
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : lhapdf-config
           madanalysis_path : ./MadAnalysis
                      ninja : ./HEPTools/lib
        output_dependencies : external
                      pjfry : None (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : None (user set)
                    samurai : None
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

When I do "generate g g > h > t t~ [noborn=QCD BKGQCD] BKGQCD^2==2", there is no such error.
I really appreciate your help!

Best Regards,
Ying-Ying

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#12

Dear Ying-Ying,

That sounds to be a problem of consistency of the model. Valentin will look at it.

Cheers,

Olivier

PS: Just for curiosity, why do you prefer this approach to the other one using ggHFullLoop model?

Revision history for this message
toodles (liyybnu) said :
#13

Dear Olivier,

Thanks for you and Valentin! Looking forward to hearing from you!

PS: Actually I am interested in the ttbar final state with one additional jet.
The effective coupling won't take into account the situation with
a gluon radiated from top loop.

Best Regards,
Ying-Ying

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#14

Dear Ying-Ying,

I spent sometime trying to reproduce your issue, repeating the whole process as laid out on the wiki page, both from the v2.3.3 publicly released tarball of MG5aMC as well as from its current trunk on bazaar, but I couldn't reproduce your problem.

In both cases, the run:

set group_subprocesses False
import model special_loop_sm
generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3
output

Could you double-check your findings? (following the procedure *exactly*)
Also, I assume your crashed occurred after having entered the 'output' command, and not during the process generation, right?

Revision history for this message
toodles (liyybnu) said :
#15

Dear Valentin,

I can reproduce the problem by first doing the following:

set group_subprocesses False
import model special_loop_sm
generate g g > h > t t~ g [virt=QCD BKGQCD]
output myfolder1
generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3
output myfolder2

If I do:

set group_subprocesses False
import model special_loop_sm
generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3
output

without doing any "generate g g > h > t t~ g [virt=QCD BKGQCD]
output myfolder1" ahead, I can do output. But after I do launch,
there is another problem saying division by zero.
The run_01_tag_1_debug.txt file says:
generate_events run_01
Traceback (most recent call last):
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py", line 1011, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madevent_interface.py", line 1992, in do_generate_events
    postcmd=False)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py", line 1037, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madevent_interface.py", line 2710, in do_survey
    self.monitor(run_type='All jobs submitted for survey', html=True)
  File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madevent_interface.py", line 3827, in monitor
    self.cluster.wait(self.me_dir, update_status, update_first=update_first)
  File "/home/toodles/madness/mg5amcnlo/madgraph/various/cluster.py", line 642, in worker
    returncode = exe(*arg, **opt)
  File "/home/toodles/madness/mg5amcnlo/madgraph/madevent/gen_ximprove.py", line 322, in combine_iteration
    grid_calculator, cross, error = self.combine_grid(Pdir, G, step)
  File "/home/toodles/madness/mg5amcnlo/madgraph/madevent/gen_ximprove.py", line 482, in combine_grid
    ratio = th_maxwgt[-1][0]/th_maxwgt[-2][0]
ZeroDivisionError: division by zero
                              Run Options
                              -----------
               stdout_level : 10 (user set)

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
        notification_center : True
          cluster_temp_path : None
             cluster_memory : None (user set)
               cluster_size : 100
              cluster_queue : None (user set)
                    nb_core : 8 (user set)
               cluster_time : 8 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None (user set)
      cluster_status_update : (600, 30)
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : /home/toodles/madness/mg5amcnlo/pythia-pgs (user set)
                    td_path : None (user set)
               delphes_path : /home/toodles/madness/mg5amcnlo/Delphes (user set)
                thepeg_path : None (user set)
               cluster_type : condor
        exrootanalysis_path : /home/toodles/madness/mg5amcnlo/ExRootAnalysis (user set)
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : lhapdf-config
              f2py_compiler : None
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 7 (user set)
           cluster_nb_retry : 1
                    timeout : 60
               cpp_compiler : None

Thank you very much for your help!

Best Regards,
Ying-Ying

Revision history for this message
Best Valentin Hirschi (valentin-hirschi) said :
#16

Ok, this must then be a border effect that I didn't try and won't bother
fixing given the unofficial nature of this use of MG5aMC.
If there is a growing demand for such loop-induced x tree-level
interference computations, our collaboration will discuss a definitive
solution which would then of course be reliable.

So, for now, I suggest that you generate the processes you are interested
in independently from individual MG5aMC interactive sessions.

Regarding the division by zero error, this is something I encountered as
well and that you can easily fix for now as follows:

In the file 'madgraph/madevent/gen_ximprove.py', around line 480, change

ratio = th_maxwgt[-1][0]/th_maxwgt[-2][0]

to

ratio = th_maxwgt[-1][0]/max(th_maxwgt[-2][0],1.0e-99)

We will likely fix this issue (that can also potentially affect event
generation not related to this kind of computations) in future public
release (subsequent to the forthcoming v2.5.0 though).

Thanks for your feedback, I will update the wiki page on this topic so as
to address these caveats.

On Wed, Sep 7, 2016 at 7:52 PM, toodles <
<email address hidden>> wrote:

> Question #372453 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/372453
>
> Status: Answered => Open
>
> toodles is still having a problem:
> Dear Valentin,
>
> I can reproduce the problem by first doing the following:
>
> set group_subprocesses False
> import model special_loop_sm
> generate g g > h > t t~ g [virt=QCD BKGQCD]
> output myfolder1
> generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3
> output myfolder2
>
> If I do:
>
> set group_subprocesses False
> import model special_loop_sm
> generate g g > h > t t~ g [noborn=QCD BKGQCD] BKGQCD^2==3
> output
>
> without doing any "generate g g > h > t t~ g [virt=QCD BKGQCD]
> output myfolder1" ahead, I can do output. But after I do launch,
> there is another problem saying division by zero.
> The run_01_tag_1_debug.txt file says:
> generate_events run_01
> Traceback (most recent call last):
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py",
> line 1011, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py",
> line 966, in onecmd_orig
> return func(arg, **opt)
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madevent_interface.py",
> line 1992, in do_generate_events
> postcmd=False)
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py",
> line 1037, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/extended_cmd.py",
> line 966, in onecmd_orig
> return func(arg, **opt)
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madevent_interface.py",
> line 2710, in do_survey
> self.monitor(run_type='All jobs submitted for survey', html=True)
> File "/home/toodles/madness/mg5amcnlo/madgraph/interface/madevent_interface.py",
> line 3827, in monitor
> self.cluster.wait(self.me_dir, update_status,
> update_first=update_first)
> File "/home/toodles/madness/mg5amcnlo/madgraph/various/cluster.py",
> line 642, in worker
> returncode = exe(*arg, **opt)
> File "/home/toodles/madness/mg5amcnlo/madgraph/madevent/gen_ximprove.py",
> line 322, in combine_iteration
> grid_calculator, cross, error = self.combine_grid(Pdir, G, step)
> File "/home/toodles/madness/mg5amcnlo/madgraph/madevent/gen_ximprove.py",
> line 482, in combine_grid
> ratio = th_maxwgt[-1][0]/th_maxwgt[-2][0]
> ZeroDivisionError: division by zero
> Run Options
> -----------
> stdout_level : 10 (user set)
>
> MadEvent Options
> ----------------
> automatic_html_opening : False (user set)
> notification_center : True
> cluster_temp_path : None
> cluster_memory : None (user set)
> cluster_size : 100
> cluster_queue : None (user set)
> nb_core : 8 (user set)
> cluster_time : 8 (user set)
> run_mode : 2
>
> Configuration Options
> ---------------------
> text_editor : None
> cluster_local_path : None (user set)
> cluster_status_update : (600, 30)
> pythia8_path : None (user set)
> hwpp_path : None (user set)
> pythia-pgs_path : /home/toodles/madness/mg5amcnlo/pythia-pgs
> (user set)
> td_path : None (user set)
> delphes_path : /home/toodles/madness/mg5amcnlo/Delphes
> (user set)
> thepeg_path : None (user set)
> cluster_type : condor
> exrootanalysis_path : /home/toodles/madness/mg5amcnlo/ExRootAnalysis
> (user set)
> eps_viewer : None
> web_browser : None
> syscalc_path : None (user set)
> madanalysis_path : None (user set)
> lhapdf : lhapdf-config
> f2py_compiler : None
> hepmc_path : None (user set)
> cluster_retry_wait : 300
> fortran_compiler : None
> auto_update : 7 (user set)
> cluster_nb_retry : 1
> timeout : 60
> cpp_compiler : None
>
> Thank you very much for your help!
>
> Best Regards,
> Ying-Ying
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
toodles (liyybnu) said :
#17

Thanks Valentin Hirschi, that solved my question.