why do i have to configure root everytime i open ma5

Asked by namrata manglani

hello everyone,
i m new to ma5, every time i open it in the terminal it gives me error because of root which goes away if i configure it . This problem reappears when i open the terminal next time .....is there any way to make this root configuration permanent ?
namrata

Question information

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

Dear Namrata,

I am not sure to have understood tue problem correctly. However, my simple guess would be to add the setup of the environment variables in your bashrc file.

Best regards,

Benjamin

Revision history for this message
namrata manglani (namrata201284) said :
#2

Dear Benjamin,
i did setup the enviornment variables in my bashrc file now the root problem is solved ....but m still getting the following error msg:
 ** ERROR: errors occured during compilation. For more details, see the file :
 ** ERROR: /home/namrata/Downloads/madanalysis5/tools/SampleAnalyzer/compilation.log
 ** ERROR: library building aborted.
wat to do to resolve this one ?
namrata

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

Dear Namrata,

Could you please provide me the log files.

Best regards,

Benjamin

Revision history for this message
namrata manglani (namrata201284) said :
#4

here is the content of the compilation.log

g++ -Wall -O3 -pthread -m64 -I/home/namrata/Downloads/root/include -I./../ -c -o Analyzer/AnalyzerManager.o Analyzer/AnalyzerManager.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)’
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:207:57: note: candidates are:
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:81:3: note: MA5::ParticleBaseFormat::ParticleBaseFormat(const TLorentzVector&)
./../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)
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:77:3: note: candidate expects 4 arguments, 1 provided
./../SampleAnalyzer/DataFormat/ParticleBaseFormat.h:73:3: note: MA5::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&)
./../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

what can be done to get rid of this error ?
namrata

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

This is really weird. Could you please provide some information about your system and compilers?

Cheers,

Benjamin

Revision history for this message
namrata manglani (namrata201284) said :
#6

hi benjamin,
when i hit ma5 it gives me the following ,

Checking mandatory packages:
     - python [OK]
     - python library: numpy [OK]
     - g++ [OK]
     - Root [OK]
     - PyRoot libraries [OK]
Checking optional packages:
     - gfortran [OK]
     - zlib library [DISABLED]
 ** WARNING: Library called 'libz' not found. Gzip format will be disabled.
 ** WARNING: To enable this format, please type 'install zlib' package.
     - delphes library [DISABLED]
 ** WARNING: Library called 'delphes' not found. Delphes ROOT format will be disabled.
 ** WARNING: To enable this format, please type 'install delphes'.
     - FastJet [DISABLED]
 ** WARNING: The fastJet package not found. JetClustering algorithms are disabled.
 ** WARNING: To enable this functionnality, please type 'install fastjet'.
     - pdflatex [OK]
     - latex [OK]
     - dvipdf [OK]
     - MCatNLO-utilities [DISABLED]
 ** WARNING: MCatNLO-utilities not found. Showering aMCatNLO events deactivated.
 ** WARNING: To install the utilities, please type 'install MCatNLO-utilities'.
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 = 4
     Answer: 2
     Number of cores used for the compilation = 2
 ** ERROR: errors occured during compilation. For more details, see the file :
 ** ERROR: /home/namrata/Downloads/madanalysis5/tools/SampleAnalyzer/compilation.log
 ** ERROR: library building aborted.

 i found similiar problem is comman to many users, here are the details of my system which may be useful to u for helping me,

 working with ubuntu 12.04,
python 2.7.3
these are the compilers ,

ii g++-4.6 4.6.3-1ubuntu5 GNU C++ compiler
ii gcc 4:4.6.3-1ubuntu5 GNU C compiler
ii gcc-4.6 4.6.3-1ubuntu5 GNU C compiler
ii gfortran 4:4.6.3-1ubuntu5 GNU Fortran 95 compiler
ii gfortran-4.6 4.6.3-1ubuntu5 GNU Fortran compiler
ii kuipc 20061220+dfsg3-2 CERNLIB data analysis suite - KUIP compiler
ii libprotoc7 2.4.1-1ubuntu2 protocol buffers compiler library
ii protobuf-compiler 2.4.1-1ubuntu2 compiler for protocol buffer definition files
 namrata

Revision history for this message
namrata manglani (namrata201284) said :
#7

hi benjamin,
i read ur solutions to others who have similiar issue as mine n tried to use the v1.1.10beta version n then when i hit ma5 i get the following error msg plz help.
Platform: Linux 3.2.0-61-generic [Linux mode]
Checking mandatory packages:
     - python [OK]
     - python library: numpy [OK]
     - g++ [OK]
     - GNU Make [OK]
     - Root [OK]
     - PyRoot libraries [OK]
Checking optional packages:
     - gfortran [OK]
     - zlib library [DISABLED]
 ** WARNING: Library called 'zlib' not found. Gzip format will be disabled.
 ** WARNING: To enable this format, please type 'install zlib' package.
     - delphes library [DISABLED]
 ** WARNING: Header file called '/modules/ParticlePropagator.h' not found. Delphes ROOT format will be disabled.
 ** WARNING: To enable this format, please type 'install delphes' package.
     - FastJet [DISABLED]
 ** WARNING: The FastJet package not found. JetClustering algorithms are disabled.
 ** WARNING: To enable this functionnality, please type 'install fastjet'.
     - pdflatex [OK]
     - latex [OK]
     - dvipdf [OK]
Checking the MadAnalysis library:
  => MadAnalysis libraries found.
  => First use of MadAnalysis (or the library is missing).

   **********************************************************
                Building SampleAnalyzer libraries
   **********************************************************
   How many cores for the compiling? default = max = 4
   Answer: 2
   => Number of cores used for the compilation = 2
   **********************************************************
   Library 1/1 - general SampleAnalyzer component
     - Writing a Makefile ...
     - Cleaning the project before building the library ...
     - Compiling the source files ...
     - Linking the library ...
     - Checking that the library is properly built ...
     - Cleaning the project after building the library ...
     => Status: [OK]
   **********************************************************
   Test program
     - Writing a Makefile ...
     - Cleaning the project before building the program ...
     - Compiling the source files ...
     - Linking the program ...
 ** ERROR: impossible to link the project. For more details, see the log file:
 ** ERROR: /home/namrata/v1.1.10beta/tools/SampleAnalyzer/Test/linking_test.log
 ** ERROR: test program building aborted.

namrata

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

Could you please try with v1.1.11beta and let me know if the problem persists?

Cheers,

Benjamin

Revision history for this message
namrata manglani (namrata201284) said :
#9

hi benjamin,
thanks for ur reply.....finally with this beta v1.1.11 i actually got to ma5 prompt .....cheers !
MadGraph 5 NOT found:
  => Particle labels from input/particles_name_default.txt
  => 87 particles successfully exported.
  => Multiparticle labels from madanalysis/input/multiparticles_default.txt
  => Creation of the label 'invisible' (-> missing energy).
  => Creation of the label 'hadronic' (-> jet energy).
  => 8 multiparticles successfully exported.
ma5>
 this is the last something i just got .....but why does it say madgraph not found ? .....is there something still wrong ?
please reply....once again thanks a lot for ur help .
namrata

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

Hi,

Don't worry about the madgraph statement. This means madanalysis will be used as a standalone package. This is more for future developments in the case the code is embedded fully into madgraph.

Cheers,

Benjamin

Can you help with this problem?

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

To post a message you must log in.