PGS card automatically removed during multi run

Asked by xan1234

Hi,

I am using MG5_aMC@NLO version 2.5.2 interfaced with Pythia 6 and PGS and tried to generate events using the command

../bin/madevent multi_run 3

After having executed this command, I selected detector=PGS in the MadEvent interface. My issue is that each time the survey is launched, the pgs_card.dat file that I have created in Cards/ is removed. So at the end of the three runs, I obtain LHE and Pythia event files but no lhco files. I have tried creating the PGS card at the beginning of the first run but this does not prevent it from being erased when the next run starts. Do you know how I could prevent this?

Thanks a lot for your help.

Best regards,
Sonia

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

Dear Sonia,

Thanks for reporting this.
Here is a patch which fixes the issue. This will be released in 2.5.3 which will be public at some point this week.

=== modified file 'madgraph/interface/madevent_interface.py'
--- madgraph/interface/madevent_interface.py 2017-03-03 23:36:24 +0000
+++ madgraph/interface/madevent_interface.py 2017-03-06 14:57:39 +0000
@@ -5761,7 +5761,7 @@
                 options += ['delphes', 'delphes=ON', 'delphes=OFF']
                 if os.path.exists(pjoin(self.me_dir,'Cards','delphes_card.dat')):
                     switch['detector'] = 'DELPHES'
- else:
+ elif switch['detector'] not in ['PGS']:
                     switch['detector'] = 'OFF'
             elif valid_options['detector'] == ['OFF']:
                 switch['detector'] = "Requires a shower”

Cheers,

Olivier
> On 6 Mar 2017, at 00:42, sonia el hedri <email address hidden> wrote:
>
> New question #526634 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/526634
>
> Hi,
>
> I am using MG5_aMC@NLO version 2.5.2 interfaced with Pythia 6 and PGS and tried to generate events using the command
>
> ../bin/madevent multi_run 3
>
> After having executed this command, I selected detector=PGS in the MadEvent interface. My issue is that each time the survey is launched, the pgs_card.dat file that I have created in Cards/ is removed. So at the end of the three runs, I obtain LHE and Pythia event files but no lhco files. I have tried creating the PGS card at the beginning of the first run but this does not prevent it from being erased when the next run starts. Do you know how I could prevent this?
>
> Thanks a lot for your help.
>
> Best regards,
> Sonia
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
xan1234 (xan1234) said :
#2

Thanks Olivier Mattelaer, that solved my question.