Skip to content

Commit 8a3ccc1

Browse files
authored
STARlight introduction in AliGenerators (#5466)
Added STARlight dependency to AliGenerators. STARlight recipe has been edited to pull directly the main branch from the official STARlight repository. In addition the HepMC3 package has been set as a dependency and STARlight is now built with it, so that it could also be useful for RIVET analyses. Tests performed locally are encouraging.
1 parent 6b0f504 commit 8a3ccc1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

aligenerators.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ requires:
2323
- lhapdf-pdfsets
2424
- JETSCAPE
2525
- EPOS4
26+
- STARlight
2627
build_requires:
2728
- EPOS-test:(?!osx)
2829
- alibuild-recipe-tools

starlight.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
package: STARlight
2-
version: "%(tag_basename)s"
3-
tag: r313-c
2+
version: "20240714"
3+
tag: 9980f5d
4+
requires:
5+
- HepMC3
46
build_requires:
57
- CMake
68
- "GCC-Toolchain:(?!osx)"
7-
source: https://github.com/alisw/STARlight.git
9+
source: https://github.com/STARlightsim/STARlight.git
810
---
911
#!/bin/bash -ex
1012
cmake $SOURCEDIR -DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
1113
${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} \
1214
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
13-
-DCMAKE_SKIP_RPATH=TRUE
15+
-DCMAKE_SKIP_RPATH=TRUE \
16+
-DENABLE_HEPMC3=ON \
17+
-DHepMC3_DIR="$HEPMC3_ROOT"
1418
cmake --build . -- ${JOBS:+-j$JOBS}
1519
mkdir -p $INSTALLROOT/bin
1620
cp ./starlight $INSTALLROOT/bin/.
1721
mkdir -p $INSTALLROOT/lib
1822
cp ./libStarlib.a $INSTALLROOT/lib/.
1923
cp -r $SOURCEDIR/config $INSTALLROOT/.
2024
cp -r $SOURCEDIR/include $INSTALLROOT/.
21-
cp -r $SOURCEDIR/HepMC $INSTALLROOT/.
2225

2326
#ConfigFile
2427
cat << EOF > $INSTALLROOT/bin/starlight-config

0 commit comments

Comments
 (0)