Re: Using ROOT for Histogramms in Pythia8

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 11 Jan 2011 17:09:01 +0100


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 Tue Jan 11 2011 - 17:09:07 CET

This archive was generated by hypermail 2.2.0 : Wed Jan 12 2011 - 05:50:01 CET