Running the GEANT4 simulation code
Jump to navigation
Jump to search
These notes are at the moment more to remind myself how to to things than to document anything
Instructions for compiling on SL linux boxes
cd ~/geant4 more README
to run the code
cd /home/tl/geant4/v1.3.0 . ../geant4.9.6.p01/geant4.9.6-build/geant4make.sh ~/geant4_workdir/bin/Linux-g++/UCGretina eu152/eu152.mac ls -lt *.out
or
cd /home/tl/geant4/v1.3.0 . ../geant4.9.6.p01/geant4.9.6-build/geant4make.sh ~/geant4_workdir/bin/Linux-g++/UCGretina co60/co60.mac ls -lt *.out mv co60.out /media/120621a/user/gtdata/G4Co60_NSCL/g4.dat
To make mode2/mode1 data and analyze with GEBSort, you can do something like this: first download the GEBSort packages see xxx the
make make G4toMode2_US
that will make the G4toMode2_US program that can read the GEANT4 output files, pack the data and write it in mode2 format.
rm GTDATA/g4_mode2.out ./G4toMode2_US \ /media/120621a/user/gtdata/G4Co60_NSCL/g4.dat \ GTDATA/g4_mode2.out \ G4toMode2.chat > GTDATA/G4toMode2.log ls -lh GTDATA/g4_mode2.out
You can look at this mode2 data with GEBSort_nogeb
rm GTDATA/test.root ./GEBSort_nogeb \ -input disk GTDATA/g4_mode2.out RECREATE \ -chat GEBSort.chat \ -rootfile GTDATA/test.root > GTDATA/GEBSort.log
or you can track the data and look at both the mode1 and mode2 data as
rm GTDATA/g4_mode2.out ./G4toMode2_US \ /media/120621a/user/gtdata/G4Co60_NSCL/g4.dat \ GTDATA/g4_mode2.out \ G4toMode2.chat > GTDATA/G4toMode2.log ls -lh GTDATA/g4_mode2.out
./trackMain track.chat GTDATA/g4_mode2.out GTDATA/g4_mode1.out > GTDATA/trackMain.log
rm GTDATA/test.root ./GEBSort_nogeb \ -input disk GTDATA/g4_mode1.out RECREATE \ -chat GEBSort.chat \ -rootfile GTDATA/test.root > GTDATA/GEBSort.log