How to set parameters depending on the values of other parameters

Asked by Luca

Hello,

in response to the FAQ https://answers.launchpad.net/mg5amcnlo/+faq/2186 regarding how to script mg5, is there a way to set a parameter depending on the value adopted for another parameter during a run?

For instance, when scanning on the mass of a particle decaying to two leptons, I would like to set cut on the dilepton invariant mass range to Mass ± 3 Width of the decaying particle after madgraph computed the width of the latter.

Thanks for your help and kind regards,
L.

Question information

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

Hi,

> in response to the FAQ https://answers.launchpad.net/mg5amcnlo/+faq/2186 regarding how to script mg5, is there a way to set a parameter depending on the value adopted for another parameter during a run?

The general answer is no.

> For instance, when scanning on the mass of a particle decaying to two leptons, I would like to set cut on the dilepton invariant mass range to Mass ± 3 Width of the decaying particle after madgraph computed the width of the latter.

For this you can use the bwcutoff to be set at 3 (this is available only at LO)
You need then to use syntax like
Generate p p > X Z, Z > l+ l-

Cheers,

Olivier

> On 16 Apr 2017, at 13:24, Luca <email address hidden> wrote:
>
> New question #620891 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/620891
>
> Hello,
>
> in response to the FAQ https://answers.launchpad.net/mg5amcnlo/+faq/2186 regarding how to script mg5, is there a way to set a parameter depending on the value adopted for another parameter during a run?
>
> For instance, when scanning on the mass of a particle decaying to two leptons, I would like to set cut on the dilepton invariant mass range to Mass ± 3 Width of the decaying particle after madgraph computed the width of the latter.
>
> Thanks for your help and kind regards,
> L.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Luca (luca-marzola) said :
#2

Thank you very much and happy Easter