Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with ROOT 6.32 without Pythia6 support, building TPythia6 libraries separately #102

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

antonioiuliano2
Copy link
Contributor

Dear all,

From 6.32 ROOT will not support Pythia6 anymore, therefore they remove the TPythia6 libraries.

We currently still use them for the Cascade and MuonDIS production. Until an upgrade to Pythia8 or other alternatives is completed, we can still use ROOT 6.32 by building ourselves the TPythia6 libraries.

This is to be considered a temporary solution, since we also need to move from Pythia6 ourselves.

List of changes:

  • ROOT version from root.sh
  • Building GENIE without Pythia6
  • TPythia6.sh package from https://github.com/ShipSoft/TPythia6
  • Providing the path to the shared library from the previous package to fairship.sh

Please let me know your comment or suggestions to improve this pull request
I am now opening a related pull request to the changes in the FairShip code
Best Regards,
Antonio

Copy link
Contributor

@olantwin olantwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good first step, I'll test on SLC9 now.

Comment on lines +286 to +288
TPythia6:
version: "main"
tag: "main"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in the recipe, not overridden here.

@@ -40,7 +41,8 @@ incremental_recipe: |
${PHOTOSPP_VERSION:+PHOTOSPP/$PHOTOSPP_VERSION-$PHOTOSPP_REVISION} \\
${EVTGEN_VERSION:+EvtGen/$EVTGEN_VERSION-$EVTGEN_REVISION} \\
${FAIRROOT_VERSION:+FairRoot/$FAIRROOT_VERSION-$FAIRROOT_REVISION} \\
${GENFIT_VERSION:+GenFit/$GENFIT_VERSION-$GENFIT_REVISION}
${GENFIT_VERSION:+GenFit/$GENFIT_VERSION-$GENFIT_REVISION} \\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many spaces before \\

@@ -111,6 +114,7 @@ cmake $SOURCEDIR \
${CMAKE_VERBOSE_MAKEFILE:+-DCMAKE_VERBOSE_MAKEFILE=ON} \
${BOOST_ROOT:+-DBOOST_ROOT=$BOOST_ROOT} \
${GENFIT:+-Dgenfit2_ROOT=$GENFIT} \
-DTPYTHIA6_INCLUDE_DIR=$TPYTHIA6_ROOT/inc \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quote to prevent globbing and word splitting. [SC2086]

@@ -139,7 +143,8 @@ module load BASE/1.0
${PHOTOSPP_VERSION:+PHOTOSPP/$PHOTOSPP_VERSION-$PHOTOSPP_REVISION} \\
${EVTGEN_VERSION:+EvtGen/$EVTGEN_VERSION-$EVTGEN_REVISION} \\
${FAIRROOT_VERSION:+FairRoot/$FAIRROOT_VERSION-$FAIRROOT_REVISION} \\
${GENFIT_VERSION:+GenFit/$GENFIT_VERSION-$GENFIT_REVISION}
${GENFIT_VERSION:+GenFit/$GENFIT_VERSION-$GENFIT_REVISION} \\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many spaces

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also enable pythia8 in GENIE?

---
#!/bin/bash -e
cmake "$SOURCEDIR" \
-DPYTHIA6_ROOT=${PYTHIA6_ROOT} \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quote to prevent globbing and word splitting. [SC2086]

-DPYTHIA6_ROOT=${PYTHIA6_ROOT} \

make
cp -r $SOURCEDIR/inc $INSTALLROOT/inc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quote to prevent globbing and word splitting. [SC2086]


make
cp -r $SOURCEDIR/inc $INSTALLROOT/inc
cp *.so $INSTALLROOT/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ./*glob* or -- *glob* so names with dashes won't become options. [SC2035]

Maybe all these copies should by handled by CMake's install step?

MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<EoF
#%Module1.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modulefile created manually here; consider using alibuild-generate-module [ali:consider-a-g-m]

@olantwin
Copy link
Contributor

olantwin commented Feb 7, 2025

Changelog entry missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants