cms-externals / geant4

CMS mirror of Geant4 sources. Not endorsed by Geant4 organization itself under any circumstance.
Other
2 stars 6 forks source link

Migration Geant4 branches to Geant4 11.1.ref07 #73

Closed civanch closed 11 months ago

civanch commented 11 months ago

Geant4 11.1.ref07 reference version is available. Please update G4VECGEOM and GEANT4 branches. We need this to control Geant4 developments.

Code is available via: http://vnivanch.web.cern.ch/vnivanch/hadronic/geant4.11.1.ref07.tag.gz

Also special build for work with low-pileup data of Run2 is needed. The standard receipt for that I cannot find out.

cmsbuild commented 11 months ago

A new Issue was created by @civanch Vladimir Ivantchenko.

@Dr15Jones, @perrotta, @dpiparo, @rappoccio, @makortel, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

smuzaffar commented 11 months ago

@iarspider , thanks for taking care of this. As requested during core sw meeting, once integrated in G4/VecG4 IBs , we also need to build 12.6 release

iarspider commented 11 months ago

@civanch We have noticed that G4persistency library is not being built - do we need to enable it explicitly?

iarspider commented 11 months ago

These are the flags that we pass to CMake now:

  -DCMAKE_CXX_COMPILER="g++" \
  -DCMAKE_CXX_FLAGS="%{build_flags}" \
  -DCMAKE_AR=$(which gcc-ar) \
  -DCMAKE_RANLIB=$(which gcc-ranlib) \
  -DCMAKE_INSTALL_PREFIX:PATH="%i" \
  -DCMAKE_CXX_STANDARD:STRING="17" \
  -DCMAKE_BUILD_TYPE=%{cmake_build_type} \
  -DGEANT4_USE_GDML=ON \
  -DGEANT4_BUILD_TLS_MODEL:STRING="global-dynamic" \
  -DGEANT4_ENABLE_TESTING=OFF \
  -DGEANT4_BUILD_VERBOSE_CODE=OFF \
  -DGEANT4_BUILD_BUILTIN_BACKTRACE=OFF \
%if %{use_vecgeom}
  -DGEANT4_USE_USOLIDS="all" \
%endif
  -DBUILD_SHARED_LIBS=ON \
  -DBUILD_STATIC_LIBS=ON \
  -DGEANT4_INSTALL_EXAMPLES=OFF \
  -DGEANT4_USE_SYSTEM_CLHEP=ON \
  -DGEANT4_USE_SYSTEM_EXPAT=ON \
  -DCMAKE_PREFIX_PATH="${XERCES_C_ROOT};${CLHEP_ROOT};${EXPAT_ROOT};${ZLIB_ROOT};${VECGEOM_ROOT}" \
  -DGEANT4_USE_SYSTEM_ZLIB=ON \
  -DGEANT4_BUILD_MULTITHREADED=ON
smuzaffar commented 11 months ago

@iarspider , previously geant4 was building G4persistency and now it has been renamed to G4geomtext and G4mctruth . I would suggest to replace G4persistency with G4geomtext and G4mctruth in cmsdist/scram tool files

smuzaffar commented 11 months ago

and as -DGEANT4_USE_GDML=ON is set so also add G4gdml in toolfile

civanch commented 11 months ago

is done