Delphes run failed to produce .lhco file

Asked by Joydeep Roy

Hi,

I'm trying to generate some events in the set up Pythia + Delphes + Madanalysis_5. But no 'lhco file is generated after the Delphes run. Instead the screen shows,

"INFO: prepare delphes run
INFO: Running Delphes
INFO: If you are interested in lhco output. please run root2lhco converter.
INFO: or edit bin/internal/run_delphes3 to run the converter automatically.
INFO: delphes done ."

I'm just wondering why I don't get a .lhco file as an output in this set up! Though I get it when I turn on both PGS and Delphes. I installed Delphes under MG5 with the command "install Delphes" and it took the version 'Delphes 3'. I'm new to Madgraph, please help.

Thanks,
Joydeep

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,

The default output of Delphes is a root file and not an lhco file.
In the past we were automatically converting the root file to an lhco format.
But since
1) most of the people do not use such output format
2) the lhco format is not complete (they are more information in the root file)
3) running such conversion use both cpu and disk space.
We decided to not create such file by default.

You have the instruction if you want to run such file.

Cheers,

Olivier

> On 12 Jul 2017, at 07:29, Joydeep Roy <email address hidden> wrote:
>
> New question #647556 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/647556
>
> Hi,
>
> I'm trying to generate some events in the set up Pythia + Delphes + Madanalysis_5. But no 'lhco file is generated after the Delphes run. Instead the screen shows,
>
> "INFO: prepare delphes run
> INFO: Running Delphes
> INFO: If you are interested in lhco output. please run root2lhco converter.
> INFO: or edit bin/internal/run_delphes3 to run the converter automatically.
> INFO: delphes done ."
>
> I'm just wondering why I don't get a .lhco file as an output in this set up! Though I get it when I turn on both PGS and Delphes. I installed Delphes under MG5 with the command "install Delphes" and it took the version 'Delphes 3'. I'm new to Madgraph, please help.
>
> Thanks,
> Joydeep
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Joydeep Roy (madubu17) said :
#2

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Mustafa Ashry (mashry) said :
#3

Hello,
Would someone please tell these instructions to run the root2lhco converter file. I'm trying to run this file but it gives a fatal error that TROOT.h: NO such file or directory
Thanks in advance
Mustafa

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

Hi Mustafa,

If you read the bin/internal/run_delphes3
you will see the following lines:

# Uncomment the following to have the LHCO file:
#
#
#$delphesdir/root2lhco ${run}/${tag}_delphes.root delphes_events.lhco
#
#if [ -e delphes_events.lhco ]; then
## write the delphes banner
# sed -e "s/^/#/g" ${run}/${run}_${tag}_banner.txt > ${run}/${tag}_delphes_ev\
ents.lhco
# echo "## Integrated weight (pb) : ${cross}" >> ${run}/${tag}_delphes_even\
ts.lhco
# cat delphes_events.lhco >> ${run}/${tag}_delphes_events.lhco
# gzip ${run}/${tag}_delphes_events.lhco
# rm -f delphes_events.lhco
#fi

The first line performs the conversion, the additional lines allows to write the banner information inside that file as comment for future reference. This will also give you example of syntax on how to run the script manually.

Cheers,

Olivier

Revision history for this message
Zhao-Huan Yu (yzhxxzxy) said :
#5

Hi Olivier,

I found that the following commented line in bin/internal/run_delphes3 is not correct:

$delphesdir/root2lhco ${run}/${tag}_delphes.root delphes_events.lhco

It should be

$delphesdir/root2lhco ${run}/${tag}_delphes_events.root delphes_events.lhco

Otherwise, no event will be converted to the .lhco file.

Cheers,
Zhao-Huan

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

Thanks for the information,
I have update such commented line for the future version of the code.

Cheers,

Olivier