user_filter function for tree-level diagrams

Asked by pankaj

Dear authors,

I saw a function named 'user_filter()' in loop_diagram_generation.py' in the Madgraph5 source folder. Is it possible to write a similar function while doing LO order computation. I am trying to extract some diagrams from around 500 diagrams for p p > t w- b b~ process. I understand that there might be some issue regarding gauge and Lorentz invariance etc. But I want to proceed with this by only picking the resonant diagrams.

Can I pick diagrams by the number with which they are tagged in the postscript file of Feynman diagrams?

Thanks
Best regards
Pankaj

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,

Yes we have such functionality.
https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-15

But if you want only resonant diagrams, they are probably much better way to doing so:
https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-6

Note that the first link needs a lot of care since in top of the obvious non-sense that you can create, a lot of extension (like MadSpin/…) will not work any longer.

Cheers,

Olivier

> On 24 Apr 2017, at 06:47, pankaj <email address hidden> wrote:
>
> New question #626578 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/626578
>
> Dear authors,
>
> I saw a function named 'user_filter()' in loop_diagram_generation.py' in the Madgraph5 source folder. Is it possible to write a similar function while doing LO order computation. I am trying to extract some diagrams from around 500 diagrams for p p > t w- b b~ process. I understand that there might be some issue regarding gauge and Lorentz invariance etc. But I want to proceed with this by only picking the resonant diagrams.
>
> Can I pick diagrams by the number with which they are tagged in the postscript file of Feynman diagrams?
>
> Thanks
> Best regards
> Pankaj
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
pankaj (pankajs-phy) said :
#2

Dear Olivier,

Thanks a lot for quick reply.

I found that link https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-15 where description for filtering feynman diagram is written. I tried to copy the function in a python file named 'user_filter.py'. However I am not sure where to keep this file in order for executing this command "generate p p > w+ w+ j j --diagram_filter" which is given in the link you suggested.

I tried to put it together into core sub-folder of the madgraph folder. But generate command throws an error and does not recognise the --diagram_filter flag.

Could you please explain how to execute this command?

Thanks
Best regards
Pankaj

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

You should try to put it in the PLUGIN directory.

Cheers,

Olivier
> On 24 Apr 2017, at 10:49, pankaj <email address hidden> wrote:
>
> Question #626578 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/626578
>
> Status: Answered => Open
>
> pankaj is still having a problem:
> Dear Olivier,
>
> Thanks a lot for quick reply.
>
> I found that link https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-
> General-15 where description for filtering feynman diagram is written. I
> tried to copy the function in a python file named 'user_filter.py'.
> However I am not sure where to keep this file in order for executing
> this command "generate p p > w+ w+ j j --diagram_filter" which is given
> in the link you suggested.
>
> I tried to put it together into core sub-folder of the madgraph folder.
> But generate command throws an error and does not recognise the
> --diagram_filter flag.
>
> Could you please explain how to execute this command?
>
> Thanks
> Best regards
> Pankaj
>
> --
> 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 pankaj for more information if necessary.

To post a message you must log in.