source: HiSusy/trunk/Pythia8/pythia8170/rootexamples/README @ 1

Last change on this file since 1 was 1, checked in by zerwas, 11 years ago

first import of structure, PYTHIA8 and DELPHES

File size: 2.0 KB
Line 
1This directory contains files contributed by Rene Brun and
2Axel Naumann, which illustrate how ROOT commands can be used
3inside PYTHIA code. You should read the "ROOT usage" page
4in the manual to understand the function of the files, and
5how to set up the environment in which they can be used.
6
7The practical steps to be taken, assuming you use the bash shell,
8are:
9
101) Add to your ".bashrc" file (in your home directory)
11the following lines:
12
13########################################################
14# Root path and libraries:
15source /Path_to_ROOT/root/bin/thisroot.sh
16 
17# Pythia 8 path and libraries:
18export PYTHIA8=/Path_to_Pythia8/pythia81xx/
19export LD_LIBRARY_PATH=$PYTHIA8/lib:$LD_LIBRARY_PATH
20########################################################
21
22where xx is the Pythia 8.1 subversion.
23As usual type "source .bashrc" after the changes.
24
252) Before compilation, configure Pythia 8 with shared libraries:
26
27./configure --enable-shared
28
293) "make hist"  builds an application for histogramming
30Pythia output (alternatively "make" builds and runs all examples).
31
324) "./hist" runs the example showing the Pythia output histogram
33in Root format.
34
355) You can correspondingly try the "tree" program, which illustrates
36how Pythia event records can be saved by Root. Needless to say, files
37can become quite large when many events are generated.
38
396) When upgrading to a new Pythia subversion you should re-generate
40pythiaDict.cxx to reflect the new classes:
41
42cd NewPythiaVersion/rootexamples
43make pythiaDict.cxx
44
45and use the generated pythiaDict.h and pythiaDict.cxx for building
46your program.
47
487) For FastJet use, add the following lines to the Makefile:
49
50CXXFLAGS += -I/Path_to_FastJet/include
51
52-L$(PYTHIA8)/lib -lpythia8 -llhapdfdummy -L/Path_to_FastJet/lib -lfastjet
53
54where "Path_to_FastJet" is the directory where FastJet was installed.
55Finally, add to your ".bashrc" file the following line:
56
57export LD_LIBRARY_PATH=//Path_to_FastJet/lib:LD_LIBRARY_PATH
58
59and type "source .bashrc" after the changes.
Note: See TracBrowser for help on using the repository browser.