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

Geant4 11.2.1 #673

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

env:
ROOT_VERSION: 'v6-26-08'
GEANT4_VERSION: 'v11.1.1'
GEANT4_VERSION: 'v11.2.1'
ITK_VERSION: 'v5.3.0'
ROOT_DIR: $(HOME)/software/root
GEANT4_DIR: $(HOME)/software/geant4
Expand Down Expand Up @@ -262,7 +262,6 @@ jobs:
t3_range_e+,
t4_necr,
t6_dpk,
t7_garf,
t8_LETActor,
t10_SpectroGamma,
t11_EMField,
Expand Down Expand Up @@ -321,5 +320,5 @@ jobs:
mkdir gate_benchmarks
export GIT_SSL_NO_VERIFY=1
git clone --recursive https://github.com/OpenGATE/GateBenchmarks.git gate_benchmarks
docker run --rm -e "TEST=${{ matrix.strategy_name }}" -v $GITHUB_WORKSPACE:/src -v $GITHUB_WORKSPACE/gate_benchmarks:/home tbaudier/gatebenchmarks:9.3 /home/.github/workflows/runTest.sh
docker run --rm -e "TEST=${{ matrix.strategy_name }}" -v $GITHUB_WORKSPACE:/src -v $GITHUB_WORKSPACE/gate_benchmarks:/home tbaudier/gatebenchmarks:9.4 /home/.github/workflows/runTest.sh

4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ STRING(REGEX REPLACE "(.*)[.](.*)[.](.*)" "\\3" G4VERSION_PATCH ${Geant4_VERSION
#MESSAGE(${G4VERSION_MAJOR})
#MESSAGE(${G4VERSION_MINOR})
#MESSAGE(${G4VERSION_PATCH})
IF(NOT ${G4VERSION_MAJOR}.${G4VERSION_MINOR} EQUAL 11.1)
MESSAGE("Warning! This GATE version is not validated for Geant4 ${G4VERSION_MAJOR}.${G4VERSION_MINOR} distribution. Please use Geant4 11.1 distribution instead.")
IF(NOT ${G4VERSION_MAJOR}.${G4VERSION_MINOR} EQUAL 11.2)
MESSAGE("Warning! This GATE version is not validated for Geant4 ${G4VERSION_MAJOR}.${G4VERSION_MINOR} distribution. Please use Geant4 11.2 distribution instead.")
ENDIF()

#=========================================================
Expand Down
4 changes: 2 additions & 2 deletions docs/vgate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ With vGate you can launch your first GATE simulation in just a few steps! No nee
The following software is installed on this machine (see this `file <https://github.com/OpenGATE/Gate/blob/develop/source/docker/vGate.sh>`_ for more details):

* Ubuntu LTS 22.04 on Virtual Box (40GB virtual HD)
* GATE 9.3
* Geant4 11.1.1
* GATE 9.4
* Geant4 11.2.1
* GateContrib: a user-oriented public repository of Gate (macros, examples and user contributions)
* Root 6.26.08
* libtorch cxx11 (cpu) 1.7.0
Expand Down
23 changes: 23 additions & 0 deletions source/docker/Generate-9.4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

#Variables to modify
Repository=opengatecollaboration
ROOT_Version=v6-24-06
CLHEP_Version=2.4.6.0
Geant4_Version=11.2.1
Gate_Version=9.4

#Variables to preserve
Geant4_Tag=$Repository/geant4:$Geant4_Version
Gate_Tag=$Repository/gate:$Gate_Version-docker

docker build -t $Geant4_Tag -f DockerFileGeant \
--build-arg ROOT_Version=$ROOT_Version \
--build-arg CLHEP_Version=$CLHEP_Version \
--build-arg Geant4_Version=v$Geant4_Version .
#docker push $Geant4_Tag
#
#docker build -t $Gate_Tag -f DockerFileGate \
# --build-arg Geant4_Version=$Geant4_Tag \
# --build-arg Gate_Version=v$Gate_Version .
#docker push $Gate_Tag
6 changes: 3 additions & 3 deletions source/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ login: `docker login`

[build and use]
* build:
* `docker build -t opengatecollaboration/geant4:11.1.0 -f DockerFileGeant --build-arg ROOT_Version=v6-24-06 --build-arg Geant4_Version=v11.1.0 .`
* `docker build -t opengatecollaboration/geant4:11.2.1 -f DockerFileGeant --build-arg ROOT_Version=v6-24-06 --build-arg Geant4_Version=v11.2.1 .`
* push:
* `docker push opengatecollaboration/geant4:$version`
* interactive:
* `docker run -it --rm -v $PWD:/APP opengatecollaboration/geant4:$version /bin/bash`

Where:

* `$version` is `11.1.0` for gate `9.3`
* `$version` is `11.2.1` for gate `9.4`

# Second image Gate
## Docker for gate
Expand All @@ -29,7 +29,7 @@ login: `docker login`

[build and use]
* build:
* `docker build -t opengatecollaboration/gate:9.3 -f DockerFileGate --build-arg Geant4_Version=opengatecollaboration/geant4:11.1.0 --build-arg Gate_Version=v9.3 .`
* `docker build -t opengatecollaboration/gate:9.4 -f DockerFileGate --build-arg Geant4_Version=opengatecollaboration/geant4:11.2.1 --build-arg Gate_Version=v9.4 .`
* push:
* `docker push opengatecollaboration/gate:$version`
* run command:
Expand Down
2 changes: 1 addition & 1 deletion source/docker/vGate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ make
cd
cd Software/Geant4
mkdir src bin install data
git clone -b v11.1.1 https://github.com/Geant4/geant4.git src
git clone -b v11.2.1 https://github.com/Geant4/geant4.git src
cd bin
ccmake ../src -DGEANT4_INSTALL_DATA=ON -DGEANT4_BUILD_MULTITHREADED=OFF -DGEANT4_INSTALL_DATADIR=/home/vgate/Software/Geant4/data -DCMAKE_INSTALL_PREFIX=/home/vgate/Software/Geant4/install -DGEANT4_BUILD_MULTITHREADED=OFF -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON
make install
Expand Down
5 changes: 4 additions & 1 deletion source/physics/src/GateVProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "G4Element.hh"
#include "G4VEnergyLossProcess.hh"
#include "G4VMultipleScattering.hh"

#include "G4HadronicParameters.hh"

//-----------------------------------------------------------------------------
GateVProcess::GateVProcess(G4String name)
Expand All @@ -30,6 +30,9 @@ GateVProcess::GateVProcess(G4String name)
theHandler = 0;
mG4ProcessName = name;
mKeepSec=false;

//fix for G4 11.2.1
G4HadronicParameters::Instance()->SetTimeThresholdForRadioactiveDecay( 3.171e+10*CLHEP::year );
}
//-----------------------------------------------------------------------------

Expand Down
Loading