20
Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Embed Size (px)

Citation preview

Page 1: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Particle Detector Simulation (I) Using Geant4

Ahmed Sayed Hamed(master student)

Page 2: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

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)

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)

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)

Part I

Page 6: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

How to define detector geometry

Page 7: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

For example: Creating Cylinder

Page 8: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Logical volume

Page 9: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Physical volume

Page 10: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

How to specify detector material

Page 11: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

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)

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)

Application directory

Page 14: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Part (II)Practice

Page 15: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

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)
Page 17: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

• $ $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)
Page 19: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

References

1- Geant4 Application Developers Guide2- http://wiki.kek.jp

Page 20: Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)

Thank you