Re: Using ROOT for Histogramms in Pythia8

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Wed, 12 Jan 2011 17:29:13 +0100


Hi,

that's a different error. You forgot to set LD_LIBRARY_PATH to point to libpythia8.so

Cheers, Axel.

Wajid Ali Khan wrote on 01/12/2011 05:27 PM:

> Hi Naumann,
> 
> I have followed your email but I am still ending up with the following
> problem. I did it in the following way will sitting in the pythia8145/
> directory. Rest of the errors are no longer there except this one.
> 
> =========
> error while loading shared libraries: libpythia8.so: cannot open shared
> object file: No such file or directory
> =========
> [root_at_Wajid pythia8145]# patch -p1 < Pythia8145_namespace_func_decl.diff
> (Stripping trailing CRs from patch.)
> patching file include//Analysis.h
> (Stripping trailing CRs from patch.)
> patching file include//Basics.h
> 
> [root_at_Wajid pythia8145]# make -j4
> Making dependency for file src/UserHooks.cc
> Making dependency for file src/TimeShower.cc
> Making dependency for file src/SusyResonanceWidths.cc
> Making dependency for file src/SusyCouplings.cc
> Making dependency for file src/StandardModel.cc
> Making dependency for file src/SpaceShower.cc
> Making dependency for file src/SigmaTotal.cc
> Making dependency for file src/StringFragmentation.cc
> Making dependency for file src/SigmaSUSY.cc
> Making dependency for file src/SigmaQCD.cc
> Making dependency for file src/SigmaProcess.cc
> 
> .
> .
> .
> .
> .
> =========
> [root_at_Wajid rootexample]# ./goex1
> [root_at_Wajid rootexample]# ls
> ex1  ex1.C  goex1  pythiaDict.cxx  pythiaDict.h  pythiaLinkdef.h 
> pythiaROOT.h  README
> [root_at_Wajid rootexample]# ./ex1
> ./ex1: error while loading shared libraries: libpythia8.so: cannot open
> shared object file: No such file or directory
> 
> Regards
> WA
> 
> 
> 
> ________________________________________
> From: Axel Naumann
> Sent: 12 January 2011 09:21
> To: Wajid Ali Khan
> Cc: roottalk_at_root.cern.ch; torbjorn_at_thep.lu.se
> Subject: Re: [ROOT] Using ROOT for Histogramms in Pythia8
> 
> Hi Wajid,
> 
> take the attached file and run
> 
> cd wherever-you-pythia8-sources-are
> patch -p1 < Pythia8145_namespace_func_decl.diff
> make -j4
> 
> That will fix it.
> 
> Cheers, Axel.
> 
> 
> Wajid Ali Khan wrote on 01/12/2011 05:36 AM:

>> Hi Naumann,
>> So that would mean it is not possible to use ROOT V5.26 with this
>> version of pythia8145. One has to wait for next version of pythia.Do we
>> have some alternative to it?
>>

>> Regards
>> Wajid Ali
>> ________________________________________
>> From: Axel Naumann
>> Sent: 11 January 2011 17:09
>> To: Wajid Ali Khan
>> Cc: roottalk_at_root.cern.ch; torbjorn_at_thep.lu.se
>> Subject: Re: [ROOT] Using ROOT for Histogramms in Pythia8
>>

>> Hi Wajid,
>>

>> this patch to Pythia8 should get you going. Torbjörn told me that we
>> should expect it to end up in the next Pythia8 version.
>>

>> Cheers, Axel.
>>
>>

>> Wajid Ali Khan wrote on 01/10/2011 02:22 PM:
>>>
>>> Hi Rooters,
>>>
>>> I am trying to use ROOT for histogramming inside pythia. I have Root

>> version 5.26 and pythia8315 installed on my machine. My machine
>> information is
>>> ============
>>> Linux Wajid 2.6.18-194.26.1.el5 #1 SMP Wed Nov 10 09:51:11 CET 2010

>> i686 i686 i386 GNU/Linux
>>> ============
>>>
>>> config.mk in pytha8315/ is
>>> ============
>>> SHELL = /bin/sh
>>> ARCH = Linux-gcc4
>>> MYLCGPLATFORM = slc4_ia32_gcc34
>>> SHAREDLIBS = yes
>>> FC = gfortran
>>> CC = gcc
>>> FFLAGS = -O2 -fbounds-check
>>> CFLAGS = -O2 -fbounds-check
>>> CXXFLAGS = -O2 -ansi -pedantic -W -Wall -Wshadow -fbounds-check
>>> FLIBS = -lgfortran -lgfortranbegin
>>> LDFLAGSSHARED = -O2 -ansi -pedantic -W -Wall -Wshadow -fbounds-check

>> -pthread -fPIC -shared
>>> LDFLAGLIBNAME = -Wl,-soname
>>> SHAREDSUFFIX = so
>>> HEPMCVERSION = 2.06.03
>>> HEPMCLOCATION = /root/hepmc/install
>>> ============
>>> Both of these are working perfectly fine indeepently. I have also

>> configured pythia with --enabled--shared and also ROOT is configured
>> with pythia8. The example in /root/root/tutorial/pythia8.C is working
>> perfectly fine. What I am trying to do is execute the
>> /pythia8145/rootexample/goex1. When I execute this script I end up with
>> the following error. Is there any shared file missing I guess.
>>>
>>> Thank for your anticipation.
>>> Regards
>>> Wajid Ali
>>>
>>> ./goex1 >& error.log
>>> ==============================
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_14(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5587: error: invalid initialization of reference of type

>> ‘const Pythia8::Particle&’ from expression of type ‘Pythia8::Vec4’
>>> /root/pythia8145/include/Event.h:288: error: in passing argument 1 of

>> ‘double Pythia8::m(const Pythia8::Particle&, const Pythia8::Particle&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_15(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5593: error: invalid initialization of reference of type

>> ‘const Pythia8::Particle&’ from expression of type ‘Pythia8::Vec4’
>>> /root/pythia8145/include/Event.h:289: error: in passing argument 1 of

>> ‘double Pythia8::m2(const Pythia8::Particle&, const Pythia8::Particle&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_16(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5599: error: ‘dot3’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_17(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5607: error: ‘cross3’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_18(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5618: error: ‘theta’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_19(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5624: error: ‘costheta’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_20(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5630: error: no matching function for call to

>> ‘phi(Pythia8::Vec4&, Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_21(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5636: error: no matching function for call to

>> ‘cosphi(Pythia8::Vec4&, Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_22(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5643: error: no matching function for call to

>> ‘phi(Pythia8::Vec4&, Pythia8::Vec4&, Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_23(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5650: error: no matching function for call to

>> ‘cosphi(Pythia8::Vec4&, Pythia8::Vec4&, Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_24(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5657: error: no matching function for call to

>> ‘operator<<(std::basic_ostream<char, std::char_traits<char> >&,
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_25(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5667: error: no matching function for call to

>> ‘operator<<(std::basic_ostream<char, std::char_traits<char> >&,
>> Pythia8::RotBstMatrix&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_26(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5677: error: no matching function for call to

>> ‘operator<<(std::basic_ostream<char, std::char_traits<char> >&,
>> Pythia8::Hist&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_27(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5689: error: no matching function for call to

>> ‘table(Pythia8::Hist&, Pythia8::Hist&, std::basic_ostream<char,
>> std::char_traits<char> >&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_27(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5689: error: no matching function for call to

>> ‘table(Pythia8::Hist&, Pythia8::Hist&, std::basic_ostream<char,
>> std::char_traits<char> >&)’
>>> pythiaDict.cxx:5693: error: no matching function for call to

>> ‘table(Pythia8::Hist&, Pythia8::Hist&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_28(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5703: error: no matching function for call to

>> ‘table(Pythia8::Hist&, Pythia8::Hist&, std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_29(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5712: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:230: error: in passing argument 2 of

>> ‘Pythia8::Vec4 Pythia8::operator+(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_30(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5725: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:230: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator+(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_31(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5738: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:230: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator+(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_32(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5751: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:233: error: in passing argument 2 of

>> ‘Pythia8::Vec4 Pythia8::operator-(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_33(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5764: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:233: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator-(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_34(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5777: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:233: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator-(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_35(G__value*,

>> const char*, G__param*, int)’:
>>> /root/pythia8145/include/Basics.h:233: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator-(const Pythia8::Vec4&, const
>> Pythia8::Vec4&)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_35(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5790: error: no matching function for call to

>> ‘operator*(double, Pythia8::Hist&)’
>>> /root/pythia8145/include/Basics.h:245: note: candidates are: double

>> Pythia8::operator*(const Pythia8::Vec4&, const Pythia8::Vec4&)
>>> /root/pythia8145/include/Basics.h:239: note:

>> Pythia8::Vec4 Pythia8::operator*(const Pythia8::Vec4&, double)
>>> /root/pythia8145/include/Basics.h:236: note:

>> Pythia8::Vec4 Pythia8::operator*(double, const Pythia8::Vec4&)
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_36(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5803: error: no matching function for call to

>> ‘operator*(Pythia8::Hist&, double)’
>>> /root/pythia8145/include/Basics.h:245: note: candidates are: double

>> Pythia8::operator*(const Pythia8::Vec4&, const Pythia8::Vec4&)
>>> /root/pythia8145/include/Basics.h:239: note:

>> Pythia8::Vec4 Pythia8::operator*(const Pythia8::Vec4&, double)
>>> /root/pythia8145/include/Basics.h:236: note:

>> Pythia8::Vec4 Pythia8::operator*(double, const Pythia8::Vec4&)
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_37(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5816: error: no matching function for call to

>> ‘operator*(Pythia8::Hist&, Pythia8::Hist&)’
>>> /root/pythia8145/include/Basics.h:245: note: candidates are: double

>> Pythia8::operator*(const Pythia8::Vec4&, const Pythia8::Vec4&)
>>> /root/pythia8145/include/Basics.h:239: note:

>> Pythia8::Vec4 Pythia8::operator*(const Pythia8::Vec4&, double)
>>> /root/pythia8145/include/Basics.h:236: note:

>> Pythia8::Vec4 Pythia8::operator*(double, const Pythia8::Vec4&)
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_38(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5829: error: cannot convert ‘Pythia8::Hist’ to ‘double’

>> for argument ‘2’ to ‘Pythia8::Vec4 Pythia8::operator/(const
>> Pythia8::Vec4&, double)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_39(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5842: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:242: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator/(const Pythia8::Vec4&, double)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_40(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5855: error: invalid initialization of reference of type

>> ‘const Pythia8::Vec4&’ from expression of type ‘Pythia8::Hist’
>>> /root/pythia8145/include/Basics.h:242: error: in passing argument 1 of

>> ‘Pythia8::Vec4 Pythia8::operator/(const Pythia8::Vec4&, double)’
>>> pythiaDict.cxx: In function ‘int G__pythiaDict_406_0_43(G__value*,

>> const char*, G__param*, int)’:
>>> pythiaDict.cxx:5878: error: ‘dist2Fun’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx: In function ‘void G__setup_memfuncPythia8()’:
>>> pythiaDict.cxx:17543: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17545: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17543: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17545: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17547: error: ‘dot3’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx:17549: error: ‘cross3’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx:17551: error: ‘theta’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx:17553: error: ‘costheta’ is not a member of ‘Pythia8’
>>> pythiaDict.cxx:17555: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17557: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17560: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17563: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17565: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17567: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17569: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17572: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17575: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17577: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17579: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17581: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17583: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17585: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17587: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17589: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17591: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17593: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17595: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17597: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17599: error: address of overloaded function with no

>> contextual type information
>>> pythiaDict.cxx:17606: error: ‘dist2Fun’ is not a member of ‘Pythia8’
>>> ==============================
>>>
>>>
>>
> 
Received on Wed Jan 12 2011 - 17:29:31 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 13 2011 - 05:50:01 CET