MadAnalysis library compilation errors

Asked by hepph

Dear developers,
     I want to use madanalysis5 on my laptop, but when I finished installation and started it with bin/ma5, the following error messages issued:

Checking the MadAnalysis library:
  => First use of MadAnalysis (or the library is missing).
   Creating a 'Makefile'...
   Compiling the MadAnalysis library...
     => How many cores for the compiling? default = max = 2
     Answer:
     Number of cores used for the compilation = 2
 ** ERROR: errors occured during compilation. For more details, see the file :
 ** ERROR: /home/ace/madanalysis5/tools/SampleAnalyzer/compilation.log
 ** ERROR: library building aborted.

I checked the compilation log file /home/ace/madanalysis5/tools/SampleAnalyzer/compilation.log which said:

g++ -Wall -O3 -pthread -m32 -I/home/sunyb/ProgramFiles/src/root/include -I./../ -c -o Analyzer/AnalyzerManager.o Analyzer/AnalyzerManager.cpp
g++ -Wall -O3 -pthread -m32 -I/home/sunyb/ProgramFiles/src/root/include -I./../ -c -o Analyzer/MergingPlots.o Analyzer/MergingPlots.cpp
g++ -Wall -O3 -pthread -m32 -I/home/sunyb/ProgramFiles/src/root/include -I./../ -c -o Core/castorstream.o Core/castorstream.cpp
g++ -Wall -O3 -pthread -m32 -I/home/sunyb/ProgramFiles/src/root/include -I./../ -c -o Core/Configuration.o Core/Configuration.cpp
In file included from ./../SampleAnalyzer/DataFormat/MCParticleFormat.h:35:0,
                 from ./../SampleAnalyzer/DataFormat/MCEventFormat.h:35,
                 from ./../SampleAnalyzer/DataFormat/EventFormat.h:35,
                 from ./../SampleAnalyzer/Analyzer/AnalyzerBase.h:29,
                 from ./../SampleAnalyzer/Analyzer/AnalyzerManager.h:29,
                 from Analyzer/AnalyzerManager.cpp:30:
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h: In member function ‘MA5::ParticleBaseFormat MA5::ParticleBaseFormat::operator*(const MA5::ParticleBaseFormat&) const’:
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:207:57: error: no matching function for call to ‘MA5::ParticleBaseFormat::ParticleBaseFormat(Double_t)’
   { return ParticleBaseFormat(momentum_.Dot(p.momentum_)); }
                                                         ^
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:207:57: note: candidates are:
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:81:3: note: MA5::ParticleBaseFormat::ParticleBaseFormat(const TLorentzVector&)
   ParticleBaseFormat(const TLorentzVector& p)
   ^
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:81:3: note: no known conversion for argument 1 from ‘Double_t {aka double}’ to ‘const TLorentzVector&’
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:77:3: note: MA5::ParticleBaseFormat::ParticleBaseFormat(Double_t, Double_t, Double_t, Double_t)
   ParticleBaseFormat(Double_t px, Double_t py, Double_t pz, Double_t e)
   ^
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:77:3: note: candidate expects 4 arguments, 1 provided
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:73:3: note: MA5::ParticleBaseFormat::ParticleBaseFormat()
   ParticleBaseFormat()
   ^
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:73:3: note: candidate expects 0 arguments, 1 provided
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:50:7: note: MA5::ParticleBaseFormat::ParticleBaseFormat(const MA5::ParticleBaseFormat&)
 class ParticleBaseFormat
       ^
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:50:7: note: no known conversion for argument 1 from ‘Double_t {aka double}’ to ‘const MA5::ParticleBaseFormat&
make: *** [Analyzer/AnalyzerManager.o] Error 1
make: *** Waiting for unfinished jobs....

I have no idea about it, Could you help me?

Ps: my OS is ubuntu 14.04 with python 2.7.6, ROOT 5.34/18, g++ 4.82.

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi,

Could you please specify the version of the code that you are employing? Could you try with v1.1.10?

Cheers,

Benjamin

Revision history for this message
hepph (rabbit001) said :
#2

Dear

Thanks for your help.
I used the code with version 1.1.9.
but I don't know where the new version 1.1.10 can be downloaded?

cheers,

Revision history for this message
Best Benjamin Fuks (fuks) said :
#3

Hi,

Please follow that link:
  https://code.launchpad.net/~ma5/madanalysis5/v1.1.10beta

Cheers,

Benjamin

Revision history for this message
hepph (rabbit001) said :
#4

Thanks Benjamin Fuks, that solved my question.