Madgraph not copying Delphes ILCgen card folder/information into run?

Asked by Niral Desai

I think this likely is a silly question with a simple obvious solution, but I haven't figured it out on my own.

I'm trying to generate events in a run with MG5_aMC with Delphes on using the default out-of-box delphes_card_ILCgen.tcl Delphes card. The root file output is always basically empty since Delphes quits the run, with the following error in the Delphes log:

** INFO: adding module ParticlePropagator ParticlePropagator
** ERROR: can't open configuration file ../Cards/ILCgen/ILCgen_Propagator.tcl

The ILCgen_Propagator.tcl card, and many others, are in the Madgraph/Delphes/cards/ILCgen directory where they're placed by default.

I expect this is happening because the ILCgen card sources information from other files, which are in the ILCgen folder, and I haven't correctly configured the run to automatically copy the ILCgen folder to the run directory along with copying the ILCgen.tcl card to the run's Delphes card. Other Delphes cards that don't have "source (...)" in them, like the ILD.tcl card, work just fine. Delphes was installed through the MG5 interface.

I suppose this question could possibly be more appropriate to ask on the Delphes help board, but I think my real question might be how to have Madgraph copy and paste files into a run directory automatically other than what it copies automatically. Am I correct that this is a problem with not having copied the ILCgen folder to the run directory? And if so, is there any particular command I can include at launch to do this, or do I need to manually copy and paste/create some kind of script to copy the files to the right place? If this is not the problem, is there anything I've missed or that I need to do to get the ILCgen.tcl card to work?

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

Hi,

I personally do not know Delphes. I did create the interface a while ago (more than 10 years ago).
At that time I remember that I had to use special trick for a trigger file.
Looks like Delphes author have added one additional file in your setup.

What is the content of the delphes_card_ILCgen.tcl?
Is the path to the ILCgen_Propagator.tcl hardcoded inside?
If it is the solution would be to change that path to put an absolute path.

Cheers,

Olivier

Revision history for this message
Niral Desai (npd393) said :
#2

Hi Olivier,

The delphes_card_ILGgen.tcl does indeed hardcode the paths to a number of files (~40 files). I thought of changing the hardcoded paths to the absolute paths as well, or copy-pasting everything into one card, for a quick-and-dirty fix (though haven't tried it yet), but I realized that if e.g. that file is ever updated by its original authors, I'd need to fix the updated file again. Additionally, this is not the only Delphes card which is formatted this way, and I thought there may in principal be more updates to packages used by Madgraph where the relevant cards might have a similar form where some cards are sourcing other cards across a number of folders.

This is more of a minor annoyance than a real problem, but I thought there may be a solution in place already that I'd overlooked. If there isn't, I'll try to hard-code the absolute paths and see if that works. Thank you very much for the quick help!

-Niral

Revision history for this message
Niral Desai (npd393) said :
#3

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Niral Desai (npd393) said :
#4

I figured out the simple (and in hindsight, obvious) solution but forgot to update here with my solution -- apologies. In case anyone searching online ever has a similar problem: just copy the ILCgen folder, or whichever other Delphes card folders you need, from
(Madgraph directory)/Delphes/cards/
to the folder
/(Madgraph directory)/Template/Common/Cards

The ILCgen card has worked fine for me after that without making any alterations to the card itself.