getting trouble in linking ExRootAnalysis to root

Asked by Priyanka Sarmah on 2018-02-20

Hi

 I am trying to install ExRootAnalysis in madgraph interface. While doing so I get the following error.
compile ExRootAnalysis. This might take a while.
>> Generating tmp/src/ExRootAnalysisDict.cc
>> Compiling tmp/src/ExRootAnalysisDict.cc
>> Compiling src/ExRootFilter.cc
>> Compiling src/ExRootSTDHEPReader.cc
src/ExRootSTDHEPReader.cc:26:28: fatal error: TLorentzVector.h: No such file or directory
compilation terminated.
Makefile:242: recipe for target 'tmp/src/ExRootSTDHEPReader.o' failed
make: *** [tmp/src/ExRootSTDHEPReader.o] Error 1
Error detected during the compilation. Please check the compilation error and run make manually.

Kindly suggest me how I should resolve this problem.

 The version of madgraph I am using is MG5_aMC_v2_6_1 and root version is 5.34/30 which I installed by "sudo apt-get install root-system-bin" command.

Best regards
Priyanka

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Pavel Demin Edit question
Solved by:
Priyanka Sarmah
Solved:
2018-02-22
Last query:
2018-02-22
Last reply:
2018-02-20
Pavel Demin (pavel-demin) said : #1

Hi Priyanka,

What OS are you using?

> fatal error: TLorentzVector.h: No such file or directory

The error message indicates that you don't have the required ROOT header files installed. All the ROOT header files can be installed with the following command:

sudo apt-get install libroot-*-dev

> root version is 5.34/30 which I installed by "sudo apt-get install root-system-bin" command

The ROOT version available from the Debian/Ubuntu repositories is very outdated. I'd suggest to install a more recent version from https://root.cern.ch/content/release-61206

Best regards,

Pavel

Priyanka Sarmah (priyanka511) said : #2

Hi

Thanks for your help. My OS is Ubuntu 16.04 .

Actually I have tried with the updated version of root but with that after typing make install command it was showing that "everything is already installed" although I removed previously installed root.

 ============================================================
   === ROOT BUILD SUCCESSFUL. ===
   === Run 'make install' now. ===
   ============================================================
priyanka@priyanka:~/Desktop/madroot/root$ make install

   ============================================================
   === ROOT BUILD SUCCESSFUL. ===
   === Run 'make install' now. ===
   ============================================================
Everything already installed...

But when I type root to start it I got the following message

priyanka@priyanka:~/Desktop/madroot/root$ root
The program 'root' is currently not installed. You can install it by typing:
sudo apt install root-system-bin

I am not unable to find where exactly I went wrong.

Pavel Demin (pavel-demin) said : #4

If you've downloaded a pre-built binary distribution for Ubuntu 16.04 (https://root.cern.ch/download/root_v6.12.06.Linux-ubuntu16-x86_64-gcc5.4.tar.gz), then you don't need to run make. You just need to setup the environment variables (PATH, etc) with the following command:

source root/bin/thisroot.sh

Priyanka Sarmah (priyanka511) said : #5

Hi

Problem is solved. Thank you so much for your help.

Best
Priyanka