IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,

Slides:



Advertisements
Similar presentations
Precision validation of Geant4 electromagnetic physics Katsuya Amako, Susanna Guatelli, Vladimir Ivanchenko, Michel Maire, Barbara Mascialino, Koichi Murakami,
Advertisements

Maria Grazia Pia IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst.
LCD group seminar Peter Speckmayer 4. August /3/20091GEANT4 seminar, Peter Speckmayer.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Maria Grazia Pia, INFN Genova 1 Part V The lesson learned Summary and conclusions.
Geant4-Genova Group Validation of Susanna Guatelli, Alfonso Mantero, Barbara Mascialino, Maria Grazia Pia, Valentina Zampichelli INFN Genova, Italy IEEE.
Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./
1 Physics in G4MICE MICE Collaboration meeting Berkeley 11 Feb 2005 Rikard Sandström Geneva University.
Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./
Particle Interactions
Maria Grazia Pia, INFN Genova CERN, 26 July 2004 Background of the Project.
1 M.G. Pia et al. The application of GEANT4 simulation code for brachytherapy treatment Maria Grazia Pia INFN Genova, Italy and CERN/IT
Maria Grazia Pia, INFN Genova Low Energy Electromagnetic Physics Maria Grazia Pia INFN Genova
Budker Inst. of Physics IHEP Protvino MEPHI Moscow Pittsburg University.
Maria Grazia Pia, CERN/IT and INFN Genova Electromagnetic Physics Maria Grazia Pia CERN/IT and INFN Genova S. Chauvie, V. Grichine, P. Gumplinger, V. Ivanchenko,
Maria Grazia Pia, INFN Genova and CERN1 Geant4 Hadron Kinetic Model for intra-nuclear transport Maria Grazia Pia CERN/IT and INFN, Sezione di Genova L.Bellagamba.
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.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Physics data management tools: computational evolutions and benchmarks Mincheol Han 1, Chan-Hyeung Kim 1, Lorenzo Moneta 2, Maria Grazia Pia 3, Hee Seo.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Particles and Processes The full set of lecture notes of this Geant4 Course is available at
Marc Verderi - IN2P3 SLAC User's Workshop.1 Introduction G EANT4 has been designed to allow users to implement new processes the kernel will treat as any.
Adding a new process CERN User’s Workshop 13 November 2002 V.Ivanchenko, CERN, Budker Institute for Nuclear Physics Based on presentation of M.Verderi.
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.
Geant4 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Physics I: Physics Lists Geant4 Tutorial at Jefferson Lab 10 July 2012 Dennis Wright (SLAC) Geant4 9.6 beta.
OOAD… LowE Electrons From HEP computing to medical research and vice versa Bidirectional From HEP computing to medical research and vice versa Bidirectional.
Susanna Guatelli & Barbara Mascialino G.A.P. Cirrone (INFN LNS), G. Cuttone (INFN LNS), S. Donadio (INFN,Genova), S. Guatelli (INFN Genova), M. Maire (LAPP),
1 Physics I: Physics Lists Paris Geant4 Tutorial 4 June 2007 Marc Verderi Laboratoire Leprince-Ringuet (Heavily copied from D. Wright) Geant4 V8.3.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Simulation of the energy response of  rays in CsI crystal arrays Thomas ZERGUERRAS EXL-R3B Collaboration Meeting, Orsay (France), 02/02/ /03/2006.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
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.
Physics processes in general SLAC User’s Workshop February 18 – Marc Verderi Ecole Polytechnique - LLR.
Precision Validation of Geant4 Electromagnetic Physics Geant4 DNA Project Meeting 26 July 2004, CERN Michela.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Gamma ray interaction with matter A) Primary interactions 1) Coherent scattering (Rayleigh scattering) 2) Incoherent scattering (Compton scattering) 3)
Geant4 Training 2006 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki Institute of Physics)
Physics Data Libraries: Content and Algorithms for Improved Monte Carlo Simulation Physics data libraries play an important role in Monte Carlo simulation:
V.Ivanchenko Salamanca1 Geant4: Hadronic Processes 1  Cross sections  Secondary generators  Nuclear interactions at rest  CHIPS model.
V.Ivanchenko Salamanca1 Geant4: Electromagnetic Processes 1  Introduction  Interfaces  PhysicsList  Optical process.
Physics I: Physics Lists Puebla Geant4 Tutorial 15 June 2010 Dennis Wright Geant4 V9.3.p01.
Geant4 Training 2004 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Giuseppe Daquino (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki.
Maria Grazia Pia, INFN Genova and CERN1 Geant4 highlights of relevance for medical physics applications Maria Grazia Pia INFN Genova and CERN.
Physics II : processes Paris Geant4 Tutorial 5 June 2007 Marc Verderi Ecole Polytechnique - LLR.
Geant4 Simulation for KM3 Georgios Stavropoulos NESTOR Institute WP2 meeting, Paris December 2008.
Geant4 KISTI Tutorial Marc Verderi LLR – Ecole polytechnique October 2012 Physics II: Overview, Processes, Production Threshold.
Interaction with the Geant4 kernel
Particles and Processes
Interaction with the Geant4 kernel
Particles and Processes
Geant4: Electromagnetic Processes 3 V.Ivanchenko, BINP & CERN
Physics I: Physics Lists
Particles and Processes
Hadronic Physics in Geant4
Short Course Siena, 5-6 October 2006
Short Course IEEE NSS/MIC 2003 Katsuya Amako (KEK) Makoto Asai (SLAC)
Particles and Processes
Marc Verderi GEANT4 collaboration meeting 01/10/2002
Geant4: Electromagnetic Physics 4 V.Ivanchenko, BINP & CERN
Precision validation of Geant4 electromagnetic physics
Introduction to physics and processes
The Geant4 Hadrontherapy Advanced Example
Particles and Processes
Presentation transcript:

IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata, India) Min Cheol Han (Hanyang Univ., Seoul, Korea) Steffen Hauf (XFEL, Hamburg, Germany) Maria Grazia Pia (INFN Genova, Italy) Seoul, 27 October This course encompasses training material developed by several Geant4 members: thanks to all of them!

Particles and Processes Basic concepts underlying Geant4 physics

Physics From the Minutes of LCB (LHCC Computing Board) meeting on 21/10/1997: “It was noted that experiments have requirements for independent, alternative physics models. In Geant4 these models, differently from the concept of packages, allow the user to understand how the results are produced, and hence improve the physics validation. Geant4 is developed with a modular architecture and is the ideal framework where existing components are integrated and new models continue to be developed.”

Physics: general features Ample variety of physics functionality Uniform treatment of electromagnetic and hadronic processes Abstract interface to physics processes  Tracking independent from physics Distinction between processes and models  often multiple models for the same physics process (complementary/alternative) Open system  Users can easily create and use their own models

Physics: general features Transparency  supported by encapsulation and polymorphism)  Calculation of cross-sections independent from the way they are accessed (data files, analytical formulae etc.)  Distinction between the calculation of cross sections and their use  Calculation of the final state independent from tracking  Etc. Modular design, at a fine granularity, to expose the physics Explicit use of units throughout the code Public distribution of the code, from one reference repository worldwide

Data libraries Systematic collection and evaluation of experimental data from many sources worldwide Databases  ENDF/B, JENDL, FENDL, CENDL, ENSDF, JEF, BROND, EFF, MENDL, IRDF, SAID, EPDL, EEDL, EADL, SANDIA, ICRU etc. Collaborating distribution centres  NEA, LLNL, BNL, KEK, IAEA, IHEP, TRIUMF, FNAL, Helsinki, Durham, Japan etc. The use of evaluated data is important for the validation of physics results of the experiments 6

Processes Processes describe how particles interact with material or with a volume Three basic types  At rest process (eg. decay at rest)  Continuous process (eg. ionisation)  Discrete process (eg. Compton scattering) Transportation is a process  interacting with volume boundary A process which requires the shortest interaction length limits the step

Outline What is tracked The process interface The production cuts Using Geant4 physics G4ParticleDefinition G4DynamicParticle G4Track G4ParticleDefinition G4DynamicParticle G4Track Why production cuts are needed The cuts scheme in Geant4 Why production cuts are needed The cuts scheme in Geant4 G4VUserPhysicsList Concrete physics lists G4VUserPhysicsList Concrete physics lists G4VProcess How processes interact with tracking G4VProcess How processes interact with tracking

G4ParticleDefinition Intrinsic particle properties  mass, width, spin, lifetime… Sensitivity to physics This is realized by G4ProcessManager attached to G4ParticleDefinition G4ProcessManager manages the list of processes the user wants the particle to be sensitive to G4ParticleDefinition does not know by itself its sensitivity to physics

Particles and Process design G4ParticleDefinition G4ProcessManager Process_2 Process_3 Process_1 G4Electron G4Geantino G4PionPlusG4Proton G4Alpha G4ParticleDefinition G4VLepton G4VBoson G4VMesonG4VBaryon G4VIon G4VShortLivedParticles G4ParticleWithCuts G4ParticleDefinition is the base class for defining concrete particles

More about particle design G4DynamicParticle Describes the purely dynamic part (i.e. no position, nor geometrical information…) of the particle state:  momentum, energy, polarization Holds a G4ParticleDefinition pointer Retains eventual pre-assigned decay information  decay products  lifetime

More about particle design G4Track Defines the class of objects propagated by Geant4 tracking Represents a snapshot of the particle state Aggregates:  a G4ParticleDefinition  a G4DynamicParticle  geometrical information:  position, current volume …  track ID, parent ID;  process which created this G4Track  weight, used for event biasing

Summary view G4Track G4ParticleDefinition G4DynamicParticle G4ProcessManager Propagated by the tracking Snapshot of the particle state Momentum, pre-assigned decay… The particle type: G4Electron, G4PionPlus… Holds the physics sensitivity The physics processes Process_2 Process_1 Process_3 The classes involved in building the PhysicsList are: G4ParticleDefinitionthe G4ParticleDefinition concrete classes G4ProcessManagerthe G4ProcessManager processesthe processes

G4VProcess Define three kinds of actions: – AtRest actions: decay, annihilation … – AlongStep actions: continuous interactions occurring along the path, like ionisation – PostStep actions: point-like interactions, like decay in flight, hard radiation… A process can implement any combination of the three AtRest, AlongStep and PostStep actions:  eg: decay = AtRest + PostStep AlongStep PostStep Abstract class defining the common interface of all processes in Geant4

G4VProcess actions Each action defines two methods: GetPhysicalInteractionLength()  used to limit the step size  either because the process triggers an interaction or a decay  or in other cases, like fraction of energy loss, geometry boundary, user’s limit… DoIt()  implements the actual action to be applied to the track  implements the related production of secondaries AlongStep PostStep

Processes, ProcessManager and Stepping G4ProcessManager retains three vectors of actions: AtRest  one for the AtRest methods of the particle AlongStep  one for the AlongStep ones PostStep  one for the PostStep actions  these are the vectors which the user sets up in the PhysicsList and which are used by the tracking The stepping treats processes generically  it does not know which process it is handling The stepping lets the processes AlongStep  cooperate for AlongStep actions PostStepAtRest  compete for PostStep and AtRest actions Processes emit also signals to require particular treatment:  notForced: normal case  forced: PostStepDoIt action applied anyway;  conditionallyForced:  conditionallyForced: PostStepDoIt applied if AlongStep has limited the step

Invocation sequence of processes: particle in flight step length At the beginning of the step, determine the step length  consider all processes attached to the current G4Track  define the step length as the smallest of the lengths among  all AlongStepGetPhysicalInteractionLenght()  all PostStepGetPhysicalInteractionLength() AlongStepDoIt() at once Apply all AlongStepDoIt() actions at once  changes computed from particle state at the beginning of the step  accumulated in G4Step  then applied to G4Track, by G4Step PostStepDoIt()sequentially Apply PostStepDoIt() action(s) sequentially, as long as the particle is alive  apply PostStepDoIt() of the process which proposed the smallest step length  apply forced and conditionally forced actions

Invocation sequence of processes: particle at rest killed If the particle is at rest, is stable and cannot annihilate, it is killed by tracking  more properly said: if a particle at rest has no AtRest actions defined, it is killed lifetime Otherwise determine the lifetime  Take the smallest time among all AtRestGetPhysicalInteractionLenght()  Called physical interaction length, but it returns a time AtRestDoIt() Apply the AtRestDoIt() action of the process which returned the smallest time

Processes ordering Ordering of some processes is critical:  assuming n processes, the ordering of the AlongGetPhysicalInteractionLength of the last processes should be: [n-2] … [n-1] multiple scattering [n] transportation Why ?  Processes return a true path length  Multiple scattering virtually folds up this true path length into a shorter geometrical path length  Based on this new length, the transportation process can geometrically limit the step  Other processes ordering usually does not matter

Cuts in Geant4 no tracking cuts In Geant4 there are no tracking cuts  particles are tracked down to a zero range/kinetic energy production cuts Only production cuts exist  i.e. cuts allowing a particle to be born or not Why are production cuts needed ? infrared divergences Some electromagnetic processes involve infrared divergences  this leads to an infinity [huge number] of smaller and smaller energy photons/electrons (such as in Bremsstrahlung,  -ray production)  production cuts limit this production to particles above the threshold  the remaining, divergent part is treated as a continuous effect (i.e. AlongStep action)

Range vs. energy production cuts The production of a secondary particle is relevant if it can generate visible effects in the detector  otherwise “local energy deposit” range cut A range cut allows one to easily define such visibility  “I want to produce particles able to travel at least 1 mm”  criterion which can be applied uniformly across the detector (whole or “region”) energy cut The same energy cut leads to very different ranges  for the same particle type, depending on the material  for the same material, depending on particle type The user specifies a range cut in the PhysicsList  this range cut is converted into energy cuts (G4ParticleWithCut)  each particle (G4ParticleWithCut) converts the range cut into an energy cut, for each material  processes then compute the cross-sections based on the energy cut

Effect of production thresholds Pb Liquid Ar Liquid Ar Pb 500 MeV incident proton Threshold in range: 1.5 mm 455 keV electron energy in liquid Ar 2 MeV electron energy in Pb one must set the cut for delta-rays (DCUTE) either to the Liquid Argon value, thus producing many small unnecessary  -rays in Pb, or to the Pb value, thus killing the  -rays production everywhere GEANT 3 In GEANT 3 DCUTE = 455 keV DCUTE = 2 MeV

Violations of the production threshold In some cases particles are produced even if they are below the production threshold below the production threshold do the best they can This is intended to let the processes do the best they can It happens typically for  decays  positron production:  to simulate the photons resulting from annihilation  hadronic processes:  since no infrared divergence affects the cross-sections Note these are not “hard-coded” exceptions, but a sophisticated, generic mechanism of the tracking

G4VUserPhysicsList It is one of the mandatory user classes (abstract class) Pure virtual methods  ConstructParticles()  ConstructProcesses()  SetCuts() to be implemented by the user in his/her concrete derived class

Electromagnetic physics High energy extensions  needed for LHC experiments, cosmic ray experiments… Low energy extensions  fundamental for space and medical applications, dark matter and  experiments, antimatter spectroscopy etc. Alternative models for the same process Multiple scattering Bremsstrahlung Ionisation Annihilation Photoelectric effect Compton scattering Rayleigh effect  conversion e + e - pair production Synchrotron radiation Transition radiation Cherenkov Refraction Reflection Absorption Scintillation Fluorescence Auger energy loss  electrons and positrons , X-ray and optical photons muons n charged hadrons n ions Comparable to Geant3 already in the  release (1997) Further extensions (facilitated by the OO technology) All obeying to the same abstract Process interface  transparent to tracking

Hadronic physics Completely different approach w.r.t. the past (GEANT 3)  native  transparent  no longer interface to external packages  clear separation between data and their use in algorithms Cross section data sets  transparent and interchangeable Final state calculation  models by particle, energy, material Ample variety of models  An extensive collection of hadronic interaction models  Alternative/complementary models  it is possible to mix-and-match, with fine granularity  data-driven, parameterised and theoretical models Consequences for the users  no more confined to the black box of one package  the user has control on the physics used in the simulation, which contributes to the validation of experiment ’ s results

Summary Transparency and modularity are key characteristics of Geant4 physics Ample variety of processes and models  Open to extension and evolution thanks to the OO technology The PhysicsList exposes, deliberately, the user to the choice of physics (particles + processes) relevant to his/her application  This is a critical task, but guided by the framework  Examples can be used as starting point Physics processes and models are documented in Geant4 Physics Reference Manual and journal publications