Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./2003 2003.

Slides:



Advertisements
Similar presentations
GEANT Simulation of RCS Vahe Mamyan Hall A Analysis Workshop December 10, 2003.
Advertisements

Computer Simulation for Emission Tomography: Geant4 and GATE Xiao Han Aug
Advanced Neutron Spectrometer (ANS) Geant4 Simulations
Stefan Roesler SC-RP/CERN on behalf of the CERN-SLAC RP Collaboration
LCD group seminar Peter Speckmayer 4. August /3/20091GEANT4 seminar, Peter Speckmayer.
Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./
Electromagnetic Physics I Tatsumi KOI SLAC National Accelerator Laboratory (strongly based on Michel Maire's slides) Geant4 v9.2.p02 Standard EM package.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Electromagnetic Physics I Joseph Perl SLAC National Accelerator Laboratory (strongly based on Michel Maire's slides) Geant4 v9.3.p01 Standard EM package.
Direct-Photon Production in PHENIX Oliver Zaudtke for the Collaboration Winter Workshop on Nuclear Dynamics 2006.
J. Tinslay 1, B. Faddegon 2, J. Perl 1 and M. Asai 1 (1) Stanford Linear Accelerator Center, Menlo Park, CA, (2) UC San Francisco, San Francisco, CA Verification.
Particle Interactions
CMS Full Simulation for Run-2 M. Hildrith, V. Ivanchenko, D. Lange CHEP'15 1.
etc… Analysing samples with complex geometries Particles Inclusions
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
Sergey Ananko Saint-Petersburg State University Department of Physics
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.
An Introduction to Software Architecture
Summary of Work Zhang Qiwei INFN - CIAE. Validation of Geant4 EM physics for gamma rays against the SANDIA, EPDL97 and NIST databases.
Photons e- e+ Bremsstrahlung Comton- scattered photon Pair production Photoelectric absorption Delta ray There are no analytical solutions to radiation.
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.
Interface parallel session report Hajime Yoshida.
Geant4 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
SOFTWARE DESIGN (SWD) Instructor: Dr. Hany H. Ammar
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.
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
SE: CHAPTER 7 Writing The Program
Medical Accelerator F. Foppiano, M.G. Pia, M. Piergentili
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007.
Detector Simulation on Modern Processors Vectorization of Physics Models Philippe Canal, Soon Yung Jun (FNAL) John Apostolakis, Mihaly Novak, Sandro Wenzel.
Andreas Morsch, CERN EP/AIP CHEP 2003 Simulation in ALICE Andreas Morsch For the ALICE Offline Project 2003 Conference for Computing in High Energy and.
Geant4 based simulation of radiotherapy in CUDA
Calorimeters Chapter 4 Chapter 4 Electromagnetic Showers.
RICH SIMULATION USING GEANT4 S.EASO, RAL OBJECTIVES OF THE SIMULATION. CURRENT STATUS AND PLANS. INTEGRATION WITH LHCb SOFTWARE. SUMMARY.
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.
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
Detector Monte-Carlo ● Goal: Develop software tools to: – Model detector performance – Study background issues – Calculate event rates – Determine feasibility.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
Alex Howard, ETH, Zurich 13 th September 2012, 17 th Collaboration Meeting, Chartres 1 Geometrical Event Biasing Facility Alex Howard ETH, Zurich Geometrical.
4th Workshop on Geant4 Bio-medical Developments and Geant4 Physics Validation Riccardo Capra 1 Physics processes Software process and OOAD.
Geant4 Simulation of the Beam Line for the HARP Experiment M.Gostkin, A.Jemtchougov, E.Rogalev (JINR, Dubna)
The High Performance Simulation Project Status and short term plans 17 th April 2013 Federico Carminati.
Accelerator Physics, JU, First Semester, (Saed Dababneh). 1 In the figure: Photoelectric suppressed. Single Compton (effect of crystal dimensions).
Validation of EM Part of Geant4
STEIN Analysis for CINEMA Using GEANT4 Seongha Park Kyung Hee University KHU/SSR,
Event Analysis for the Gamma-ray Large Area Space Telescope Robin Morris, RIACS Johann Cohen-Tanugi SLAC.
Geant4 on GPU prototype Nicholas Henderson (Stanford Univ. / ICME)
Status of Sirene Maarten de Jong. What?  Sirene is yet another program that simulates the detector response to muons and showers  It uses a general.
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.
Today… Modularity, or Writing Functions. Winter 2016CISC101 - Prof. McLeod1.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
Technical Forum 1 New Requests & Requirements Geant4 Technical Forum Mar 2005 Editor J. Apostolakis.
Geant4 Simulation for KM3 Georgios Stavropoulos NESTOR Institute WP2 meeting, Paris December 2008.
A Short Course on Geant4 Simulation Toolkit Introduction
Dollan, Laihem, Lohse, Schälicke, Stahl 1 Monte Carlo based studies of polarized positrons source for the International Linear Collider (ILC)
Alex Howard, Imperial College Slide 1 July 2 nd 2001 Underground Project UNDERGROUND PROJECT – Overview and Goals Alex Howard Imperial College, London.
Interaction with the Geant4 kernel
Progress with Spin Tracking in GEANT4
User Documents and Examples I
Physics I: Physics Lists
An Introduction to Software Architecture
A Short Course on Geant4 Simulation Toolkit Introduction
Presentation transcript:

Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./ Conference for Computing in High Energy and Nuclear Physics

Outline I. Introduction II. System Analysis III. Implementation IV. Status and Summary

I. Introduction

Motivation From Geant4 side, From Geant4 side, In Geant4, various activities trying to implement additional physics processes based on different/more-detailed models are still going. In Geant4, various activities trying to implement additional physics processes based on different/more-detailed models are still going. Such variety of physics processes implemented is one of the most important functionalities as simulation system. Such variety of physics processes implemented is one of the most important functionalities as simulation system. From EGS4 side, From EGS4 side, There are many EGS4 users especially in medical and space field. There are many EGS4 users especially in medical and space field. But, EGS4 has some difficulties; But, EGS4 has some difficulties; Implementing users ’ geometry is hard work, which makes them difficult; Implementing users ’ geometry is hard work, which makes them difficult; to implement complex geometries. to implement complex geometries. to track particles in electromagnetic fields. to track particles in electromagnetic fields. It is written in MORTRAN/FORTRAN. It is written in MORTRAN/FORTRAN.

Our Goal Taking advantages of Geant4: Taking advantages of Geant4: The Geant4 framework has rich flexibility and expansibility. The Geant4 framework has rich flexibility and expansibility. physics processes, geometry, user interface,... physics processes, geometry, user interface,... Geant4 is designed to allow users to implement new processes in a generic/general way. Geant4 is designed to allow users to implement new processes in a generic/general way. We try to use EGS4 as a module of physics process in Geant4. We try to use EGS4 as a module of physics process in Geant4. We can provide an easy-to-use system of EGS4 under the Geant4 framework. We can provide an easy-to-use system of EGS4 under the Geant4 framework. By means of this interface, By means of this interface, EGS4 users can share Geant4 powerful resources, such as geometry description, tracking etc. EGS4 users can share Geant4 powerful resources, such as geometry description, tracking etc. A common environment for comparison tests between EGS4 and Geant4 especially in users ’ application level. A common environment for comparison tests between EGS4 and Geant4 especially in users ’ application level.

Co-Workers Persons involved Persons involved K.Murakami (KEK, K.Murakami (KEK, K.Amako (KEK) K.Amako (KEK) T.Sasaki (KEK) T.Sasaki (KEK) M.Asai (SLAC) M.Asai (SLAC) T.Koi (SLAC) T.Koi (SLAC) and EGS4 developers (technical advice and benchmark) H.Hirayama (KEK) H.Hirayama (KEK) Y.Namito (KEK) Y.Namito (KEK)

II. System Analysis

Analysis of EGS4 System - in terms of difference from Geant4- We first carried out analysis of EGS4 system in terms of difference from Geant4. We first carried out analysis of EGS4 system in terms of difference from Geant4. Our policy is that we should care for NOT to change algorithms and prescriptions which are used in the EGS4 system. Our policy is that we should care for NOT to change algorithms and prescriptions which are used in the EGS4 system. Issue-1: Determination of step size and process selection Issue-1: Determination of step size and process selection In Geant4, each process has its own fate in terms of NIL (N of Interaction Length). Then, a process having minimum fate will occur. In Geant4, each process has its own fate in terms of NIL (N of Interaction Length). Then, a process having minimum fate will occur. In EGS4, the next step size is calculated based on the total cross section. Then, which process will occur is chosen at the rate of branching fraction. In EGS4, the next step size is calculated based on the total cross section. Then, which process will occur is chosen at the rate of branching fraction. Good!! In principle, these are performed in the same manner. Good!! In principle, these are performed in the same manner.

Analysis of EGS4 System (Cont ’ d) Issue-2: The scheme of describing material information Issue-2: The scheme of describing material information In Geant4, material information can be given in users ’ code. In Geant4, material information can be given in users ’ code. In EGS4, users have to prepare a material file to be read in by executing PEGS, which is an external program, preceding to execution of a EGS4 program. In EGS4, users have to prepare a material file to be read in by executing PEGS, which is an external program, preceding to execution of a EGS4 program. Additional information related to “ processes ” (cutoff, parameters/coefficients of formulas) are described in material. Additional information related to “ processes ” (cutoff, parameters/coefficients of formulas) are described in material. We gave up treating materials of EGS4 under the G4 system. We gave up treating materials of EGS4 under the G4 system. Users have to execute PEGS externally to prepare materials to be used in EGS4. Users have to execute PEGS externally to prepare materials to be used in EGS4. Our interface manages materials listed in the PEGS output file. Our interface manages materials listed in the PEGS output file. A material is described/instantiated in terms of both Geant4 and EGS4. A material is described/instantiated in terms of both Geant4 and EGS4. Issue-3: Cutoff scheme Issue-3: Cutoff scheme In Geant4, there is no cutoff energy. Particles basically will be transported until they have zero kinetic energy. In Geant4, there is no cutoff energy. Particles basically will be transported until they have zero kinetic energy. An idea of production cut is in stead introduced. An idea of production cut is in stead introduced. In EGS4, an idea of cutoff energy is applied. Particles below cutoff energy will be discarded. In EGS4, an idea of cutoff energy is applied. Particles below cutoff energy will be discarded. Each material has its own cutoff energy for electron/photon. Each material has its own cutoff energy for electron/photon. We should not change the EGS4 treatments in order to get the same output as obtained by EGS4 itself. (Our Policy) We should not change the EGS4 treatments in order to get the same output as obtained by EGS4 itself. (Our Policy) We don ’ t disturb the cutoff treatment carried out in EGS4. We don ’ t disturb the cutoff treatment carried out in EGS4.

Table of Components – Which package is used – Control Framework :EGS4Geant4 Control Framework :EGS4Geant4 Tracking :EGS4Geant4 Tracking :EGS4Geant4 Geometry : EGS4Geant4 Geometry : EGS4Geant4 Materials :EGS4Geant4 Materials :EGS4Geant4 Cross Section Table:EGS4Geant4 Cross Section Table:EGS4Geant4 (PEGS) (PEGS) Physics Process :EGS4Geant4 Physics Process :EGS4Geant4 Cutoff Scheme :EGS4Geant4 Cutoff Scheme :EGS4Geant4

Decomposition of EGS4 System Materials DATA (PEGS output file) PEGS input files HATCH Block DATA Stack SHOWER ELECTR PHOTON Physics Process Engine A set of subroutines HOWFAR transportation user input EGS4 subroutine replaced with G4 transportation Materials reuse as-is Tracking/Stepping replaced with G4 stepping and G4 processes PEGS external program data managed as EGS4 material

III. Implementation

Materials G4Material EGS Material PEGS Material Geant4 WorldEGS4 World There are three classes describing materials: There are three classes describing materials: PEGS Material: PEGS Material: It describes materials defined in a PEGS output. It describes materials defined in a PEGS output. EGS Material: EGS Material: It has a PEGSMaterial. It has a PEGSMaterial. In addition, it has information, such as In addition, it has information, such as user cutoffs, user density, user flags,... user cutoffs, user density, user flags,... G4 Material: G4 Material: A G4Material is assigned to A EGSMaterial by users. A G4Material is assigned to A EGSMaterial by users. A G4Material is converted to a EGSMaterial through a map at tracking time. A G4Material is converted to a EGSMaterial through a map at tracking time. If no EGSMaterial is assigned, run-time exception occurs. If no EGSMaterial is assigned, run-time exception occurs.

How to work In the EGS4 world, a single virtual volume with In the EGS4 world, a single virtual volume with no dimensions (transportation is a G4 job) no dimensions (transportation is a G4 job) empty medium (dynamically updated) empty medium (dynamically updated) is prepared. is prepared. At tracking time, At tracking time, 1. Medium information of the EGS4 volume is updated at every step though the material map. 2. Kinematical information in the EGS4 stack is updated from G4 track 3. A EGS4 process is invoked. 4. The stack information of EGS4 is evacuated to a G4 particle-change. A virtual volume with no dimensions empty media g4mate g4-egs material map egsmate g4track egs stack g4change egs stack evacuation update

Process List Photon processes Photon processes Rayleigh scattering Rayleigh scattering pair production pair production photo-electric effect photo-electric effect w/ subsequent fluorescence w/ subsequent fluorescence Compton scattering Compton scattering Note: As the first target, we started with interfacing with a plain EGS4 package. So, some extension components like PRESTA is not included yet. Electron processes Electron processes multiple scattering multiple scattering (momentum flip only) (momentum flip only) continuous energy loss continuous energy loss Bremsstrahlung Bremsstrahlung M ø ller scattering (e-) M ø ller scattering (e-) BhaBha(e+) BhaBha(e+) positron annihilation (e+) positron annihilation (e+) (in-flight / at-rest) (in-flight / at-rest)

View from Users’ Side User Physics List: User Physics List: An alternative EM-physics list is provided as a modular “ Physics List ” for EM w/ EGS4 processes. An alternative EM-physics list is provided as a modular “ Physics List ” for EM w/ EGS4 processes. User Detector Construction (Geometry): User Detector Construction (Geometry): Users don ’ t have to modify any existing Geant4 geometry code. Users don ’ t have to modify any existing Geant4 geometry code. Users have to make assignment of a Geant4 material to a EGS4 material. Users have to make assignment of a Geant4 material to a EGS4 material. Cross Section Table: Cross Section Table: Users have to execute PEGS by themselves. Users have to execute PEGS by themselves. define PEGS materials in PEGS input files. define PEGS materials in PEGS input files. execute PEGS to generate a cross section file (so-called PEGS output). execute PEGS to generate a cross section file (so-called PEGS output). All operations can be performed via G4 command line interface interactively. All operations can be performed via G4 command line interface interactively. assigning G4Material to EGSMaterial assigning G4Material to EGSMaterial setting users parameters setting users parameters initialization,... initialization,...

IV. Status and Summary

5 electrons with E k =50 MeV into a slab geometry composed of several materials. (w/ cutoff E k =10 keV) 5 electrons with E k =50 MeV into a slab geometry composed of several materials. (w/ cutoff E k =10 keV) red: electron green: photon Sample Event Display

Benchmarks Development environment Development environment Linux (SuSE 8.1 / RedHat x.x /...) Linux (SuSE 8.1 / RedHat x.x /...) gcc/g77 ver. 3.2 (2.95.2/3) gcc/g77 ver. 3.2 (2.95.2/3) Geant4 ver (patch01) Geant4 ver (patch01) Robustness Robustness several-M events in a simple geometry were successfully generated without crush. several-M events in a simple geometry were successfully generated without crush. Detail benchmark tests were just started. Detail benchmark tests were just started.

Current Status and Plans First implementation was finished. First implementation was finished. Detail system check and benchmark tests are started as the next target. Detail system check and benchmark tests are started as the next target. We plan comparisons We plan comparisons between EGS4 itself and EGS2G4. between EGS4 itself and EGS2G4. between EGS4 and EGS2G4 on a common environment. between EGS4 and EGS2G4 on a common environment. Information/documentation is being prepared on WWW. Information/documentation is being prepared on WWW. Technical studies for including extensive components like PRESTA are planned for fairer comparisons. Technical studies for including extensive components like PRESTA are planned for fairer comparisons.

Summary We have successfully developed the first version of an interface between Geant4 and EGS4 based on OO- approach. We have successfully developed the first version of an interface between Geant4 and EGS4 based on OO- approach. This work is a proof of flexibility and expansibility of the Geant4 framework. This work is a proof of flexibility and expansibility of the Geant4 framework. By means of this interface, EGS4 users will be able to share Geant4 powerful resources, such as geometry description, tracking etc. By means of this interface, EGS4 users will be able to share Geant4 powerful resources, such as geometry description, tracking etc. Further detail benchmarks are on going. Further detail benchmarks are on going. We also plan to include some extension components so that as much functionalities as possible can be available. We also plan to include some extension components so that as much functionalities as possible can be available.