Geant4 Simulation Toolkit An Introduction

Slides:



Advertisements
Similar presentations
Experimental Particle Physics
Advertisements

Cheikh Anta Diop University, Dakar (SENEGAL)
Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Geant4 Overview John Apostolakis (CERN) & Dennis Wright (SLAC)
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
LCD group seminar Peter Speckmayer 4. August /3/20091GEANT4 seminar, Peter Speckmayer.
Status and Plans for Geant4 Hadronics Dennis Wright (SLAC) SPENVIS & Geant4 Space Users' Workshop Leuven, Belgium 3-7 October 2005.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
Hadronic and Electromagnetic Physics: special applications V.Ivanchenko BINP, Novosibirsk, Russia & CERN, Geneve, Switzerland.
Guided Tour of Geant4 Physics Lists II Geant4 Short Course at JPL 10 November 2006 Dennis Wright.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Highlights of latest developments ESA/ESTEC Makoto Asai (SLAC)
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Stopping Power The linear stopping power S for charged particles in a given absorber is simply defined as the differential energy loss for that particle.
Physics III: Cuts, Decay and Optical Physics Geant4 Tutorial at Jefferson Lab 10 July 2012 Dennis Wright (SLAC) Geant4 9.6 beta.
Geant4: Electromagnetic Processes 2 V.Ivanchenko, BINP & CERN
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
St. Petersburg State University. Department of Physics. Division of Computational Physics. COMPUTER SIMULATION OF CURRENT PRODUCED BY PULSE OF HARD RADIATION.
Summary of Work Zhang Qiwei INFN - CIAE. Validation of Geant4 EM physics for gamma rays against the SANDIA, EPDL97 and NIST databases.
Geant4 Collaboration 1 Electromagnetic Physics Authors: P. Gumplinger, M. Maire, P. Nieminen, M.G. Pia, L. Urban Budker Inst. of Physics IHEP Protvino.
Lecture 1.3: Interaction of Radiation with Matter
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Geant4 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
Physics I: Physics Lists Geant4 Tutorial at Jefferson Lab 10 July 2012 Dennis Wright (SLAC) Geant4 9.6 beta.
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
Basic Structure of the Geant4 Simulation Toolkit
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
1 Status and Plans for Geant4 Physics Linear Collider Simulation Workshop III 2-5 June 2004 Dennis Wright (SLAC)
Detector Simulation Presentation # 3 Nafisa Tasneem CHEP,KNU  How to do HEP experiment  What is detector simulation?
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Hadronic Physics II Geant4 Users’ Tutorial CERN February 2010 Gunter Folger.
Precision Validation of Geant4 Electromagnetic Physics Geant4 DNA Project Meeting 26 July 2004, CERN Michela.
Maria Grazia Pia INFN Genova Salamanca, July 2002
V.Ivanchenko Salamanca1 Geant4: Electromagnetic Processes 1  Introduction  Interfaces  PhysicsList  Optical process.
Hadronic Physics III Geant4 Tutorial at Marshall Space Flight Center 19 April 2012 Dennis Wright (SLAC) Geant4 9.5.
Radiation study of the TPC electronics Georgios Tsiledakis, GSI.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
Physics II : processes Paris Geant4 Tutorial 5 June 2007 Marc Verderi Ecole Polytechnique - LLR.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
A Short Course on Geant4 Simulation Toolkit Introduction
Geant4 KISTI Tutorial Marc Verderi LLR – Ecole polytechnique October 2012 Physics II: Overview, Processes, Production Threshold.
Chapter 2 Radiation Interactions with Matter East China Institute of Technology School of Nuclear Engineering and Technology LIU Yi-Bao Wang Ling.
Interaction with the Geant4 kernel
Calorimeters at CBM A. Ivashkin INR, Moscow.
Methods of Experimental Particle Physics
Simulation Project Structure and tasks
Interaction with the Geant4 kernel
PHYS 3446 – Lecture #14 Energy Deposition in Media Particle Detection
User Documents and Examples I
Basics of a user application
Outside the nucleus, the beta decay {image} will not occur because the neutron and electron have more total mass than the proton. This process can occur.
Experimental Particle Physics
G.A.P.Cirrone, S.E.Mazzaglia - INFN/LNS, Italy
Physics III: Cuts, Decay and Optical Physics
Physics I: Physics Lists
The n-3He Simulation Using Geant4
Geant4: Electromagnetic Processes 2
Hadronic Physics in Geant4
The Hadrontherapy Geant4 advanced example
A Short Course on Geant4 Simulation Toolkit Introduction
Interaction of Radiation with Matter
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
Experimental Particle Physics
The Geant4 Hadrontherapy Advanced Example
Lesson 4: Application to transport distributions
Simulation in Experiments searching for rare events
PHYS 3446 – Lecture #14 Energy Deposition in Media Particle Detection
Presentation transcript:

Geant4 Simulation Toolkit An Introduction Witek Pokorski 31.05.2013

Content General Introduction Toolkit architecture What is it, why do we need it? Toolkit architecture What does it consist of? How does it work? Geant4 application cookbook Recipe for your first Geant4 application Conclusion

introduction

What is Geant4? A software (C++) toolkit for the Monte Carlo simulation of the passage of particles through matter ‘propagates’ particles through geometrical structures of materials, including magnetic field simulates processes the particles undergo creates secondary particles decays particles calculates the deposited energy along the trajectories and allows to store the information for further processing (‘hits’) Simulated Higgs event in CMS

Monte Carlo simulation What is Monte Carlo throwing randon numbers to calculate integrals to pick among possible choices Why Monte Carlo because Einstein was wrong: God does throw dice! Quantum mechanics: amplitudes => probabilities Anything that possibly can happen, will! (but more or less often) Want to generate events in as much detail as Mother Nature get average and fluctutations right make random choices,∼as in nature

Why do we need it? to design and to construct the devices to get what we are looking for to be able to see the relevant ‘events’ not to get what we do not want radiation damage, etc to operate the devices to adjust and to tune the aparatus medical physics: dose calculation, etc to understand the experimental results to compare to the existing theories and models to make discoveries

Geant4 has been successfully employed for Detector design Calibration / alignment First analyses T. LeCompte (ANL) Figures from CMS Kernel I - M.Asai (SLAC)

Simulation is needed to make discoveries We need to understand the detector to do physics We need to know what to expect to verify existing models find new physics

Many applications... High Energy Physics Astrophysics Space Research Medical Physics Biology other fields…

Kernel I - M.Asai (SLAC)

Kernel I - M.Asai (SLAC) MAXI ISS Columbus AMS EUSO Bepi Colombo SWIFT LISA Smart-2 ACE INTEGRAL Astro-E2 JWST GAIA Herschel Cassini GLAST XMM-Newton Kernel I - M.Asai (SLAC)

Kernel I - M.Asai (SLAC)

GEANT4 based proton dose calculation in a clinical environment: technical aspects, strategies and challenges Harald Paganetti Kernel I - M.Asai (SLAC)

TOOLKIT architecture

Geant4 Components ‘kernel’, internals of the engine, no direct interaction with the user code ‘user interface’ classes directly instantiated by the users with specific parameters box of dimension x, y, z base classes for concrete users implementations ‘user actions’, sensitive detectors Geometry Physics Tracking Output (hits, MC truth)

Geant4 application Geometry implementation ‘Hits’ (energy deposition) magnetic field ‘Hits’ (energy deposition) Geant4 kernel User ‘actions’ ‘MC truth’ (generated secondaries) Primary particles physics models Visualisation

Geometry how to implement (efficiently) this in your computer program? you need ‘bricks’ ‘solids’, ‘shapes’ you need to position them you want to ‘reuse’ as much as possible the same ‘templates’

Geometry (1/3) set of solids (shapes) classes logical volumes box, sphere, tube, etc, etc… boolean operations on solids logical volumes unpositioned volumes with associated materials and possibly with ‘daughter’ volumes unpositioned hierarchies of volumes physical volumes concrete ‘placements’ of logical volumes can reuse the same logical volume several times

Geometry (2/3) mother volume logical volume solid physical volume sensitive detector mother volume logical volume solid physical volume translation rotation daughter volumes material logical volume

experiment cavern (LV) Geometry (3/3) world (PV) experiment cavern (LV) tracker 1 (PV) tracker 2 (PV) calorimeter (PV) calorimeter (LV) tracker LV module 1(PV) module 1(PV) module 1(PV) module 1(PV) cell1 (PV) cell2 (PV) module LV cell LV

Advance geometry replicas divisions reflections assemblies parameterizations 21

Materials In nature, materials (chemical compounds, mixtures) are made of elements, and elements are made of isotopes In Geant4: G4Isotope, G4Element, G4Material users can ‘build’ their materials, instantiating elements and adding them with the right fractions Geant4 contains also National Institute of Standards (NIST) database of materials materials can be instantiated directly from it strongly recommended to be used

Navigation and tracking ‘navigator’ role is to provide geometry information to tracking mechanism locates the point in the geometry structure which volume I am in? calculates the distances to the boundaries (along specified direction) non-trivial problem of simulation ‘continuous’ physics (space-time) with discrete steps steps cannot be infinitely small steps need to be limited by crossing geometrical boundaries, physics or kinetic energy going to 0 accuracy of tracking on the surfaces defined by geometrical ‘tolerance’

Magnetic field Geant4 can propagate in magnetic fields, electric fields, electromagnetic fields, and gravity fields, uniform or non-uniform the equation of motion of the particle in the field is integrated using Runge-Kutta method in particular cases analytical solutions can be used curved trajectory broken up in linear cord segments parameter ‘miss distance’ sets how closely the curved path is approximated non trivial problem to avoid qualitatively wrong results

User actions how to control your simulation? Run steps tracks Run stack Event how to control your simulation? G4UserRunAction BeginOfRunAction, EndOfRunAction G4UserEventAction BeginOfEventAction, EndOfEventAction G4UserStackingAction ClassifyNewTrack, NewStage, PrepareNewEvent G4UserTrackingAction PreUserTrackingAction, PostUserTrackingAction G4UserSteppingAction BeginOfStepAction, EndOfStepAction fully customizable (empty by default) allow user to take actions depending on his specific case simulated only relevant particles save specific information, fill histograms speed-up simulation by applying different limits stack Event stack Event stack Event

Users actions – sensitive detectors sensitive detectors are user actions attached to specific volumes ProcessHits – invoked when a particle enters the ‘sensitive’ volume allows to create ‘hits’ energy deposition, x, y, z coordinates, etc Initialize – called at the beginning of each event EndOfEvent – called at the end of each event they simulate detector response to the particles passing through the sensors

Physics… what happens to a particles in matter? we need to implement the physics we know

Physics processes (1/2) each process provides GetPhysicalInteractionLength method calculates probability of interactions from the cross-section *DoIt methods AlongStepDoIt – always invoked for all the processes defined for a given particle PostStepDoIt – invoked at the end of the step if the given process provided the smallest Physical Interaction Lenght. AtRestDoIt – like PostStepDoIt but for stopped particles

Physics processes (2/2) Physical interaction lengths and distance to the next boundary (eventually recalculated) are compared the smallest value wins along step called for all processes and resulting change of the track accumulated in G4Step particle change object stores the final state information including secondary tracks generated by DoIt methods

Electromagnetic (1/2) simulation of electromagnetic interactions of charged particles, gammas and optical photons standard electromagnetic physics optimized for high and medium energy applications energy range from 1keV to 1PeV low energy electromagnetic physics down to eV medical and biological application Geant4-DNA project

Electromagnetic (2/2) Gammas: Leptons(e, μ), charged hadrons, ions Gamma-conversion, Compton scattering, Photo-electric effect Leptons(e, μ), charged hadrons, ions Energy loss (Ionisation, Bremstrahlung), Multiple scattering, Transition radiation, Synchrotron radiation, e+ annihilation. Photons: Cerenkov, Rayleigh, Reflection, Refraction, Absorption, Scintillation High energy muons A choice of implementations for most processes “Standard”: performant, where relevant physics above 1 KeV “Low Energy”: Extra accuracy, for application delving below 1 KeV 50 MeV e- entering LAr-Pb calorimeter

Need for production cuts some electromagnetic processes have infrared divergences threshold needed below which no secondaries are generated production threshold for gammas, electrons and positrons ‘cuts’ can be defined per region of the geometry detailed simulation of the EM shower in the sensitive part, but no details needed in some ‘dead’ materials (support, etc) Geant4 uses ‘cut in range’ converted to energy for each material assures better coherency of the simulation that a cut in energy would do

Why cut in range traditionally Monte Carlo simulations impose absolute cutoff in energy particle are stopped when this energy is reached remaining energy is dumped at that point this can lead to imprecise stopping location and deposition of energy there is also a particle dependence range of a 10 keV g in Si is a few cm range of a 10 keV e- in Si is a few microns And a material dependence suppose you have a detector made of alternating sheets of Pb and plastic scintillator if the cutoff is OK for Pb it will likely be wrong for the scintillator which does the actual energy measurement

Cut in range (production threshold) vs. energy cut Example: 500 MeV p in LAr-Pb Sampling Calorimeter Geant3 (and others) Geant4 Production range = 1.5 mm Pb LAr

Hadronic hadrons at rest hadrons in flight π, K absorption neutron capture anti-proton, anti-neutron annihilation μ- capture hadrons in flight inelastic scattering elastic scattering fission neutron, anti-neutron capture

Partial hadronic model inventory At rest absorption, , , K, anti-p Photo-nuclear, electro-nuclear Radioactive decay Electro-nuclear dissociation QMD (ion-ion) High precision neutron Wilson Abrasion Evaporation Pre-compound Fermi breakup Multifragment Photon Evap Quark Gluon string Binary cascade Fritiof string Bertini-style cascade 1 MeV 10 MeV 100 MeV 1 GeV 10 GeV 100 GeV 1TeV

Hadronic Interactions from TeV to meV High energy QCD string model Intranuclear cascade model TeV hadron ~GeV to ~100 MeV dE/dx ~ A1/3 GeV Evaporation pre-compound/de-excitation p, n, d, t,   and n ~100 MeV to ~10 MeV ~10 MeV to thermal 37 37

High Energy Nuclear Interaction Lorentz contraction High energy strings then decay into hadrons according to fragmentation functions strings between quark-diquark pairs stretched strings break into smaller strings nucleon projectile excited string 38 38

Gamma- and Lepto-nuclear Models (1/2) Gamma-nuclear Gammas interact directly with the nucleus at low energies they are absorbed and excite the nucleus as a whole at high energies they act like hadrons (pion, rho, etc.) and form resonances with protons and neutrons g p s and nucleons 39

Gamma- and Lepto-nuclear Models (2/2) Electrons and muons cannot interact hadronically, except through virtual photons electron or muon passes by a nucleus and exchanges virtual photon virtual photon then interacts directly with nucleus (or nucleons within nucleus) virtual g ps and nucleons

Geant4 ‘Physics Lists’ set of physics models covering all the needed processes for the relevant particles and cross sections for them predefined physics lists for specific applications general high energy physics high precision high energy physics (detailed tracking of neutrons low energy etc

Geant4 application cookbook

What you need to make simulation? and to get something out of it…

Your first Geant4 application recipe geometry primary generator user actions give commands to UI manager look into Geant4 basic examples in the examples directory

Visualisation visualize available visualization drivers geometry tracks hits available visualization drivers OpenGL OpenInventor HepRep DAWN VRML RayTracer gMocren ASCIITree

Conclusion Geant4 is a Monte Carlo simulation toolkit used in different domains like High Energy Physics, astrophysics, space research, medical physics, biology, etc it allows you to simulate the passage of the particle through the matter, the process their undergo and the energy deposition they make the use of such a simulation is essential to build, understand and use your devices

Resources for more information Geant4 web site http://cern.ch/geant4/ Geant4 Training Page Material form several training courses http://cern.ch/geant4/support/ “Training” link, or directly http://geant4.web.cern.ch/geant4/support/training.shtml Geant4 Tutorials, Users Workshops and workshop presentations 2011 Tutorial, CENBG Bordeaux 2009 Users Wrkshp Catania (October 09) http://www.lns.infn.it/geant4/geant4ws2009/ Look for Timetable 2008 Kobe, 2007 UK, 2006 Lisbon 2005 Bordeaux – several sessions focus on Medical applications http://geant4.in2p3.fr/2005/ Workshops and Users Workshops links at http://geant4.web.cern.ch/geant4/collaboration/workshops.shtml Geant4 Physics Validation EM https://twiki.cern.ch/twiki/bin/view/Geant 4/EMValidation Hadronic http://geant4.fnal.gov/hadronic_validatio n/validation_plots.htm Working Group web sites Electromagnetic: Standard & Low- Energy, Hadronic, at http://cern.ch/geant4/organisation/working _groups.html Many papers on Geant4 and its validation First ‘reference’ paper “Geant4: a simulation toolkit”, Nucl. Instr. and Methods A 506 (2003), 250-303.