See docs/RELEASE.md and VERSION.json for the latest version info.
The current soft model parameters are work-in-progress. The main goal is a single global tune applicable across energies. Hard processes use the basic SM parameters, LHA-PDFs and literature values.
Users are encouraged to implement their own parameter inference, and each new soft Pomeron model variant:
GP, MP, XP, TP, requires its own parameters. GRANIITTI provides HPC-distributed tools for this.
More details
GP status: parameter inference was done with
icetuneagainst STAR exclusive pi+pi- and K+K- data at$\sqrt{s}=200, 510$ GeV, and further tunes should include also LHC data at 13 TeV. Photoproduction parameters come mostly from HERA data based fits and eikonal (screening) model from elastic scattering data. Optimal inference, especially in terms of f-meson angular couplings, may require fully differential event-level data (Open Data releases).
Current
modeldata/TUNE0forGPmodel was obtained in two steps with icetune. First using global optimization withHEBOalgorithm and then, with autograd based optimization usingampfitapproach which operates by constructing interpolated complex amplitude surrogates.
MP status: a placeholder tune.
XP status: a placeholder tune.
TP status: a placeholder tune with parameter values from the original papers.
See the project page at https://mieskolainen.github.io.
git clone --depth 1 https://github.com/mieskolainen/graniitti.git && cd graniitti
Recommended
Install Conda virtual environment for the Python tools:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O Miniconda3.sh
chmod +x Miniconda3.sh && ./Miniconda3.shAfter installation, activate Conda and create the environment:
conda env create -f environment.yml conda activate graniitti python -m pip install -r requirements.txt pip install --no-deps --no-build-isolation hebo
CERN lxplus
We recommend to install Conda on EOS (e.g. cernbox folder) to get the required python environment, which is needed for the latest plotting and inference tools.
Running only the generator, a pure CVMFS environment will suffice:
source /cvmfs/sft.cern.ch/lcg/views/LCG_110/x86_64-el9-gcc13-opt/setup.shThe generator has external dependencies on HepMC3 and LHAPDF6. These IO libraries are installed with:
conda activate graniitti source install/setenv.sh cd install && bash autoinstall.sh && cd ..
Note: The installation path of external dependencies is set under install/setenv.sh, where the default is
$HOME/local.
Compilation is executed with:
cmake -S . -B build
cmake --build build -j4The compilation installs program binaries under bin/.
Build options
Additional CMake options
-DMARCH=<target> (CPU instruction set, default: native) -DWITH_SYSTEMPATH=ON|OFF (required on some environments) -DWITH_ROOT=AUTO|ON|OFF (ROOT tools) -DWITH_LIBTORCH=AUTO|ON|OFF (NEUROJAC normalizing flow integrator) -DWITH_TEST=ON|OFF (unit tests) -DWITH_VALGRIND=ON|OFF (developer)
On computing clusters with various CPU architectures, use
-DMARCH=x86-64-v3for relatively modern hardware or-DMARCH=x86-64-v2for older.
Note, if using both
CondaandCVMFS, typically load Conda first and you may need to setexport CONDA_CXX_ABI=1first, see install/setenv.sh.
To install ROOT based aux tools, make sure your ROOT installation exposes
$ROOTSYSenvironment variable.
NEUROJACuses standalone code CPU kernels in normal builds. Configure with-DWITH_LIBTORCH=AUTOto use the optionallibtorchC++ backend whenPyTorchis installed.
In every new shell session, first set the environment variables, then execute the main generator program:
conda activate graniitti
source install/setenv.sh
./bin/gr --helpNote
conda activatefirst, then the environment setup.
See docs/FAQ.md for more information.
Simulate MC events:
./bin/gr -i icepack/SOFTCEP/STAR_1792394/pipi/gencard.json \ -w true -l true -n 100000
Note: We generate 100k weighted events using
-w true, with the screening (absorption) loop enabled using-l truefor accurate differential cross sections.
Python: Manual workflows proceed by first generating events, then executing analysis
python -m core.iceplot --hepmc3 output/STAR_1792394_pipi.hepmc3 --analysis icepack/SOFTCEP/STAR_1792394/pipi
Python: Fully automated workflows proceed with icepacks
bash icepack/run.sh icepack/UPC --NEVENTS 10000 --LOOPSCREEN 1 --WEIGHTED 1
See icepack/README.md for more information.
See details
Measurement specific generator, fiducial cut and observable steering is encapsulated under
icepack/. See the fiducial cut definitions on generator side, both in the steering cards and more complex undersrc/MUserCuts.ccactivated in some of the analyses, and then further cuts on python side analysis.
The reason for cut definitions in multiple locations is typically computational efficiency, such as shared MC samples which are further categorized by the analysis cuts.
C++/ROOT: For more custom, C++ (ROOT) based fast analysis tools and studies
ls tests/physics/studies NEVENTS=100000 WEIGHTED=0 LOOPSCREEN=0 bash tests/physics/studies/tensor2/run.sh
MC model parameter inference (tuning) is possible via HPC-distributed optimization using Python tools icetune, icescape and iceproxy.
Modify
submit/campaigns.ymlfor the run setup andsubmit/tunecards/graniittifor the model parameters and tuning choices.
Because the full parameter space is very high-dimensional, successful inference and optimization typically requires experimentation and iterative runs with a small subset of all parameters, adjusting parameter min/max sampling bounds, choosing appropriate datasets, objective functions etc.
For more information, see docs/icetune.md and submit/README.md.
See tests/README.md.
If you use this work in your research, please cite:
@article{mieskolainen2023graniitti,
title={GRANIITTI: Towards a Deep Learning-enhanced Monte Carlo Event Generator for High-Energy Diffraction},
author={Mieskolainen, Mikael},
journal={Acta Phys. Polon. Supp.},
volume={16},
pages={6},
year={2023},
eprint={2304.06010},
archivePrefix={arXiv},
primaryClass={hep-ph}
}
@article{mieskolainen2019graniitti,
title={GRANIITTI: A Monte Carlo Event Generator for High Energy Diffraction},
author={Mikael Mieskolainen},
year={2019},
journal={arXiv:1910.06300},
eprint={1910.06300},
archivePrefix={arXiv},
primaryClass={hep-ph}
}
