![Page 1: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/1.jpg)
Particle Detector Simulation (I) Using Geant4
Ahmed Sayed Hamed(master student)
![Page 2: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/2.jpg)
Introduction
GEANT4 (GEometry ANd Tracking version 4) is an Object-
Oriented Programming (OOP) Toolkit for the simulation of the
passage of particles through matter. Geant4 nowadays used by a
wide scientific community worldwide in diverse experimental
domains.
![Page 3: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/3.jpg)
It is also used in production by large scale high energy and
nuclear physics experiments as well as in smaller scale detector
development projects.
Geant4 provides many packages specialized for modeling both
electromagnetic and hadronic physic interactions at different
energies.
![Page 4: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/4.jpg)
At the end of this presentation we will learn the
basics of geometry description with simple
placements (location, rotation).
Objective
![Page 5: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/5.jpg)
Part I
![Page 6: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/6.jpg)
How to define detector geometry
![Page 7: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/7.jpg)
For example: Creating Cylinder
![Page 8: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/8.jpg)
Logical volume
![Page 9: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/9.jpg)
Physical volume
![Page 10: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/10.jpg)
How to specify detector material
![Page 11: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/11.jpg)
There are various methods to specify materials
For example, Defining air and water from the internal Geant4 database.
![Page 12: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/12.jpg)
How to set up• Prepare directory for your application.
In that directory
• myApplication.cc– A file in which main() is defined
• includes/– Directory for header files (class definition) for mandatory user classes and optional user run
action classes.
• src/– Directory for source files (class implementation) for the above classes.
• GNUmakefile– A make file describing how to build the application
![Page 13: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/13.jpg)
Application directory
![Page 14: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/14.jpg)
Part (II)Practice
![Page 15: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/15.jpg)
Step-0 SetupCopy the application and unpack it in the work directory (~/work/).Step-1 Compile and run$ make clean $ make –j 2... Done!$ export G4VRMLFILE_MAX_FILE_NUM=0$ $G4WORKDIR/bin/Linux-g++/expd2 Idle> /control/execute vis.macIdle> exit$ ls$ vrmlview g4_00.wrl
![Page 16: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/16.jpg)
![Page 17: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/17.jpg)
• $ $G4WORKDIR/bin/Linux-g++/expd2 • ...• Idle> /control/execute vis.mac• ...• Idle> /control/execute gun.mac• ...• Idle> /run/beamOn 5
![Page 18: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/18.jpg)
![Page 19: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/19.jpg)
References
1- Geant4 Application Developers Guide2- http://wiki.kek.jp
![Page 20: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)](https://reader034.vdocuments.us/reader034/viewer/2022051415/56649d815503460f94a66189/html5/thumbnails/20.jpg)
Thank you