Skip to main content
Ctrl K

R3BRoot

Software for simulations and data analysis of Reactions with Relativistic Radioactive Beams (R3B) experiments at GSI/FAIR

70
contributors
Get started
1237 commitsLast commit ≈ 2 months ago21 stars121 forks

Cite this software

Description

R3BRoot Software license

DOI OpenSSF Best Practices fair-software.eu CI-CD Static Analysis Validate Codemeta CI-CD-nightly CI-CD-nightly-sim dashboard

The R3BRoot Framework

The R3BRoot software is based on the FairRoot framework and can be used to perform Monte Carlo simulations and experimental data analysis of the R3B (Reactions with Relativistic Radioactive Beams) nuclear physics experiments at the GSI-FAIR research center (Facility for Antiproton and Ion Research). The user can create simulated data and/or perform analysis with the same framework. Geant3 and Geant4 transport engines are supported, however, the implemented tasks that create simulated data do not depend on a particular Monte Carlo engine. The framework delivers base classes which enable the users to construct their detectors and/or analysis tasks in a simple way, it also delivers some general functionality like track visualization. Moreover, an interface for reading experimental and/or simulated magnetic field maps is also implemented. R3BRoot software is a source distribution with recurring releases for macOS and Linux.

Discussion Forum

For the software-related user support you can post a new topic on our forum.

License

R3BRoot is distributed under the terms of the GNU General Public Licence version 3 (GPLv3).

Code of Conduct

We are committed to fostering a welcoming and inclusive environment in the R3BRoot project. Please take a moment to review our Code of Conduct, which outlines our expectations for all contributors and community members.

Release Information

Please visit releases

Download

git clone https://github.com/R3BRootGroup/R3BRoot.git

Using the Project Template

R3BRoot delivers various project templates that can be used as a starting point for anybody who would like to build simulation and reconstruction algorithms. The project Templates are located in the R3BRoot/template directory.

Step by Step Installation

Required Software

First, you will need to install FairSoft and FairRoot. For more details:

  1. Install FairSoft, required version jan24p1 or later

  2. Install FairRoot, required version 18.8.1 or later

Configure and Compile

export SIMPATH=%PATH_TO_FAIRSOFT%
export FAIRROOTPATH=%PATH_TO_FAIRROOT%
# from %R3BRoot_DIRECTORY%
. ./build_thisr3broot.sh
# or a second option is the following
mkdir ../build
cmake -S . -B ../build
cmake --build ../build -j${number_of_threads}
source ../build/config.sh

For the building with Conan package manager, see this instruction.

To run the detector tests do:

 # In the same shell from %R3BRoot_DIRECTORY%:
cd build
ctest --parallel ${number_of_threads}

Simulations and Data Analysis

This is performed from the GitHub parameter and data analysis repository, which contains all the macros and parameter files needed by the user to carry out the simulations and data analysis of each experiment. There is one repository per experiment, please, visit the R3B-Wiki for more details.

Contributing

Please ask your questions, request features, and report issues by creating a github issue.

Code Formatting

The R3BRoot project uses clang-format-16 to ensure a common code formatting. The script "clang-format-all.sh" can be used for this purpose:

. util/clang-format-all.sh

Spell Checking

To avoid common typos in the codebase and documentation, we use codespell.

Check for spelling mistakes using the ignore list defined in .codespell-ignorewords:

codespell -I .codespell-ignorewords

If you want to automatically fix the detected typos:

codespell -w -I .codespell-ignorewords

Tested systems

The following systems are tested regularly.

OS NameArchOS VersionCompilerCMakeC++ Version
Almalinuxx86_649.3GCC 11.4.13.27.9 / 4.0.3C++17 / C++20 / C++23
Almalinuxx86_649.4GCC 14.2.03.30.6C++17
Almalinuxx86_649.7GCC 11.4.14.2.0C++17 / C++20 / C++23
Almalinuxx86_6410.1GCC 14.2.04.0.3C++17 / C++20 / C++23
Almalinuxx86_6410.2GCC 14.3.14.0.3C++17 / C++20 / C++23
RHELx86_649.6GCC 14.2.03.30.6C++17
Debianx86_6411GCC 10.2.13.27.4 / 3.30.0C++17
Debianx86_6412GCC 12.2.03.27.4 / 4.0.3C++17 / C++20
Debianx86_6413GCC 14.2.03.31.6 / 4.0.3C++17 / C++20 / C++23
Debianx86_6414GCC 15.2.03.31.6 / 4.0.3C++17 / C++20 / C++23
Ubuntux86_6424.04GCC 13.3.03.28.3 / 4.0.3C++17 / C++20 / C++23
Ubuntux86_6425.04GCC 14.2.03.31.6C++17 / C++20
Ubuntux86_6426.04GCC 15.2.03.31.6 / 4.0.3C++17 / C++20 / C++23
MacOSarm6415.3AppleClang 154.0.3C++17

Security Policy

The R3BRoot project is focused on scientific computing and does not involve typical security concerns like handling sensitive data. However, we are committed to maintaining the integrity and quality of our codebase.

If you discover any potential issues with this project, please refer to our Security Policy for instructions on how to report them.

Thank you for helping us keep R3BRoot secure and reliable!

More Information

Contributors

JR
Jose Luis Rodríguez-Sánchez
author
CITENI, Industrial Campus of Ferrol, University of Coruña, 15403 Ferrol, Spain
0000-0002-4702-5294
HAP
Hector Alvarez Pol
author
IGFAE, University of Santiago de Compostela, 15782 Santiago de Compostela, Spain
0000-0001-9643-6252
LA
Leyla Atar
author
GSI Helmholtzzentrum für Schwerionenforschung, 64291 Darmstadt, Germany
LA
Laurent Audouin
author
IPN Orsay, 91406 Orsay, France
0000-0001-9899-6923
AB
Antoine Barriere
author
GANIL, 14000 Caen, France
LB
Lukas Bott
author
Goethe University Frankfurt, 60629 Frankfurt am Main, Germany
AC
Audrey Chatillon
author
CEA, DAM, DIF, 91297 Arpajon, France
MF
Martina Feijoo-Fontán
author
IGFAE, University of Santiago de Compostela, 15782 Santiago de Compostela, Spain
GG
Gabriel García-Jiménez
author
IGFAE, University of Santiago de Compostela, 15782 Santiago de Compostela, Spain
IG
Igor Gasparic
author
RBI Zagreb, HR10000 Zagreb, Croatia
PG
Pablo González-Rusell
author
CITENI, Industrial Campus of Ferrol, University of Coruña, 15403 Ferrol, Spain
0009-0007-2579-9479
AG
Antia Graña-González
author
CITENI, Industrial Campus of Ferrol, University of Coruña, 15403 Ferrol, Spain

Member of community

ESCAPE OSSR