$Id: Readme-Questions for project $name Geant4 Basics ------------- 1 - OBJECTIVE Start Geant4 novice and extended examples. 2 - HOW TO START? For background information see Getting Started To start tutorial create an empty directory you will use for all exercises and cd in it. % mkdir work % cd work To start Geant4 a set of environment varials should be defined. The virtual PC software is prebuilt, so Geant4 and ROOT environment variables are initialised in shell script and are available after each login. Examples allowing start Geant4 without c++ coding. For tutorial purposes examples should be copied to the work directory compiled and used in interactive mode. 3 - PRACTICE Study Geant4 environment. Run novice and extended examples. 4 - PROBLEM 1 Geant4 environment Study the most important Geant4 environment variables and basic structure of directories. % env | grep G4 % env | grep ROOT % echo $G4INSTALL % ls $G4INSTALL % ls $G4INSTALL/source % echo $CLHEP_BASE_DIR % echo $G4SYSTEM % echo $G4WORKDIR Questions: In what sub-directory there are Geant4 examples? What Geant4 version is installed at this VM? 5 - Compile and run novice example N02 Copy example from the repository to the local place compile and run. % cp -r $G4INSTALL/examples/novice/N02 ./ % cd N02 % gmake -j2 % ls $G4WORKDIR % ls $G4WORKDIR/bin/Linux-g++/ % $G4WORKDIR/bin/Linux-g++/exampleN02 Questions: What UI commands are available? How to change primary particle? How to change primary energy? How to activate verbose output? Idle> ls Idle> /gun/particle proton Idle> /gun/energy 2 GeV Idle> /run/beamOn 1 Idle> /run/beamOn 100 Idle> /gun/particle gamma Idle> /run/beamOn 1 Idle> /gun/particle mu+ Idle> /tracking/verbose 1 Idle> /run/beamOn 1 Idle> /tracking/verbose 2 Idle> /run/beamOn 1 end the program using Idle> exit 6 - Study novice example N02 Try to understand the structure of the example. % ls % less README % less exampleN02.cc % ls include % ls src Questions: Which classes are mandatory? In which class geometry is constructed? In which class primary beam is defined? In which class physics is defined? 7 - Study extended example TestEm3 Try to understand the structure of the extended electromagnetic example of sampling calorimeter. % cd ../ % ls % cp -r $G4INSTALL/examples/extended/electromagnetic/TestEm3 ./ % cd TestEm3 % gmake -j4 % ls $G4WORKDIR % ls $G4WORKDIR/bin/Linux-g++/ % $G4WORKDIR/bin/Linux-g++/TestEm3 Questions: Which classes are mandatory? In which class geometry is constructed? In which class primary beam is defined? In which class physics is defined? Default geometry: 50 layers 2.3 mm Lead and 5.7 mm liquid Argon Idle> /control/execute vis.mac Idle> /gun/particle e- Idle> /gun/energy 1 GeV Idle> /run/beamOn 1 Idle> /run/beamOn 100 Questions: Which UI commands specific for this example? At what energy electrons will be absorped in the first absorber layer? Idle> ls Idle> /gun/energy 500 MeV Idle> /run/beamOn 1 Idle> /gun/energy 300 MeV Idle> /run/beamOn 1 Idle> /gun/energy 200 MeV Idle> /run/beamOn 1 Idle> /gun/energy 100 MeV Idle> /run/beamOn 1 Idle> /gun/energy 50 MeV Idle> /run/beamOn 1 Idle> /run/beamOn 10 Idle> /gun/energy 20 MeV Idle> /run/beamOn 1 Idle> /run/beamOn 10 Idle> /gun/energy 10 MeV Idle> /run/beamOn 1 Idle> /run/beamOn 10 Idle> /gun/energy 5 MeV Idle> /run/beamOn 1 Idle> /run/beamOn 10 8 - Geant4 particle definition % ls % cd work/TestEm3 % $G4WORKDIR/bin/Linux-g++/TestEm3 Questions: Which particles are defined? Which processes defined for gamma? Which processes defined for electron? Which processes defined for positron? Which processes defined for proton? What processes are active alogn step? What processes are active at rest? Idle> /control/execute vis.mac Idle> /particle/list Idle> /particle/select gamma Idle> /particle/property/dump Idle> /particle/process/dump Idle> /particle/select e- Idle> /particle/property/dump Idle> /particle/process/dump Idle> /particle/select e+ Idle> /particle/property/dump Idle> /particle/process/dump Idle> /particle/select proton Idle> /particle/property/dump Idle> /particle/process/dump 9 - Study Geant4 documentation In your web browser access http:/web.geant4.org/ Questions: What public version is the most recent? Where is Installation Guide? Where is Application developer manual? Where is Physics reference Manuel? Where is a link to Geant4 HyperNews?