LD_LIBRARY_PATH
DYLD_LIBRARY_PATH
.so
.dylib
examples
./configure --with-root=root-installation-directory
make
configure
examples/main91.cc
hist.root
examples/Makefile
main91.cc
examples/main92
main92.cc
main92LinkDef.h
main92.h
Pythia8
pytree.root
.L main92.so
main92.so
dlfcn.h
PythiaStdlib.h
// Stdlib header file for dynamic library loading. #ifndef __CINT__ #define dlsym __ #include <dlfcn.h> #undef dlsym #endif
--enable-shared
export PYTHIA8=path_to_PYTHIA8_installation
--enable-pythia8 --with-pythia8-incdir=$PYTHIA8/include/Pythia8 --with-pythia8-libdir=$PYTHIA8/lib
libEGPythia8
path_to_ROOT_source/montecarlo/pythia8
TPythia8
TGenerator
GenerateEvent()
ImportParticles(TClonesArray* particles)
TClonesArray
TParticles
ReadString(const char* string)
readString(...)
ReadConfigFile(const char* string)
readFile(...)
Initialize(int idAin, int idBin, double ecms)
init()
EventListing()
event.list()
PrintStatistic()
stat()
Pythia
TPythia8 *tp = new TPythia8(); Pythia8::Pythia *p = tp->Pythia8();
TPythia8Decayer
TVirtualMCDecayer
TPythia8Decayer::Init()
TPythia8Decayer::Decay(Int_t pdg, TLorentzVector* p)
pdg
p
TClonesArray particles
/path_to_ROOT_source/tutorials/pythia/pythia8.C /path_to_ROOT_installation/share/doc/root/tutorials/pythia/pythia8.C
PYTHIA8
PYTHIA8DATA
export PYTHIA8=/path_to_PYTHIA_installation export PYTHIA8DATA=$PYTHIA8/share/Pythia8/xmldoc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path_to_PYTHIA8_installation/lib
root pythia8.C
rootexamples
examples/main92LinkDef.h
gSystem->Load("path_to_PYTHIA8_installation/rootexamples/pythiaDict"); Pythia8::Pythia *p = new Pythia8::Pythia(); p->readString("SoftQCD:nonDiffractive = on");