diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-20 19:08:14 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-21 09:07:31 +0200 |
| commit | c7f3940980e4ea3d5d0b8d5e1611b5cd5df6cfb0 (patch) | |
| tree | c496d63c5eee254598c4ef81848a3e996869d246 | |
| parent | cfe83de5fbbe2fbac32784de8aac5c44b6537a2a (diff) | |
hep: Add evtgen.
* guix-science/packages/hep.scm (evtgen): New variable.
| -rw-r--r-- | guix-science/packages/hep.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm index d6f9ca0..267a7e9 100644 --- a/guix-science/packages/hep.scm +++ b/guix-science/packages/hep.scm | |||
| @@ -10,9 +10,11 @@ | |||
| 10 | #:use-module (gnu packages check) | 10 | #:use-module (gnu packages check) |
| 11 | #:use-module (gnu packages cmake) | 11 | #:use-module (gnu packages cmake) |
| 12 | #:use-module (gnu packages compression) | 12 | #:use-module (gnu packages compression) |
| 13 | #:use-module (gnu packages cpp) | ||
| 13 | #:use-module (gnu packages gcc) | 14 | #:use-module (gnu packages gcc) |
| 14 | #:use-module (gnu packages graphviz) | 15 | #:use-module (gnu packages graphviz) |
| 15 | #:use-module (gnu packages maths) | 16 | #:use-module (gnu packages maths) |
| 17 | #:use-module (gnu packages oneapi) | ||
| 16 | #:use-module (gnu packages pkg-config) | 18 | #:use-module (gnu packages pkg-config) |
| 17 | #:use-module (gnu packages python) | 19 | #:use-module (gnu packages python) |
| 18 | #:use-module (gnu packages python-build) | 20 | #:use-module (gnu packages python-build) |
| @@ -171,6 +173,61 @@ package.") | |||
| 171 | 173 | ||
| 172 | (define-public clhep clhep-2.4.7.2) | 174 | (define-public clhep clhep-2.4.7.2) |
| 173 | 175 | ||
| 176 | (define-public evtgen | ||
| 177 | (package | ||
| 178 | (name "evtgen") | ||
| 179 | (version "3.0.1") | ||
| 180 | (source | ||
| 181 | (origin | ||
| 182 | (method git-fetch) | ||
| 183 | (uri (git-reference | ||
| 184 | (url "https://gitlab.cern.ch/evtgen/evtgen.git") | ||
| 185 | (commit "R03-00-01"))) | ||
| 186 | (file-name (git-file-name name version)) | ||
| 187 | (sha256 | ||
| 188 | (base32 "1093a46cqx8qzrqxpjw1icy6xkch0dk09h9nhhlhy9ff013340rb")))) | ||
| 189 | (build-system cmake-build-system) | ||
| 190 | (arguments | ||
| 191 | (list | ||
| 192 | #:configure-flags | ||
| 193 | #~(list "-DEVTGEN_HEPMC3:BOOL=ON" | ||
| 194 | "-DEVTGEN_PYTHIA:BOOL=ON" | ||
| 195 | "-DEVTGEN_PHOTOS:BOOL=ON" | ||
| 196 | "-DEVTGEN_TAUOLA:BOOL=ON" | ||
| 197 | "-DEVTGEN_SHERPA:BOOL=ON" | ||
| 198 | "-DEVTGEN_BUILD_TESTS:BOOL=ON") | ||
| 199 | #:phases | ||
| 200 | #~(modify-phases %standard-phases | ||
| 201 | ;; Requires install first. | ||
| 202 | (delete 'check) | ||
| 203 | |||
| 204 | (add-after 'install 'check | ||
| 205 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 206 | (when tests? | ||
| 207 | (let ((here (string-append #$output "/share/EvtGen/test"))) | ||
| 208 | (with-directory-excursion here | ||
| 209 | (invoke "./evtgenlhc_test1" "print" "100" | ||
| 210 | "exampleFiles/GENERIC.DEC"))))))))) | ||
| 211 | (inputs (list hepmc3 | ||
| 212 | photos | ||
| 213 | pythia | ||
| 214 | root | ||
| 215 | sherpa | ||
| 216 | tauola)) | ||
| 217 | (native-inputs (list nlohmann-json onetbb)) | ||
| 218 | (home-page "https://evtgen.hepforge.org/") | ||
| 219 | (synopsis | ||
| 220 | "Monte Carlo event generator for decays of heavy flavour particles") | ||
| 221 | (description | ||
| 222 | "EvtGen is a Monte Carlo event generator that simulates the decays of heavy | ||
| 223 | flavour particles, primarily B and D mesons. It contains a range of decay models | ||
| 224 | for intermediate and final states containing scalar, vector and tensor mesons or | ||
| 225 | resonances, as well as leptons, photons and baryons. Decay amplitudes are used | ||
| 226 | to generate each branch of a given full decay tree, taking into account angular | ||
| 227 | and time-dependent correlations which allows for the simulation of CP-violating | ||
| 228 | processes.") | ||
| 229 | (license license:gpl3+))) | ||
| 230 | |||
| 174 | (define-public fastjet | 231 | (define-public fastjet |
| 175 | ;; Use this specific postfix commit for CMake. Should revert to regular | 232 | ;; Use this specific postfix commit for CMake. Should revert to regular |
| 176 | ;; tagged releases from version 3.5.2 onwards. | 233 | ;; tagged releases from version 3.5.2 onwards. |
