Problem with MG+Pythia+Delphes stream

Asked by TMartin

At some point in the last few weeks (may have been after an update), my processes in MG have stopped communicating between MG-Pythia-Delphes.

When I run MG, it generates events then passes along to Pythia, which appears to run just fine. And on the step that passes off to Delphes, I get the error message:

Fail to create LHCO events from DELPHES

In the Delphes log file, I get

No Delphes executable found. Quitting...

However, the configured path to Delphes is correct, and I just recently reinstalled Delphes.

Any ideas why Delphes would just suddenly stop working? (I have hundreds of processes generated and passed through Delphes correctly up until recently, with essentially the same installation.)

Question information

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

Hi TMartin,

Looks like that you have a mismatch between Delphes2 and Delphes3.

So I have a couple of version:
1) which version of MG5 did you use
2) which version of Delphes do you want to use (Delphes2 or Delphes3?) (i.e. did you do install Delphes or install Delphes3 or install Delphes2)
3) Do you have the following file? Delphes/Delphes
4) Do you have the following file? Delphes/DelphesSTDHEP
5) Do you have the following file/directory? Delphes/data

The first executables is the one present if you have install Delphes2, the second for Delphes3.
The error message that you quote indicates that MG tries to launch Delphes2, but maybe they are a mismatch here.
The data path is used by MG to check if the installation was the Delphes2 or Delphes3 one.
This directory is only present in Delphes2 installation, did you create this directory for some reason?)

Cheers,

Olivier

PS: I've tested to re-install the latest version of all program and everything works out of the box.

On Aug 22, 2013, at 1:31 PM, TMartin <email address hidden> wrote:

> New question #234465 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/234465
>
> At some point in the last few weeks (may have been after an update), my processes in MG have stopped communicating between MG-Pythia-Delphes.
>
> When I run MG, it generates events then passes along to Pythia, which appears to run just fine. And on the step that passes off to Delphes, I get the error message:
>
> Fail to create LHCO events from DELPHES
>
> In the Delphes log file, I get
>
> No Delphes executable found. Quitting...
>
> However, the configured path to Delphes is correct, and I just recently reinstalled Delphes.
>
> Any ideas why Delphes would just suddenly stop working? (I have hundreds of processes generated and passed through Delphes correctly up until recently, with essentially the same installation.)
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
TMartin (tmartin-4) said :
#2

I only ever used the command "install Delphes". I didn't even realize other versions were possible.

I have decided to start over from scratch on my install. Hopefully that solves the problem.

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

Hi,

> I only ever used the command "install Delphes". I didn't even realize
> other versions were possible.

I was expecting that. Then you have install Delphes3, but it tries to run Delphes2 for some reasons…

> I have decided to start over from scratch on my install. Hopefully that
> solves the problem.

If it still didn't work, please reply to my previous questions concerning the file existing on your system.

Thanks,

Olivier

On Aug 23, 2013, at 11:46 AM, TMartin <email address hidden> wrote:

> Question #234465 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/234465
>
> TMartin posted a new comment:
> I only ever used the command "install Delphes". I didn't even realize
> other versions were possible.
>
> I have decided to start over from scratch on my install. Hopefully that
> solves the problem.
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
TMartin (tmartin-4) said :
#4

Sorry for not replying to all of the questions. And thank you for the continued help.

1) which version of MG5 did you use

1.5.12

2) which version of Delphes do you want to use (Delphes2 or Delphes3?) (i.e. did you do install Delphes or install Delphes3 or install Delphes2)

I used "install Delphes"

3) Do you have the following file? Delphes/Delphes

No. I also tried to "install Delphes" again and it did not create that file.

4) Do you have the following file? Delphes/DelphesSTDHEP

Yes. I have this file.

5) Do you have the following file/directory? Delphes/data

No, I do not.

Revision history for this message
TMartin (tmartin-4) said :
#5

I have not finished trying the re-install due to having a lot to set up. I could run a test process, but I want to make sure it will work within my automation framework.

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

Hi,

Ok all your answer are coherent with what I would have expect. So this reduce the search but didn't give any hint of what goes wrong.

Could you do the following:
./bin/mg5
then
display options
you should have a line like this one:
delphes_path : /Users/omatt/Documents/eclipse/madgraph5/Delphes (user set)

Could you check that this is the correct path ?
Do you have a file/directory data in that path?

Otherwise a simple fix should be the following:
on file madevent_interface.py at line 3607 you should have:
        delphes_dir = self.options['delphes_path']
        if os.path.exists(pjoin(delphes_dir, 'data')):
            delphes3 = False
            prog = '../bin/internal/run_delphes'
        else:
            delphes3 = True
            prog = '../bin/internal/run_delphes3'

replace this by:
        delphes_dir = self.options['delphes_path']
 delphes3 = True
        prog = '../bin/internal/run_delphes3'

and it should work.

Cheers,

Olivier

On Aug 23, 2013, at 1:31 PM, TMartin <email address hidden> wrote:

> Question #234465 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/234465
>
> TMartin posted a new comment:
> Sorry for not replying to all of the questions. And thank you for the
> continued help.
>
> 1) which version of MG5 did you use
>
> 1.5.12
>
> 2) which version of Delphes do you want to use (Delphes2 or Delphes3?)
> (i.e. did you do install Delphes or install Delphes3 or install
> Delphes2)
>
> I used "install Delphes"
>
> 3) Do you have the following file? Delphes/Delphes
>
> No. I also tried to "install Delphes" again and it did not create that
> file.
>
> 4) Do you have the following file? Delphes/DelphesSTDHEP
>
> Yes. I have this file.
>
> 5) Do you have the following file/directory? Delphes/data
>
> No, I do not.
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
TMartin (tmartin-4) said :
#7

Sorry it took me so long to get back to you on this. I was on vacation.

When I ran display options, the delphes_path was ./Delphes/
It did not say (user set).

That is the correct path, if I assume that ./ is the MadGraph directory I was working in.

I managed to start completely fresh for a third time, create a new MadGraph installation and re-install pythia-pgs and Delphes (which I see now is Delphes3, based on the filename given during installation). And this time it seems to be working. However, in the interim, I installed Delphes first and then pythia-pgs, and running a test process resulted in pythia freezing (nothing insightful from pressing CTRL+C, either, nor anything unusual in the pythia log file). Not sure what happened there...

Anyways, thanks again for the help. Hopefully everything works now.