modify matrixX.f to add more amplitude terms.

Asked by Chang Jung

Dear Sir,

I'm trying to use 2 different energy dependent propagators for one intermediate scalar state.
I modified the propagator.py to increase two more propagator S11 and S22.

Instead to write a model file with another scalar, I modified the matrixX.f,
add more amplitude terms as :

      PARAMETER (NGRAPHS=2)
      CALL VVS12PS11_3(W(1,1),W(1,2),GC_15,MDL_MH, FK_MDL_WH,W(1,5))
      CALL FFS5_0(W(1,4),W(1,3),W(1,5),GC_528,AMP(1))
      CALL VVS12PS22_3(W(1,1),W(1,2),GC_15,MDL_MH, FK_MDL_WH,W(1,6))
      CALL FFS5_0(W(1,4),W(1,3),W(1,6),GC_528,AMP(2))

      JAMP(1,1)=+2D0*(-AMP(1))+2D0*(-AMP(2))

      AMP2(1)=AMP2(1)+AMP(1)*DCONJG(AMP(1))
      AMP2(2)=AMP2(2)+AMP(2)*DCONJG(AMP(2))

I got the following message as :
Error when reading /home/jungchang/Desktop/MG5_aMC_v2_6_7/PROC_HZZ_hel_UFO_0/SubProcesses/P1_gg_ttx/G1/results.dat
Command "generate_events run_02" interrupted with error:
Exception : Reported error: End code 2.0
... ...

May I ask am I missed to modify something?

Thanks,
Justine

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

I'm not aware of any place in the code where we report an end code #2.

So this is likely linked to a shell/fortran internal crash.
Officially this error mesaage is :
Exit code 2 Misuse of shell builtins (according to Bash documentation)
(from https://askubuntu.com/questions/892604/meaning-of-exit-0-exit-1-and-exit-2-in-a-bash-script)

Note that what you are doing is highly not recomended if you plan to integrate your matrix-element since the phase-space integrator will not be aware of the additional matrix-element

Cheers,

Olivier

> On 22 Nov 2019, at 13:03, Chang Jung <email address hidden> wrote:
>
> New question #686103 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/686103
>
> Dear Sir,
>
> I'm trying to use 2 different energy dependent propagators for one intermediate scalar state.
> I modified the propagator.py to increase two more propagator S11 and S22.
>
> Instead to write a model file with another scalar, I modified the matrixX.f,
> add more amplitude terms as :
>
> PARAMETER (NGRAPHS=2)
> CALL VVS12PS11_3(W(1,1),W(1,2),GC_15,MDL_MH, FK_MDL_WH,W(1,5))
> CALL FFS5_0(W(1,4),W(1,3),W(1,5),GC_528,AMP(1))
> CALL VVS12PS22_3(W(1,1),W(1,2),GC_15,MDL_MH, FK_MDL_WH,W(1,6))
> CALL FFS5_0(W(1,4),W(1,3),W(1,6),GC_528,AMP(2))
>
> JAMP(1,1)=+2D0*(-AMP(1))+2D0*(-AMP(2))
>
> AMP2(1)=AMP2(1)+AMP(1)*DCONJG(AMP(1))
> AMP2(2)=AMP2(2)+AMP(2)*DCONJG(AMP(2))
>
> I got the following message as :
> Error when reading /home/jungchang/Desktop/MG5_aMC_v2_6_7/PROC_HZZ_hel_UFO_0/SubProcesses/P1_gg_ttx/G1/results.dat
> Command "generate_events run_02" interrupted with error:
> Exception : Reported error: End code 2.0
> ... ...
>
> May I ask am I missed to modify something?
>
> Thanks,
> Justine
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Chang Jung (lovejesus99wwjd) said :
#2

Dear Olivier,

Thanks for the quick response. I found its from I need to add dimension to NWAVEFUNCS.
After that, I faced another error : may I ask where can I define this?

     matrix1.o: In function `matrix1_':
     matrix1.f:(.text+0x1e4): undefined reference to `vvs12ps22_3_'
     collect2: error: ld returned 1 exit status
     makefile:44: recipe for target 'madevent' failed
     make: *** [madevent] Error 1

Thanks.

Best,
Justine

Revision history for this message
Chang Jung (lovejesus99wwjd) said :
#3

Dear Olivier,

I found the functions are defined in Source/DHELAS folder. Now it can run without problems.

Thanks.

Best,
Justine

Revision history for this message
Chang Jung (lovejesus99wwjd) said :
#4

Thanks Olivier Mattelaer, that solved my question.