Changes made to cuts.f or setcuts.f make madgraph crash

Asked by Robert Morgan

Hello,

Recently I asked a question about creating a new cut on invariant mass not in the run card :
https://answers.launchpad.net/mg5amcnlo/+question/371508

I have been trying to edit the files cuts.f and setcuts.f to implement the desired cut, but (most likely due to my own inexperience with Madgraph and Fortran) my changes cause Madgraph to crash. Are there any resources or templates for designing new cuts that you have given to people in the past? Other than this FAQ page https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-1

Sorry that this question is probably more at a beginner level, but any help would be appreciated!

Thanks,

Robert

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,

What i would try is to modify the following line of setcuts.f:

> if((is_a_l(i).and.is_a_l(j)).and.
> & (abs(idup(i,1,iproc)).eq.abs(idup(j,1,iproc))).and.
> & (idup(i,1,iproc)*idup(j,1,iproc).lt.0))
> & s_min(j,i)=mmll*dabs(mmll) !only on l+l- pairs (same flavour)
>
> if(is_a_j(i).and.is_a_j(j)) s_max(j,i)=mmjjmax*dabs(mmjjmax)
> if(is_a_a(i).and.is_a_a(j)) s_max(j,i)=mmaamax*dabs(mmaamax)
> if( is_a_b(i).and.is_a_b(j) ) s_max(j,i)=mmbbmax*dabs(mmbbmax)
> if((is_a_l(i).and.is_a_l(j)).and.
> & (abs(idup(i,1,iproc)).eq.abs(idup(j,1,iproc))).and.
> & (idup(i,1,iproc)*idup(j,1,iproc).lt.0))
> & s_max(j,i)=mmllmax*dabs(mmllmax) !only on l+l- pairs (same flavor)

and remove the constraint on the same flavor.

Otherwise to answer your question, no those files are consider as their own template.
(they are enough cut implemented in them)

Cheers,

Olivier

> On Sep 6, 2016, at 15:13, Robert Morgan <email address hidden> wrote:
>
> New question #383296 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/383296
>
> Hello,
>
> Recently I asked a question about creating a new cut on invariant mass not in the run card :
> https://answers.launchpad.net/mg5amcnlo/+question/371508
>
> I have been trying to edit the files cuts.f and setcuts.f to implement the desired cut, but (most likely due to my own inexperience with Madgraph and Fortran) my changes cause Madgraph to crash. Are there any resources or templates for designing new cuts that you have given to people in the past? Other than this FAQ page https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-1
>
> Sorry that this question is probably more at a beginner level, but any help would be appreciated!
>
> Thanks,
>
> Robert
>
>
>
> --
> 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 Robert Morgan for more information if necessary.

To post a message you must log in.