Scripts developed in order to simulate data in Pythia, specially data on charged-particle multiplicity distribution.
Download instructions available on : https://pythia.org/
Main directories:
- Tutorials
- Multiplicity-Scripts
In this directory, one can find a set o simple tutorials in which focus on the learning process of the framework syntaxe. All of them are available in video on Physics Matter Channel link.
- tutorial1.cc simulates a proton-proton collision
- tutorial2.cc Creates histograms from simulated data
- tutorial3.cc Creates ROOT Trees from simulated data
In this directory, one can locate a examples of simulations developed for the analysis of multiplicity distribution according to energy,
The directory is divided in three sections, and its hierarchy is presented bellow:
- /analysis - Folder with Python and R scripts that analyse the results from scripts, making graphics and other plots
- /results - Folder with some of the results made by the analysis
- /src - Folder with scripts for the simulation
While running the executables, the following error may appears:
error while loading shared libraries: libpythia8.so: cannot open shared object file: No such file or directory
In this case, the path to the correct library is needed. In order to define it, run the command mentioned bellow:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/lucasjfsilva/pythia/pythia8315/libIn case something similar appears while executing a Pythia script that contains a specific plugin (e.g. HepMC3), run the following command:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH In order to make it easy the compilation process, one can create a makefile that register the command:
touch MakefileThe simplest structure for this file is:
executable_name : file_to_be_compiled.xx
g++ $@.cc -I/path/to/include -L/path/to/lib -lpythia8 -o $@Once the file is created, one only needs to the execute the following commands in order to compile and run the executable, respectively
make executable_name
./executable_name