Geant4 quick start
- Login to the NICADD cluster (cms1.nicadd.niu.edu)
 - Check available G4 builds:
- source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/5.6.2/init/bash
 - module -t  avail 2>&1 | grep geant4
- geant4/
 - geant4/9.4p02
 - geant4/10.02
 - geant4/10.3p01
 
 
 - To work with  geant4/10.3p01,
- module load geant4/10.3p01
 
 - Look for G4 root path
- echo $PATH
- /cvmfs/oasis.opensciencegrid.org/osg/modules/gcc/4.9.2/bin:/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/10.3p01/bin:/cvmfs/oasis.opensciencegrid.org/osg/modules/lua/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/serguei/bin
 
 - from above the Geant root directory is /cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/10.3p01
 
 - echo $PATH
 - Define alias to set the complete G4 environment - add the next line into the ~/.bashrc startup file (bash users)
- alias setg4='source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/5.6.2/init/bash;module purge;module load geant4/10.3p01;export G4HOME=/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/10.3p01; source $G4HOME/share/Geant4-10.3.1/geant4make/geant4make.sh'
 
 - Open a new shell/terminal, set and verify the G4 environment
- setg4; env | grep G4
 
 - Create a G4 project area on a data disk; set the G4 environment
- mkdir -p  /xdata/
⚠ $USER/g4test; cd /xdata/$USER/g4test; 
 - mkdir -p  /xdata/
 - Copy the first basic G4 example
- cp -rfvp $G4HOME/share/Geant4-10.3.1/examples/basic/B1 ./
 
 - Compile and run B1 example (we redefine G4TMP and G4BIN to have the temporary files and the main G4 program in the B1 folder ./bin/Linux-g++)
- cd B1; setg4;
 - export  G4TMP="
⚠ $PWD/tmp"; export G4BIN="$PWD/bin"; - gmake all
 
 - Run the example
- ./bin/Linux-g++/exampleB1 run1.mac
 
 - Done! Now please read the GEANT4 user documentation )).