180 likes | 406 Views
Introduction of Simulation by GEANT4. Jeng-Lun, Chiu Institute of Physics, NTHU 2006/06/22. What’s GEANT4. Geant4 (GEometry ANd Tracking ) is a toolkit for the simulation of the passage of particles through matter .
E N D
Introduction of Simulation by GEANT4 Jeng-Lun, Chiu Institute of Physics, NTHU 2006/06/22
What’s GEANT4 • Geant4(GEometry ANd Tracking) is a toolkit for the simulation of the passage of particles through matter. • Its application areas include high energy, nuclear and accelerator physics, as well as studies in medical and space science.
Applications Space & Radiation • SEPTIMESS • Space Energetic Particle Transport and Interaction Modeling studies • REAT • Radiation Effects Analysis Tools • INTAS • High-Energy Interplanetary Radiation Fields and Radiation Effect Simulation for Spacecraft Missions • European Space Agency • Energetic Particle Shielding and Interaction Tools • XMM-Newton Radiation Environment • Space Environment Information System (SPENVIS) • DESIRE • The aim of the DESIRE project is to calculate the radiation levels inside the Columbus International Space Station (ISS) module, and from these estimate the doses received by astronauts and equipment. • GLAST • Gamma Ray Large Area Space Telescope High Energy Physics • BaBar • The BaBar simulation reproduces in detail the generation of events at the interaction point, the propagation of the resulting particles through the detector and the response of the detector to these particles. Detector response quantities are then used to construct candidate events which may analyzed as if they were real data. • ATLAS (LHC) • Brief description of how GEANT4 is used in the ATLAS Detector Simulation. • OSCAR (LHC) • Brief description of how GEANT4 is used in the in the Object oriented Simulation for CMS Analysis and Reconstruction. • GAUSS (LHC) • Brief description of how GEANT4 is used in the Gauss simulation program of the LHCb experiment. • ALICE • Brief description of how GEANT4 is used in the ALICE Geant4 Simulation. Medical • GATE • Geant4 Application for Tomographic Emission
Source codes GEANT4 - Main • The Geant4 source code ( geant4.8.0.p01.gtar.gz) GEANT4 - Data • Neutron data files with thermal cross sections (G4NDL version 3.8) ( G4NDL.3.8.tar.gz) • Neutron data files without thermal cross sections (G4NDL version 0.2) ( G4NDL.0.2.tar.gz ) • Data files for low energy electromagnetic processes (version 3.0) ( G4EMLOW.3.0.tar.gz ) • Data files for photon evaporation ( PhotonEvaporation.2.0.tar.gz ) • Data files for radioactive decay hadronic processes (version 3.0) ( RadiativeDecay.3.0.tar.gz ) • Data files for high energy elastic scattering processes (version 1.1) ( G4ELASTIC.1.1.tar.gz ) GEANT4 - Additional Required Software • CLHEP – A Class library for High Energy Physics ( clhep-1.9.2.2-slc3-ia32-gcc344.tgz ) • DAWN – Visualization software (a PostScript renderer ) ( dawn_3_88a.taz ) • ROOT – An Object-Oriented Data Analysis Framework ( root_v5.11.06.Linux.slc4.gcc3.4.5.tar )
Now Installing… • Check the “Operating Systems” and “Required Software (C++ complier, CLHEP library, GNU Make, & G4 toolkit source code)”. (also software for visualization and analysis…) • Type “./Configure –build” under the folder “geant4.8.0.p01”. • Then follow the on-screen instructions to set the path in the system where Geant4 libraries should be installed later on. • Set other paths manually in “~/.bashrc” for “CLHEP”, “data-files”, “Geant4 files after compilation”, and etc… • Completion of installation?! • In addition, install the hadronic physics lists manually under “$G4INSTALL/physics_lists/hadronic”.
Note!! • It is better to fully install the Linux-system!!! • Interrupting the installation of GEANT4 and reworking may cause some errors due to the unclear settings of paths!! • Don’t forget to install the hadronic physics lists manually!
Novice Examples Descriptions of the six novice examples are provided here along with links to the code. 1. ExampleN01 (Description below) • Mandatory user classes • Demonstrates how Geant4 kernel works 2. ExampleN02 (Description below) • Simplified tracker geometry with uniform magnetic field • Electromagnetic processes 3. ExampleN03 (Description below) • Simplified calorimeter geometry • Electromagnetic processes • Various materials 4. ExampleN04 (Description below) • Simplified collider detector with a readout geometry • Full ‘‘ordinary’’ processes • PYTHIA primary events • Event filtering by stack 5. ExampleN05 (Description below) • Simplified BaBar calorimeter • EM shower parametrisation 6. ExampleN06 (Description below) • Optical photon processes 7. ExampleN07 (Description below) • Geometrical Regions for production thresholds • Dynamic geometry setups between runs • Primitive scorer and filter • Derived run class and run action
Example N02 /N02/*(main programs inside) • ExN02ChamberParameterisation • ExN02DetectorConstruction • ExN02DetectorMessenger • ExN02EventAction • ExN02MagneticField • ExN02PhysicsList • GNUmakefile • History • README • run1.mac • run2.mac • vis.mac • exampleN02.cc • exampleN02.err • exampleN02.in • exampleN02.large_N.in • exampleN02.out /N02/include/*.hh(Announcement of all parameters and programs) /N02/src/*.cc(all the related programs) • ExN02PrimaryGeneratorAction • ExN02RunAction • ExN02SteppingAction • ExN02SteppingVerbose • ExN02TrackerHit • ExN02TrackerSD
File Structure Tree (3) gmake
Note for tests *.mac: vis:proton ; run1:mu- ; run2:proton with B exampleN02: 00,01 <- vis.mac : 60,120 deg. 02,03 <- vis.mac : 90,180 deg. 04,05,06 <- run1.mac : visualization with vis.mac parameters 07 <- run2.mac : visualization with vis.mac parameters 08 <- run2.mac : visualization with vis.mac parameters ; beam 100 Test_program (TEST_II): (ExN02DetectorConstruction_ZhongKai.cc ; Test_program_ZK) 09,10 <- vis.mac : 60,120 11,12 : 90,180 13 : 90,0 14,15 : 120,120 16,17,18 <- run1.mac : 60:120 19,20,21 <- run2.mac : B=10T ; 60,120 ; beam=1 (22,23:90,180; 24:90,0; 25:120,120; 26:90,90) (27:60,0; 28:60,30; 29:60,90; 30:60,120 ; 31:60,150) 32~34 <- run2.mac : B=10T ; 60,30 ; beam=10 (devices changed: 8 chambers)(ExN02DetectorConstruction_try.cc) 35~37 <- run1.mac : 60,120 38~40 <- run2.mac : B=20T ; 60,30 ; beam=10
Geant4 advanced examples • g-ray telescope • X-ray telescope • Underground physics and radiation background • X-ray fluorescence • Brachytherapy
Within the recent 2 months…… ( 1 month ) • Downloading GEANT4 source codes… and preparing the necessary programs (CLHEP, ROOT, DAWN) • Installing and setting paths… • Understanding novice example… (N02) • Changing parameters… (TEST_II) To be continued…
Reference • http://geant4.web.cern.ch/geant4/index.shtml(GEANT4) • http://atlas.web.cern.ch/Atlas/GROUPS/SOFTWARE/OO/simulation/geant4/photoalbum.html(photo gallery) • http://www.ge.infn.it/geant4/events/pisa_jan2006/geant4lectures.html(GEANT4 Short Course 2006 --- Lecture Notes (INFN Pisa, Pisa (Italy), 12-01-06)) • http://proj-clhep.web.cern.ch/proj-clhep/INSTALLATION/clhep-1.9.html(CLHEP) • http://root.cern.ch/(ROOT) • http://geant4.kek.jp/GEANT4/vis/(DAWN-download) • http://cern.ch/geant4/G4UsersDocuments/Overview/html(User Guide) ~ Thank You ~