GEANT4 - Particle Physics Simulation
GEANT4 INSTALLATION | SIMULATION
I used the N07 example provided by the GEANT4 package to build the simulation.
When you start your application, the "vis.mac" script file is automatically executed.
This command file contains e.g.
/vis/open OGLIX
/vis/viewer/zoom 1.4
"/vis/open" opens the visualization window (OpenGL), of course only if you
compiled GEANT4 with this option.
For some help
Idle> help
and type the number of the command in question.
Well, now it's time for some action. First we set the energy of the particle
gun to 10GeV and then we start the simulation with "/run/beamOn <number-of-particles>"
Idle> /gun/energy 10 GeV
/gun/energy 10 GeV
Idle> /run/beamOn 1
Depending on the properties of the model, you get visualizations like shown below.
Download the very preliminary model/program for the flat detectors here:
crorg1-26-MAR-2006.tar.gz (21kb tar.gz)
Some notes about the changes from the N07 example to this model:
- DetectorConstruction.cc: Added electrical field; changed geometry
- PhysicsList.cc: Removed "neutrinos" in ConstructLeptons; removed "eta" and "kaon" in ConstructMesons
replaced G4eIonisation() with G4LowEnergyIonisation() in ConstructEM for "e-"; removed
"e+" processing in ConstructEM; In SetCuts: low cut for "e-", but high for "e+" and "gamma" ->
fast simulation results
- Almost all files: reduce number of detectors to one -> mostly those "for-loops" for(G4int i=0;i<1;i++)
Screenshots of some simulations:
Clearly visible are the cascades of electrons due the high electrical field within the detectors.
If you open the VRML visualization with
Idle> /vis/open VRML2FILE
you get WRL files, e.g. g4_00.wrl in the current directory.
Last-Modified: Mon, 27 Mar 2006 16:42:53 GMT
Be very careful when handling high voltages! cosmicrays.org cannot be held liable for damage of any sort!
|