]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PYTHIA8/pythia8175/README.HepMC
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PYTHIA8 / pythia8175 / README.HepMC
CommitLineData
c6b60c38 1How to install HepMC on your laptop (Linux/Mac OSX) and link to Pythia
2
3As of Pythia 8.175 support for older HepMC versions have been dropped,
4so you have to use HepMC version 2.06 (or later), Here is an example
5for HepMC 2.06.08 that works for me, but it comes with no guarantee.
6
71) Create a directory where you want to do the installation, e.g.
8 mkdir hepmc
9and move to it
10 cd hepmc
11
122) Open
13 http://lcgapp.cern.ch/project/simu/HepMC/download
14in a browser, scroll down to "HepMC 2.06.08" and pick the version relevant
15for your platform from the list to the right.
16
173) In the pop-up menu pick "Save to file" and then the above hepmc directory.
18You should now have the appropriate version in that directory,
19e.g. HepMC-2.06.08-x86_64-mac106-gcc42-opt.tar.gz on a current Mac.
20
214) Unpack with
22 tar -xzf file.tar.gz
23with "file" the name of the downloaded file. This will create a new directory,
24e.g. x86_64-mac106-gcc42-opt/, where ready-to-use libraries can be found.
25
265) Now move to your pythia8175 (or later) directory and configure with
27 ./configure --with-hepmc=mypath/hepmc/newdir --with-hepmcversion=2.06.08
28 where "mypath" is the absolute path to the hepmc directory (use pwd if
29 in doubt) and "newdir" is the name of the new directory created in step 4.
30 (Re)compile with "make" (or "gmake") as usual.
31
326) Move to the examples subdirectory and do
33 source config.sh
34 source config.csh
35Only one of them will work, depending on which shell you use, but the other
36should be harmless.
37
387) You should now be able to make and run e.g. main41 to produce HepMC
39output files.