Building and running G4Generator (SVAC)
Hiro
Tajima
Last update February 04, 2003
SVAC
home
Here I describe how to build and run G4Generator.
(and GismoGenerator).
Building G4Generator
I assume that CMT is properly set. Please see this
page for CMT setup instructions. I also assume that group.cshrc is
used to set up various environment variables.
-
cd $MyPackages (this is where you want to build G4Generator).
-
cp -a $GLASTROOT/ground/releases/GaudiSys_v7 . (if you are
a remote site user, you can get tar file from SLAC.)
-
setenv CMTPATH $MyPackages/GaudiSys_v7
-
cmt co -R G4Generator
-
cd G4Generator/v1/cmt
-
cmt broadcast 'cmt config'
-
cmt broadcast 'gmake'
-
done
Running G4Generator
(Run G4Generator in official area)
-
cd $G4 (this is where you run G4Generator and store its input/output files)
-
cp $GLASTROOT/ground/releases/G4Generator_v1/G4Generator/v1/src/test/jobOptions.txt
.
-
cp $GLASTROOT/ground/releases/G4Generator_v1/G4Generator/v1/src/test/test_sources.xml
.
-
setenv CMTPATH $GLASTROOT/ground/releases/GaudiSys_v7
-
setenv JOBOPTIONS $G4/jobOptions.txt
-
edit jobOptions.txt so that local test_sources.xml is used to describe
the source.
-
edit test_sources.xml as you like.
-
bash
-
source $GLASTROOT/ground/releases/G4Generator_v1/G4Generator/v1/cmt/setup.sh
-
$G4GENERATORROOT/$G4GENERATORCONFIG/G4Test.exe
-
you will get graphic window. select particle and start stepping.
(Run G4Generator you built)
-
cd $G4 (this is where you run G4Generator and store its input/output files)
-
cp $MyPackages/G4Generator/v1/src/test/jobOptions.txt .
-
cp $MyPackages/G4Generator/v1/src/test/jtest_sources.xml .
-
setenv CMTPATH $MyPackages/GaudiSys_v7
-
setenv JOBOPTIONS $G4/jobOptions.txt
-
edit jobOptions.txt so that local test_sources.xml is used to describe
the source.
-
edit est_sources.xml as you like.
-
bash
-
source $MyPackages/G4Generator/v1/cmt/setup.sh
-
$G4GENERATORROOT/$G4GENERATORCONFIG/G4Test.exe
Running GismoGenerator in pdrApp
(Run pdrApp in official area)
-
cd $PDRAPP (this is where you run G4Generator and store its input/output
files)
-
cp $GLASTROOT/ground/releases/pdrApp_v7r2/pdrApp/v7r2/src/*.txt .
-
cp $GLASTROOT/ground/releases/G4Generator_v1/G4Generator/v1/src/test/test_sources.xml
.
-
setenv CMTPATH $GLASTROOT/ground/releases/GaudiSys_v7:$GLASTROOT/ground/releases/gismosys_v5r4p1
-
setenv JOBOPTIONS $PDRAPP/jobOptions.txt
-
add "FluxSvc.source_lib += {"$(PDRAPP)/test_sources.xml"};" so that local
test_sources.xml is used to describe the source.
-
edit test_sources.xml as you like. (You had better name your sources
to start with capital letter so that they show up top of the list.)
-
bash
-
source $GLASTROOT/ground/releases/pdrApp_v7r2/pdrApp/v7r2/cmt/setup.sh
-
$PDRAPPROOT/$PDRAPPCONFIG/pdrApp.exe
-
you will get graphic window. select particle and start stepping.