Logo

PARTONS: PARtonic Tomography Of Nucleon Software

This page:
about
instalation
usage
development
license
acknowledgements
contact

View GitHub repository:
link

View Docker repository:
link

View reference article:
doi   arXiv   inspire

Installation


Getting the code

The project is composed of three subprojects, which you need to compile one by one in the following order:

It is complemented by an additional subproject containing executables with a collection of examples:

All files related to the project are stored in the repository hosted on github. Click on the links above to access the code for the four subprojects. If you are not familiar with git and github, you can check this tutorial.

Dependencies

The project is written in C++ using the C++11 standard. It requires the following external libraries, which can easily be found in the repositories of the most popular operating systems:

In addition, the project requires the following libraries used in particle physics, which you may need to install from source:

Compilation, linking and installation

This step is managed by cmake. Let us demonstrate how to download the development version of elementary-utils, prepare the compilation environment, build the library, and (optionally) install it:

# download the project using the git command-line tool
git clone https://github.com/3d-partons/elementary-utils.git

# go to the build directory
cd elementary-utils/build

# run cmake to set up the compilation
cmake ..

# make the library
make

# (optionally) install the library (admin access rights may be needed)
make install

The last step is optional. If you do not want to install the library in your system, make sure to download each subproject into the same directory (so they are at the same level). This will allow for straightforward detection of dependencies.

After compiling elementary-utils, numa and partons subprojects, as well as the partons-example executable, you can check if it works by running a minumum working example described here.