ExRootAnalysis LHE to root file

Asked by JamesB on 2017-11-15

Hello,

When I try and convert a LHE file to a root file using the converter from ExRootAnalysis I get an error.

I'm using ExRootLHEFConverter.cpp from ExRootAnalysis V1.1.2.

The error I get is:
: command not founder.cpp: line 4:
: command not founder.cpp: line 6:
: command not founder.cpp: line 9:
: command not founder.cpp: line 12:
: command not founder.cpp: line 15:
: command not founder.cpp: line 19:
./ExRootLHEFConverter.cpp: line 20: using: command not found
: command not founder.cpp: line 20:
: command not founder.cpp: line 21:
: No such file or directoryline 22: //---------------------------------------------------------------------------
: command not founder.cpp: line 23:
./ExRootLHEFConverter.cpp: line 24: static: command not found
: command not founder.cpp: line 24:
: command not founder.cpp: line 25:
./ExRootLHEFConverter.cpp: line 26: syntax error near unexpected token `('
'/ExRootLHEFConverter.cpp: line 26: `void SignalHandler(int sig)

Could someone explain the method of converting LHE files to Root files using ExRootAnalysis?

Many Thanks,
James

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2017-11-17
Last reply:
2017-11-17

Dear James,

We are not the author of that package,
So after compilation of that code, we run it like this:
./ExRootLHEFConverter input.lhe output.root

If this is not enough for you, I would advise to contact the author of that package (pavel demin)

Cheers,

Olivier

PS: You can also ask MG5 to run such converter automatically if you set
analysis=EXROOTANALYSIS (you need to have install that package via the internal installer of mg5)

> On Nov 15, 2017, at 14:57, JamesB <email address hidden> wrote:
>
> New question #660783 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/660783
>
> Hello,
>
> When I try and convert a LHE file to a root file using the converter from ExRootAnalysis I get an error.
>
> I'm using ExRootLHEFConverter.cpp from ExRootAnalysis V1.1.2.
>
> The error I get is:
> : command not founder.cpp: line 4:
> : command not founder.cpp: line 6:
> : command not founder.cpp: line 9:
> : command not founder.cpp: line 12:
> : command not founder.cpp: line 15:
> : command not founder.cpp: line 19:
> ./ExRootLHEFConverter.cpp: line 20: using: command not found
> : command not founder.cpp: line 20:
> : command not founder.cpp: line 21:
> : No such file or directoryline 22: //---------------------------------------------------------------------------
> : command not founder.cpp: line 23:
> ./ExRootLHEFConverter.cpp: line 24: static: command not found
> : command not founder.cpp: line 24:
> : command not founder.cpp: line 25:
> ./ExRootLHEFConverter.cpp: line 26: syntax error near unexpected token `('
> '/ExRootLHEFConverter.cpp: line 26: `void SignalHandler(int sig)
>
> Could someone explain the method of converting LHE files to Root files using ExRootAnalysis?
>
> Many Thanks,
> James
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

JamesB (jamesb8) said : #2

Hello Oliver,

Thanks for your help. Excuse my ignorance but where do I set analysis=EXROOTANALYSIS? I can't seem to find the appropriate place!

Regards,
James

When you have the following question:

/--------------------------------------------------------------------------------------------------\
| 1. Choose the shower/hadronization program: shower = OFF |
| 2. Choose the detector simulation program: detector = Not installed |
| 3. Run an analysis package on the events generated: analysis = OFF|
| 4. Decay particles with the MadSpin module: madspin = OFF |
| 5. Add weights to events for different model hypothesis: reweight = OFF |
\—————————————————————————————————————————————————/

Cheers,

Olivier

> On Nov 15, 2017, at 22:22, JamesB <email address hidden> wrote:
>
> Question #660783 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/660783
>
> JamesB posted a new comment:
> Hello Oliver,
>
> Thanks for your help. Excuse my ignorance but where do I set
> analysis=EXROOTANALYSIS? I can't seem to find the appropriate place!
>
> Regards,
> James
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

JamesB (jamesb8) said : #4

I've installed Delphes and ExRootAnalysis through the mg5 interface, but after analysis = OFF, it says 'No analysis tool interfaced to MG5aMC'

How can I resolve this?

Thanks again

Which version of MG5aMC, did you use?
It might not be recent enough.

Cheers,

Olivier

> On Nov 15, 2017, at 22:57, JamesB <email address hidden> wrote:
>
> Question #660783 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/660783
>
> Status: Answered => Open
>
> JamesB is still having a problem:
> I've installed Delphes and ExRootAnalysis through the mg5 interface, but
> after analysis = OFF, it says 'No analysis tool interfaced to MG5aMC'
>
> How can I resolve this?
>
> Thanks again
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

JamesB (jamesb8) said : #6

I'm using MG5_aMC_v2_6_0. Do I need to set Delphes or ExRootAnalysis up in some way after I install them?

Thanks,
James

Hi,

If you install them with the "install" command built-in MG5aMC, then you do not have anything to setup after a successful installation of such code.

Of course to be able to run Delphes, you need to have a parton shower (i.e. pythia8) installed since otherwise you can not generate the input required for Delphes. But ExRootAnalysis does not have such dependencies.

I have just retry with a fresh instalation of ExRootAnalysis and then I have the following question:
The following switches determine which programs are run:
/--------------------------------------------------------------------------------------------------\
| 1. Choose the shower/hadronization program: shower = OFF |
| 2. Choose the detector simulation program: detector = OFF |
| 3. Run an analysis package on the events generated: analysis = EXROOTANALYSIS |
| 4. Decay particles with the MadSpin module: madspin = OFF |
| 5. Add weights to events for different model hypothesis: reweight = OFF |
\--------------------------------------------------------------------------------------------------/
  Either type the switch number (1 to 5) to change its setting,
  Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
  Type 'help' for the list of all valid option
  Type '0', 'auto', 'done' or just press enter when you are done.
 [0, auto, done, delphes, delphes=ON, delphes=OFF, shower=OFF, shower=PYTHIA8, shower, detector=OFF, ... ][60s to answer]

Since this does not work in your case, i would suggest to check what is the path displayed when your run the command (inside MG5aMC): display options exroot

This is the output, that i have in my case:
                          MadGraph5_aMC@NLO Options
                          ----------------

                         MadEvent Options
                          ----------------

                      Configuration Options
                      ---------------------
        exrootanalysis_path : /Users/omatt/mgdev/madgraph5/ExRootAnalysis (user set)

You should check that in that directory, you indeed have the following executable: ExRootLHEFConverter

Cheers,

Olivier

JamesB (jamesb8) said : #8

Hello Oliver,

I tried installing again, and was given this error:

MG5_aMC>install ExRootAnalysis
Downloading http://madgraph.physics.illinois.edu/Downloads/ExRootAnalysis/ExRootAnalysis_V1.1.2.tar.gz
--2017-11-17 10:17:26-- http://madgraph.physics.illinois.edu/Downloads/ExRootAnalysis/ExRootAnalysis_V1.1.2.tar.gz
Resolving madgraph.physics.illinois.edu... 192.17.91.69
Connecting to madgraph.physics.illinois.edu|192.17.91.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49575 (48K) [application/x-gzip]
Saving to: `ExRootAnalysis.tgz'

100%[=========================================================================================================================================>] 49,575 248K/s in 0.2s

2017-11-17 10:17:26 (248 KB/s) - `ExRootAnalysis.tgz' saved [49575/49575]

compile ExRootAnalysis. This might take a while.
>> Generating tmp/src/ExRootAnalysisDict.cc
rootcint: error while loading shared libraries: libCint.so: wrong ELF class: ELFCLASS32
make: *** [tmp/src/ExRootAnalysisDict.cc] Error 127
Error detected during the compilation. Please check the compilation error and run make manually.

Could this be the cause of my problems?

Also, I have set the path as follows

#! ExRootAnalysis Package
#! relative path start from main directory
# exrootanalysis_path = /home/jamesb/Documents/MG5_aMC_v2_6_0/ExRootAnalysis

but I still get this:

MG5_aMC>display options exroot
                          MadGraph5_aMC@NLO Options
                          ----------------

                         MadEvent Options
                          ----------------

                      Configuration Options
                      ---------------------
        exrootanalysis_path : ./ExRootAnalysis

Additionally, I do not have ExRootLHEFConverter in my directory, only ExRootLHEFConverter.cpp

Thanks,
James

Hi,

Ok so the installation of the package fail.
I have look into google and the following link might help you to solve such issue:
https://www.linuxquestions.org/questions/linux-newbie-8/error-while-loading-shared-libraries-wrong-elf-class-elfclass32-4175491402/

If this does not help, I would suggest to contact the ExRootAnalysis author.

Cheers,

Olivier

> On Nov 17, 2017, at 11:57, JamesB <email address hidden> wrote:
>
> Question #660783 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/660783
>
> Status: Answered => Open
>
> JamesB is still having a problem:
> Hello Oliver,
>
> I tried installing again, and was given this error:
>
> MG5_aMC>install ExRootAnalysis
> Downloading http://madgraph.physics.illinois.edu/Downloads/ExRootAnalysis/ExRootAnalysis_V1.1.2.tar.gz
> --2017-11-17 10:17:26-- http://madgraph.physics.illinois.edu/Downloads/ExRootAnalysis/ExRootAnalysis_V1.1.2.tar.gz
> Resolving madgraph.physics.illinois.edu... 192.17.91.69
> Connecting to madgraph.physics.illinois.edu|192.17.91.69|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 49575 (48K) [application/x-gzip]
> Saving to: `ExRootAnalysis.tgz'
>
> 100%[=========================================================================================================================================>]
> 49,575 248K/s in 0.2s
>
> 2017-11-17 10:17:26 (248 KB/s) - `ExRootAnalysis.tgz' saved
> [49575/49575]
>
> compile ExRootAnalysis. This might take a while.
>>> Generating tmp/src/ExRootAnalysisDict.cc
> rootcint: error while loading shared libraries: libCint.so: wrong ELF class: ELFCLASS32
> make: *** [tmp/src/ExRootAnalysisDict.cc] Error 127
> Error detected during the compilation. Please check the compilation error and run make manually.
>
> Could this be the cause of my problems?
>
> Also, I have set the path as follows
>
> #! ExRootAnalysis Package
> #! relative path start from main directory
> # exrootanalysis_path = /home/jamesb/Documents/MG5_aMC_v2_6_0/ExRootAnalysis
>
> but I still get this:
>
> MG5_aMC>display options exroot
> MadGraph5_aMC@NLO Options
> ----------------
>
> MadEvent Options
> ----------------
>
> Configuration Options
> ---------------------
> exrootanalysis_path : ./ExRootAnalysis
>
>
> Additionally, I do not have ExRootLHEFConverter in my directory, only ExRootLHEFConverter.cpp
>
> Thanks,
> James
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask JamesB for more information if necessary.

To post a message you must log in.