Running the GEANT4 simulation code: Difference between revisions
Jump to navigation
Jump to search
Tlauritsen (talk | contribs) No edit summary |
Tlauritsen (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
Instructions for compiling on SL linux boxes | ==intro== | ||
==Instructions for compiling on SL linux boxes== | |||
cd ~/geant4 | cd ~/geant4 | ||
more README | more README | ||
to run the code | ==to run the code== | ||
cd /home/tl/geant4/v1.3.0 | cd /home/tl/geant4/v1.3.0 | ||
Line 20: | Line 21: | ||
ls -lt *.out | ls -lt *.out | ||
mv co60.out /media/120621a/user/gtdata/G4Co60_NSCL/g4.dat | mv co60.out /media/120621a/user/gtdata/G4Co60_NSCL/g4.dat | ||
==analyze the G4 mode2 data== | |||
To make mode2/mode1 data and analyze with GEBSort, you can do | To make mode2/mode1 data and analyze with GEBSort, you can do | ||
Line 45: | Line 48: | ||
-rootfile GTDATA/test.root > GTDATA/GEBSort.log | -rootfile GTDATA/test.root > GTDATA/GEBSort.log | ||
==analyze the G4 mode1/mode2 data== | |||
you can track the data and look at both the mode1 and mode2 data as | |||
rm GTDATA/g4_mode2.out | rm GTDATA/g4_mode2.out |
Revision as of 17:53, June 17, 2013
intro
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
analyze the G4 mode2 data
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
analyze the G4 mode1/mode2 data
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