From T3_KR_KNU
Revision as of 07:50, 12 July 2021 by Hanbi (Talk | contribs) (Created page with "== CVMFS 에서 geant4 사용하기 == === Geant4 10.5 & gcc63 & centos7 === # set up compiler source /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.3/x86_64-centos7/setup.sh expo...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CVMFS 에서 geant4 사용하기

Geant4 10.5 & gcc63 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.3/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.5/x86_64-centos7-gcc63-opt-MT/CMake-setup.sh

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.5/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.5/x86_64-centos7-gcc63-opt-MT/lib64/Geant4-10.5.0 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in

Geant4 10.6 & gcc63 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.3/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc63-optdeb/CMake-setup.sh

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.6/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# set up path for cmake 3.14.2
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc63-optdeb-MT/lib64/Geant4-10.6.0 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in

Geant4 10.6 & gcc83 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc8-optdeb/CMake-setup.sh

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.6/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# set up path for cmake 3.14.2
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.6.0 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in


Geant4 10.7 & gcc83 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.7.p02/x86_64-centos7-gcc8-optdeb-MT/CMake-setup.sh 

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.7.p02/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# set up path for cmake 3.14.2
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.7.p02/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.7.2 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in