Root interface with pythia8

This has nothing to do with pythia8 or ROOT, this is basic C++ programming… So just google for it :wink:

OK
Thank you so much :smiley:

i had modified sample program main02 to get its histogram output in root format .

after using

      g++ -O2 -ansi -pedantic -W -Wall -Wshadow -I$PYTHIA8/include -I$ROOTSYS/include mainz02.cc -o mainz02 

i don’t get any executable .
my program mainz02 is:
mainz02.cc (1.49 KB)

What is the output of your compilation line?

the output of my compilation line is too long.so i had copied it in a file attached below
com.dat (21.2 KB)

also my script pythia8.C(given in root/tutorials/pythia) is working by using