source /Applications/geant4_9_5-install/share/Geant4-9.5.0/geant4make/geant4make.sh

create cmake file:

cmake /Applications/geant4_9_5-install/lib/Geant4-9.5.0/ ./../AGP

-- Found ROOT 5.22/00 in /Users/gutierrez/Downloads/root

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/gutierrez/work2012/geant4/AGP-build

Idle> /run/beamOn 1

Idle> /vis/viewer/set/viewpointThetaPhi 70 20


running GEANT4 in lxplus (bash terminal) g4setup.sh --> file with:

#Geant4 export GEANT4DIR=/afs/cern.ch/sw/lcg/external/geant4/10.0.p02/x86_64-slc6-gcc47-opt/

source /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc6/setup.sh

source $GEANT4DIR/CMake-setup.sh

source $GEANT4DIR/../setup_g4datasets.sh

source $GEANT4DIR/share/Geant4-10.0.2/geant4make/geant4make.sh

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/afs/cern.ch/sw/lcg/external/XercesC/3.1.1p2/x86_64-slc6-gcc47-opt/lib:/afs/cern.ch/sw/lcg/external /clhep/2.1.4.1/x86_64-slc6-gcc47-opt/lib

export LIBRARY_PATH=$LIBRARY_PATH:/afs/cern.ch/sw/lcg/external/XercesC/3.1.1p2/x86_64-slc6-gcc47-opt/lib

source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.24/x86_64-slc6-gcc47-opt/root/bin/thisroot.sh

Now:

source g4setup.sh

cp -R /afs/cern.ch/sw/lcg/external/geant4/10.0.p02/share/examples/basic/B1 $HOME

cd $HOME/B1

cmake -DGeant4_DIR=/afs/cern.ch/sw/lcg/external/geant4/10.0.p02/x86_64-slc6-gcc47-opt/lib64/Geant4-10.0.2 $HOME/B1

make

~/geant4_workdir/bin/Linux-g++/exampleB1 ./exampleB1.in

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2014-12-13 - AndreaGutierrez
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback