Project

General

Profile

G4NuPhysicsLists

This package supplies alternative Geant4 PhysicsLists (independent of ART framework). PhysicsLists can be acquired from the g4nu::G4PhysListFactory based on a name string; the factory is extensible by allowing new lists to register themselves (thus in principle not requiring the factory to be recompiled).

Documentation

Building the package

Building this package depends on cmake and uses three directories: source, build, install. After the process is completed the build directory can be removed.

The source can be checked out using:

  svn co http://cdcvs.fnal.gov/subversion/g4nuphysicslists/trunk/G4NuPhysicsLists

For write access use:

  svn+ssh://p-g4nuphysicslists@cdcvs.fnal.gov/cvs/projects/g4nuphysicslists/trunk/G4NuPhysicsLists

Build using the commands:

  cd /path/to/work/area

  export ROOTVER=v5_34_09
  export QUALCOLON="nu:e2:debug" 
  export QUALDASH=`echo $QUALCOLON | tr ':' '-' `
  export INSTALLDIR=`ups flavor`-$QUALDASH

  setup cmake
  setup root $ROOTVER -q $QUALCOLON      # brings particular geant4 + gcc
  # perhaps no longer ... setup a geant4 and root that are consistent

  mkdir source build $INSTALLDIR

  cd source
  svn co http://cdcvs.fnal.gov/subversion/g4nuphysicslists/trunk/G4NuPhysicsLists

  cd ../build

  WHICH_G4=`ls -d ${GEANT4_FQ_DIR}/lib64/Geant4-*`
  WHICH_CLHEP=`ls -d ${CLHEP_LIB_DIR}/CLHEP-*`

  cmake -DGeant4_DIR=${WHICH_G4} -DCLHEP_DIR=${WHICH_CLHEP} \
             -DCMAKE_INSTALL_PREFIX=../$INSTALLDIR  ../source/G4NuPhysicsLists
  gmake
  gmake install

  cd ..
  rm -r build 

Building a UPS product-ized version

  cd /nusoft/app/externals/G4NuPhysicsLists

  # edit build_g4nupl.sh to include desired combinations of root versions + qualifiers  (root picks up geant4 + gcc)

   ./build_g4nupl.sh v0_0_1  [svn-revision]