TLorentzVector.h cannot be found

Asked by Norhan Mahmoud Mohamed Eassa on 2019-01-12

I've been trying to install both MadAnalysis5 and Delphes 3.4.1 but am having a real hard time. I've downloaded the binary version of root_v6.14.06 compatible with Ubuntu 14.04. When I tried to install MadAnalysis5, the following error appeared.
norhan@NORHAN:~/Programs/madanalysis5$ ./bin/ma5
MA5:
MA5: *************************************************************
MA5: * *
MA5: * W E L C O M E to M A D A N A L Y S I S 5 *
MA5: * ______ ______ *
MA5: * /'\_/`\/\ __ \/\ ___\ *
MA5: * /\ \ \ \_\ \ \ \__/ *
MA5: * \ \ \__\ \ \ __ \ \___``\ *
MA5: * \ \ \_/\ \ \ \/\ \/\ \_\ \ *
MA5: * \ \_\\ \_\ \_\ \_\ \____/ *
MA5: * \/_/ \/_/\/_/\/_/\/___/ *
MA5: * *
MA5: * MA5 release : 1.6 2018/05/04 *
MA5: * *
MA5: * Comput. Phys. Commun. 184 (2013) 222-256 *
MA5: * Eur. Phys. J. C74 (2014) 3103 *
MA5: * *
MA5: * The MadAnalysis Development Team - Please visit us at *
MA5: * https://launchpad.net/madanalysis5 *
MA5: * *
MA5: * Type 'help' for in-line help. *
MA5: * *
MA5: *************************************************************
MA5: Platform: Linux 4.4.0-130-generic [Linux mode]
MA5: Reading user settings ...
MA5: Checking mandatory packages:
MA5: - Python [OK]
MA5: - GNU GCC g++ [OK]
MA5: - GNU Make [OK]
MA5: Checking optional packages devoted to data processing:
MA5: - Zlib [DISABLED]
MA5: - SciPy [DISABLED]
MA5: - FastJet [DISABLED]
MA5: - Root [OK]
MA5: - Delphes [DISABLED]
MA5: - Delphes-MA5tune [DISABLED]
MA5: Checking optional packages devoted to histogramming:
MA5: - Root [OK]
MA5: - Matplotlib [DISABLED]
MA5: - pdflatex [DISABLED]
MA5-WARNING: pdflatex disabled. Reports under the pdf format will not be compiled.
MA5: - latex [DISABLED]
MA5-WARNING: latex disabled. Reports under the dvi format will not be compiled.
MA5: Package used for graphical rendering: Root
MA5: Checking the MadAnalysis 5 core library:
MA5: => First use of MadAnalysis (or the library is missing).
MA5:
MA5: **********************************************************
MA5: Building SampleAnalyzer libraries
MA5: **********************************************************
MA5: How many cores for the compiling? default = max = 8
   Answer: 8
MA5: => Number of cores used for the compilation = 8
MA5: Writing the setup files ...
MA5: Writing all the Makefiles ...
MA5: **********************************************************
MA5: Component 1/7 - test program: SampleAnalyzer configuration
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 2/7 - library: SampleAnalyzer commons
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 3/7 - test program: SampleAnalyzer commons
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 4/7 - library: interface to Root
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5-ERROR: impossible to compile the project. For more details, see the log file:
MA5-ERROR: /home/norhan/Programs/madanalysis5/tools/SampleAnalyzer/Interfaces/compilation_root.log
MA5-ERROR: The library building aborted.

The log file says the following:
g++ -Wall -O3 -fPIC -I/home/norhan/Programs/madanalysis5/tools/ -pthread -m64 -I/usr/include/root -o root/RootMainHeaders.o -c root/RootMainHeaders.cpp
g++ -Wall -O3 -fPIC -I/home/norhan/Programs/madanalysis5/tools/ -pthread -m64 -I/usr/include/root -o root/ROOTReader.o -c root/ROOTReader.cpp
g++ -Wall -O3 -fPIC -I/home/norhan/Programs/madanalysis5/tools/ -pthread -m64 -I/usr/include/root -o root/TreeReaderBase.o -c root/TreeReaderBase.cpp
In file included from root/RootMainHeaders.cpp:26:0:
/home/norhan/Programs/madanalysis5/tools/SampleAnalyzer/Interfaces/root/RootMainHeaders.h:34:28: fatal error: TLorentzVector.h: No such file or directory
 #include <TLorentzVector.h>
                            ^
compilation terminated.
make: *** [root/RootMainHeaders.o] Error 1
make: *** Waiting for unfinished jobs....

And for Delphes, the following error appeared:

norhan@NORHAN:~/Programs/Delphes-3.4.1$ make
>> Generating tmp/classes/ClassesDict.cc
Error: cannot open file "TLorentzVector.h" classes/DelphesClasses.h:38:
Error: Symbol TLorentzVector TrimmedP4[5] is not defined in current scope classes/DelphesClasses.h:390:
Error: Symbol TLorentzVector PrunedP4[5] is not defined in current scope classes/DelphesClasses.h:391:
Error: Symbol TLorentzVector SoftDroppedP4[5] is not defined in current scope classes/DelphesClasses.h:392:
Error: Symbol TLorentzVector Area is not defined in current scope classes/DelphesClasses.h:405:
Error: Symbol TLorentzVector Momentum,Position,InitialPosition,PositionError,Area is not defined in current scope classes/DelphesClasses.h:562:
Error: Symbol TLorentzVector TrimmedP4[5] is not defined in current scope classes/DelphesClasses.h:627:
Error: Symbol TLorentzVector PrunedP4[5] is not defined in current scope classes/DelphesClasses.h:628:
Error: Symbol TLorentzVector SoftDroppedP4[5] is not defined in current scope classes/DelphesClasses.h:629:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing tmp/classes/ClassesDict.cc tmp/classes/ClassesDict.h !!!
Error: rootcint: error loading headers...
make: *** [tmp/classes/ClassesDict.cc] Error 1

There is some kind of problem with TLorentzVector.h (which I have found in the root file that I've installed, it is supposedly not missing). I don't know what should I do.

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
2019-01-15
Last query:
2019-01-15
Last reply:
2019-01-13
Best Benjamin Fuks (fuks) said : #1

Hi,

Your environement is probably not setup correctly. Have you executed the thisroot.sh script in the shell before starting ma5?

Cheers,

Benjamin

> On 12 Jan 2019, at 02:10 , Norhan Mahmoud Mohamed Eassa <email address hidden> wrote:
>
> New question #677517 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/677517
>
> I've been trying to install both MadAnalysis5 and Delphes 3.4.1 but am having a real hard time. I've downloaded the binary version of root_v6.14.06 compatible with Ubuntu 14.04. When I tried to install MadAnalysis5, the following error appeared.
> norhan@NORHAN:~/Programs/madanalysis5$ ./bin/ma5
> MA5:
> MA5: *************************************************************
> MA5: * *
> MA5: * W E L C O M E to M A D A N A L Y S I S 5 *
> MA5: * ______ ______ *
> MA5: * /'\_/`\/\ __ \/\ ___\ *
> MA5: * /\ \ \ \_\ \ \ \__/ *
> MA5: * \ \ \__\ \ \ __ \ \___``\ *
> MA5: * \ \ \_/\ \ \ \/\ \/\ \_\ \ *
> MA5: * \ \_\\ \_\ \_\ \_\ \____/ *
> MA5: * \/_/ \/_/\/_/\/_/\/___/ *
> MA5: * *
> MA5: * MA5 release : 1.6 2018/05/04 *
> MA5: * *
> MA5: * Comput. Phys. Commun. 184 (2013) 222-256 *
> MA5: * Eur. Phys. J. C74 (2014) 3103 *
> MA5: * *
> MA5: * The MadAnalysis Development Team - Please visit us at *
> MA5: * https://launchpad.net/madanalysis5 *
> MA5: * *
> MA5: * Type 'help' for in-line help. *
> MA5: * *
> MA5: *************************************************************
> MA5: Platform: Linux 4.4.0-130-generic [Linux mode]
> MA5: Reading user settings ...
> MA5: Checking mandatory packages:
> MA5: - Python [OK]
> MA5: - GNU GCC g++ [OK]
> MA5: - GNU Make [OK]
> MA5: Checking optional packages devoted to data processing:
> MA5: - Zlib [DISABLED]
> MA5: - SciPy [DISABLED]
> MA5: - FastJet [DISABLED]
> MA5: - Root [OK]
> MA5: - Delphes [DISABLED]
> MA5: - Delphes-MA5tune [DISABLED]
> MA5: Checking optional packages devoted to histogramming:
> MA5: - Root [OK]
> MA5: - Matplotlib [DISABLED]
> MA5: - pdflatex [DISABLED]
> MA5-WARNING: pdflatex disabled. Reports under the pdf format will not be compiled.
> MA5: - latex [DISABLED]
> MA5-WARNING: latex disabled. Reports under the dvi format will not be compiled.
> MA5: Package used for graphical rendering: Root
> MA5: Checking the MadAnalysis 5 core library:
> MA5: => First use of MadAnalysis (or the library is missing).
> MA5:
> MA5: **********************************************************
> MA5: Building SampleAnalyzer libraries
> MA5: **********************************************************
> MA5: How many cores for the compiling? default = max = 8
> Answer: 8
> MA5: => Number of cores used for the compilation = 8
> MA5: Writing the setup files ...
> MA5: Writing all the Makefiles ...
> MA5: **********************************************************
> MA5: Component 1/7 - test program: SampleAnalyzer configuration
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 2/7 - library: SampleAnalyzer commons
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 3/7 - test program: SampleAnalyzer commons
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 4/7 - library: interface to Root
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5-ERROR: impossible to compile the project. For more details, see the log file:
> MA5-ERROR: /home/norhan/Programs/madanalysis5/tools/SampleAnalyzer/Interfaces/compilation_root.log
> MA5-ERROR: The library building aborted.
>
> The log file says the following:
> g++ -Wall -O3 -fPIC -I/home/norhan/Programs/madanalysis5/tools/ -pthread -m64 -I/usr/include/root -o root/RootMainHeaders.o -c root/RootMainHeaders.cpp
> g++ -Wall -O3 -fPIC -I/home/norhan/Programs/madanalysis5/tools/ -pthread -m64 -I/usr/include/root -o root/ROOTReader.o -c root/ROOTReader.cpp
> g++ -Wall -O3 -fPIC -I/home/norhan/Programs/madanalysis5/tools/ -pthread -m64 -I/usr/include/root -o root/TreeReaderBase.o -c root/TreeReaderBase.cpp
> In file included from root/RootMainHeaders.cpp:26:0:
> /home/norhan/Programs/madanalysis5/tools/SampleAnalyzer/Interfaces/root/RootMainHeaders.h:34:28: fatal error: TLorentzVector.h: No such file or directory
> #include <TLorentzVector.h>
> ^
> compilation terminated.
> make: *** [root/RootMainHeaders.o] Error 1
> make: *** Waiting for unfinished jobs....
>
> And for Delphes, the following error appeared:
>
> norhan@NORHAN:~/Programs/Delphes-3.4.1$ make
>>> Generating tmp/classes/ClassesDict.cc
> Error: cannot open file "TLorentzVector.h" classes/DelphesClasses.h:38:
> Error: Symbol TLorentzVector TrimmedP4[5] is not defined in current scope classes/DelphesClasses.h:390:
> Error: Symbol TLorentzVector PrunedP4[5] is not defined in current scope classes/DelphesClasses.h:391:
> Error: Symbol TLorentzVector SoftDroppedP4[5] is not defined in current scope classes/DelphesClasses.h:392:
> Error: Symbol TLorentzVector Area is not defined in current scope classes/DelphesClasses.h:405:
> Error: Symbol TLorentzVector Momentum,Position,InitialPosition,PositionError,Area is not defined in current scope classes/DelphesClasses.h:562:
> Error: Symbol TLorentzVector TrimmedP4[5] is not defined in current scope classes/DelphesClasses.h:627:
> Error: Symbol TLorentzVector PrunedP4[5] is not defined in current scope classes/DelphesClasses.h:628:
> Error: Symbol TLorentzVector SoftDroppedP4[5] is not defined in current scope classes/DelphesClasses.h:629:
> Warning: Error occurred during reading source files
> Warning: Error occurred during dictionary source generation
> !!!Removing tmp/classes/ClassesDict.cc tmp/classes/ClassesDict.h !!!
> Error: rootcint: error loading headers...
> make: *** [tmp/classes/ClassesDict.cc] Error 1
>
> There is some kind of problem with TLorentzVector.h (which I have found in the root file that I've installed, it is supposedly not missing). I don't know what should I do.
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Thanks Benjamin Fuks, that solved my question.

I am sorry for my late reply Dr. Fuks. Thank you for bringing to my attention this problem.