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.