Problem with using option "--output" while adding a model

Asked by Anna Ivina

Dear experts,

I am trying to use two models for my process that are
import model sm
add model hgg_plugin

in my local computer, it works perfectly, however, for the running it with the Athena, I need to use the option with --output as
add model hgg_plugin --output=local_hgg_plugin

So when I try to implement it locally it gives me the following error:

Command "add model hgg_plugin --recreate --output=model_xxx" interrupted with error:
AttributeError : 'NoneType' object has no attribute 'pdg_code'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

Can you please help me to resolve this issue?

Thank you,
Anna

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

Why don't you use
import model heft?

This is equivalent to
> import model sm
> add model hgg_plugin

Cheers,

Olivier

> On 28 Aug 2018, at 19:17, Anna Ivina <email address hidden> wrote:
>
> New question #673049 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/673049
>
> Dear experts,
>
>
> I am trying to use two models for my process that are
> import model sm
> add model hgg_plugin
>
> in my local computer, it works perfectly, however, for the running it with the Athena, I need to use the option with --output as
> add model hgg_plugin --output=local_hgg_plugin
>
> So when I try to implement it locally it gives me the following error:
>
> Command "add model hgg_plugin --recreate --output=model_xxx" interrupted with error:
> AttributeError : 'NoneType' object has no attribute 'pdg_code'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
>
> Can you please help me to resolve this issue?
>
>
> Thank you,
> Anna
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Anna Ivina (aivina) said :
#2

Hi Oliver,

Sorry for writing again.

I have used the model you proposed and it worked fine.
But now I wanted to try another thing.
I wanted to generate process p p -> hc (with 3 vertices 2 coming from Yukawa and one from effective ggh)
So again I cannot add two models again
I used
import model sm-c_mass
add model hgg_plugin

This will generate for me the right number of vertices.

Maybe you know? Is there also one substitute as in the first case you proposed, for these two models?

Thank you,
Anna

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

HI,

Such model is likely to exists... but I failed to find it online (did not check CMS database of model)
And should be easy to generate with FR since all component exists.

Cheers,

Olivier

PS: Below you will find a patch to have that command working:

=== modified file 'madgraph/interface/madgraph_interface.py'
--- madgraph/interface/madgraph_interface.py 2018-11-28 22:12:28 +0000
+++ madgraph/interface/madgraph_interface.py 2018-12-07 12:13:24 +0000
@@ -3127,12 +3127,17 @@

         model_path = args[0]
         recreate = ('--recreate' in args)
+ if recreate:
+ args.remove('--recreate')
         keep_decay = ('--keep_decay' in args)
+ if keep_decay:
+ args.remove('--keep_decay')
         output_dir = [a.split('=',1)[1] for a in args if a.startswith('--output')]
         if output_dir:
             output_dir = output_dir[0]
             recreate = True
             restrict_name = ''
+ args.remove('--output=%s' % output_dir)
         else:
             name = os.path.basename(self._curr_model.get('modelpath'))
             restrict_name = self._curr_model.get('restrict_name')

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

If you plan to use FR, the following page would be usefull:

https://feynrules.irmp.ucl.ac.be/wiki/HiggsEffectiveTheory

Cheers,

Olivier

Revision history for this message
Anna Ivina (aivina) said :
#5

Hi Olivier,

Thank you for the help.
Actually, I found out that there is Higgs_Effective_Couplings_UFO model which has all the necessary vertices.
I guess it is fine to use this one?

Thanks,
Anna

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

Sure.

Olivier

> On 10 Dec 2018, at 10:36, Anna Ivina <email address hidden> wrote:
>
> Question #673049 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/673049
>
> Anna Ivina posted a new comment:
> Hi Olivier,
>
> Thank you for the help.
> Actually, I found out that there is Higgs_Effective_Couplings_UFO model which has all the necessary vertices.
> I guess it is fine to use this one?
>
>
> Thanks,
> Anna
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Anna Ivina for more information if necessary.

To post a message you must log in.