Skip to content

Commit 0343be3

Browse files
author
Hartmut Stadie
committed
change tag
1 parent 77e41e7 commit 0343be3

3 files changed

Lines changed: 31 additions & 8 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build and export
2727
uses: docker/build-push-action@v6
2828
with:
29-
tags: stadie/geant_tut:latest
29+
tags: stadie/geant_tut:v0.9
3030
push: true
3131
#outputs: type=docker,dest=/tmp/myimage.tar
3232
# - name: Upload artifact

TutorialApplication/run_g4.C

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
void run_g4() {
99
// Load basic libraries
10-
gROOT->ProcessLine(".x $G4PATH/geant4_vmc/examples/macro/basiclibs.C");
10+
gROOT->ProcessLine(".x /home/student/geant4_vmc/share/Geant4VMC-6.7.0/examples/macro/basiclibs.C");
1111

1212
// Load Geant4 libraries
13-
gROOT->ProcessLine(".x $G4PATH/geant4_vmc/examples/macro/g4libs.C");
13+
gROOT->ProcessLine(".x /home/student/geant4_vmc/share/Geant4VMC-6.7.0/examples/macro/g4libs.C");
1414

1515
// Load the tutorial application library
1616
// gSystem->Load("libTutorialApplication");
17-
gSystem->SetIncludePath("-I/usr/include -I$G4PATH/geant4_vmc/include/geant4vmc -I/usr/include/geant4 -I$G4PATH/geant4/include -Iinclude -I$G4INSTALL/include/Geant4");
17+
gSystem->SetIncludePath("-I/usr/include -I/home/student/geant4_vmc/include/geant4vmc -I/usr/include/geant4 -I$G4PATH/geant4/include -Iinclude -I$G4INSTALL/include/Geant4");
1818
gInterpreter->AddIncludePath("include");
19-
gROOT->ProcessLine(".L src/TutorialStack.cxx+g");
20-
gROOT->ProcessLine(".L src/TGeomWrapper.cc+g");
21-
gROOT->ProcessLine(".L src/TutorialApplication.cxx+g");
22-
gROOT->ProcessLine(".L src/TutorialMainFrame.cxx+g");
19+
gROOT->ProcessLine(".L src/TutorialStack.cxx++g");
20+
gROOT->ProcessLine(".L src/TGeomWrapper.cc++g");
21+
gROOT->ProcessLine(".L src/TutorialApplication.cxx++g");
22+
gROOT->ProcessLine(".L src/TutorialMainFrame.cxx++g");
2323

2424
// MC application
2525
gROOT->ProcessLine("TutorialApplication* app = new TutorialApplication()");

setup_docker.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#setup root
2+
conda activate geant
3+
#source /usr/local/root532/bin/thisroot.sh
4+
# set PATH to geant installation
5+
# Absolute path to this script. /home/user/bin/foo.sh
6+
SCRIPT=$(readlink -f $0)
7+
# Absolute path this script is in. /home/user/bin
8+
SCRIPTPATH=`dirname $SCRIPT`
9+
#export G4PATH=/home/student/
10+
export VGM_INSTALL=/home/student/vgm
11+
export VGM_SYSTEM=Linux-g++#
12+
#export LD_LIBRARY_PATH=/usr/lib:/usr/local/geant4/geant4.9.5.p02-install/lib/:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
13+
export G4INSTALL="/home/student/.conda/envs/geant/"
14+
#source /usr/share/geant4/env.sh
15+
#source /usr/local/geant4/geant4.9.5.p02-install//bin/geant4.sh
16+
#export G4LEVELGAMMADATA=`readlink -e $G4PATH/PhotonEvaporation2.2/`
17+
#export G4LEDATA=`readlink -e $G4PATH/G4EMLOW6.23/`
18+
export USE_VGM=1
19+
20+
export LD_LIBRARY_PATH=$VGM_INSTALL/lib:$LD_LIBRARY_PATH
21+
export LD_LIBRARY_PATH=/home/student/vmc/lib:$LD_LIBRARY_PATH
22+
export LD_LIBRARY_PATH=/home/student/geant4_vmc/lib:$LD_LIBRARY_PATH
23+
# path to geant4

0 commit comments

Comments
 (0)