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
LCD group seminar Peter Speckmayer 4. August /3/20091GEANT4 seminar, Peter Speckmayer.
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.
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.
Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./
Particle Interactions
The Event as an Object-Relational Database: Avoiding the Dependency Nightmare Christopher D. Jones Cornell University, USA.
CMS Full Simulation for Run-2 M. Hildrith, V. Ivanchenko, D. Lange CHEP'15 1.
etc… Analysing samples with complex geometries Particles Inclusions
Radiation Detection and Measurement, JU, First Semester, (Saed Dababneh). 1 Spectrum if all energy is captured in detector. Allows identification.
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.
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.
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.
ENDF/B-VI Coupled Photon-Electron Data for Use in Radiation Shielding Applications by Dermott E. Cullen Lawrence Livermore National Laboratory & Robert.
1 Status and Plans for Geant4 Physics Linear Collider Simulation Workshop III 2-5 June 2004 Dennis Wright (SLAC)
Simulation of the energy response of  rays in CsI crystal arrays Thomas ZERGUERRAS EXL-R3B Collaboration Meeting, Orsay (France), 02/02/ /03/2006.
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.
1 Software tools for GLC studies Akiya Miyamoto KEK 20 April, 2004 Representing ACFA-Sim Group
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
Chapter 5 Interactions of Ionizing Radiation. Ionization The process by which a neutral atom acquires a positive or a negative charge Directly ionizing.
David Adams ATLAS DIAL: Distributed Interactive Analysis of Large datasets David Adams BNL August 5, 2002 BNL OMEGA talk.
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).
Towards comparisons between TFluka and TGeant3 ( within CbmRoot Framework) Denis Bertini (IT-GSI) Antonin Maire (IPHC Strasbourg)
Interfacing the JQMD and JAM Nuclear Reaction Codes to Geant4 Stanford Linear Accelerator Center Koi, Tatsumi
Validation of EM Part of Geant4
Event Analysis for the Gamma-ray Large Area Space Telescope Robin Morris, RIACS Johann Cohen-Tanugi SLAC.
Notes About MARS background simulations for BTeV A Summary of how far we’ve come and how far we have to go. By DJ Wagner 9/12/98 Vanderbilt University.
Geant4 on GPU prototype Nicholas Henderson (Stanford Univ. / ICME)
Maria Grazia Pia, INFN Genova and CERN1 Geant4 highlights of relevance for medical physics applications Maria Grazia Pia INFN Genova and CERN.
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.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Geant4 Simulation for KM3 Georgios Stavropoulos NESTOR Institute WP2 meeting, Paris December 2008.
Dollan, Laihem, Lohse, Schälicke, Stahl 1 Monte Carlo based studies of polarized positrons source for the International Linear Collider (ILC)
Status of Sirene Maarten de Jong. What?  Sirene is a program that simulates the detector response to muons and showers  It is based on the formalism.
Interaction with the Geant4 kernel
12th Geant4 Space Users Workshop
Interaction with the Geant4 kernel
User Documents and Examples I
Physics I: Physics Lists
An Introduction to Software Architecture
Higgs Factory Backgrounds
Background Simulations at Fermilab
Simulation in Experiments searching for rare events
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

Introduction 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 ’ realistic application level. A common environment for comparison tests between EGS4 and Geant4 especially in users ’ realistic application level. Geant4 has rich flexibility and expansibility for adding physics processes, in addition to its powerful geometry description. Geant4 has rich flexibility and expansibility for adding physics processes, in addition to its powerful geometry description. It is not easy to describe complicated/realistic geometry for EGS4 users. It is not easy to describe complicated/realistic geometry for EGS4 users. Taking advantage of the capabilities of Geant4 as a framework, we developed an interface for using EGS4 as a module of physics process in Geant4. Taking advantage of the capabilities of Geant4 as a framework, we developed an interface for using EGS4 as a module of physics process in Geant4.

Co-Workers Persons involved Persons involved K.Murakami (KEK, K.Murakami (KEK, K.Amako (KEK) K.Amako (KEK) H.Hirayama (KEK) H.Hirayama (KEK) Y.Namito (KEK) Y.Namito (KEK) T.Sasaki (KEK) T.Sasaki (KEK) M.Asai (SLAC) M.Asai (SLAC) T.Koi (SLAC) T.Koi (SLAC)

II. System Analysis

Analysis of EGS4 System - in terms of difference from Geant4- We first carried out analysis of the EGS4 system in terms of difference from Geant4. We first carried out analysis of the 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: A way of calculation of step size and process selection Issue-1: A way of calculation 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 of a particle. Then, which process will occur is chosen at the rate of branching fraction of a process. In EGS4, the next step size is calculated based on the total cross section of a particle. Then, which process will occur is chosen at the rate of branching fraction of a process. In principle, these work in the same manner. Good!! In principle, these work in the same manner. Good!! We implement the EGS physics processes as single Geant4 processes for electron/photon respectively. We implement the EGS physics processes as single Geant4 processes for electron/photon respectively.

Analysis of EGS4 System (Cont ’ d) Issue-2: Scheme of describing material information Issue-2: Scheme of describing material information In Geant4, In Geant4, Material information has only properties of material itself (atomic number/mass, density, composition...) Material information has only properties of material itself (atomic number/mass, density, composition...) Cross section tables are calculated at initialization time. Cross section tables are calculated at initialization time. In EGS4, In EGS4, Users have to prepare a material (cross section) file by executing PEGS, which is an external program, preceding to execution of a EGS4 program. Users have to prepare a material (cross section) file 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 as material. Additional information related to “ processes ” (cutoff, parameters/coefficients of formulas) are described as material. We manage material information in terms of both of Geant4 and EGS4. We manage material information in terms of both of Geant4 and EGS4. Users have to execute PEGS externally and our interface manages material information listed in a PEGS output file. Users have to execute PEGS externally and our interface manages material information listed in a PEGS output file. A mapping table between G4 materials and EGS4 materials is prepared. A mapping table between G4 materials and EGS4 materials is prepared. Issue-3: Cutoff scheme Issue-3: Cutoff scheme In Geant4, In Geant4, There is no cutoff energy. Particles basically will be transported until they have zero kinetic energy. There is no cutoff energy. Particles basically will be transported until they have zero kinetic energy. An idea of production cut is introduced to avoid infrared divergence. An idea of production cut is introduced to avoid infrared divergence. In EGS4, In EGS4, An idea of cutoff energy is applied. Particles below cutoff energy will be discarded. An idea of cutoff energy is applied. Particles below cutoff energy will be discarded. According to our policy, we don ’ t disturb the EGS4 treatments in order to obtain the same output as obtained by EGS4 itself. According to our policy, we don ’ t disturb the EGS4 treatments in order to obtain the same output as obtained by EGS4 itself. Each material has its own cutoff energy for electron/photon. Each material has its own cutoff energy for electron/photon.

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

III. Implementation

Functional Mapping Geant4 Class tracking manager stepping manager single process for electron single process for photon GPIL() (GetPhysicalInteractionLength) calculating the next interaction point DoIt() describing a reaction G4 geometry G4 transportation (as a process) reused as-is wrapped with FORTRAN-C++ interface EGS4 Flow  SHOWER  (tracking controller) ELECTOR  PHOTON (controller for stepping and process invocation) HOWFAR  (geometry and navigation, user code) each Physics Process  COMPT BREMS... EGS4 subroutines

How It Works 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 from G4 to EGS4. 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

Material Description G4Material EGS Material PEGS Material Geant4 World EGS4 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 related to a EGSMaterial by users at initialization time. A G4Material is related to a EGSMaterial by users at initialization time. A G4Material is translated to a EGSMaterial through the map at tracking time. A G4Material is translated to a EGSMaterial through the map at tracking time. G4-EGS Material Map

Process List Currently Covered 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 Electron processes Electron processes multiple scattering multiple scattering momentum flip only. momentum flip only. lateral displacement is not included. lateral displacement is not included. PRESTA is not included. PRESTA is not included. 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) As the first target, we started with interfacing with a plain EGS4 (distributed as a KEK version).

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 codes. Users don ’ t have to modify any existing Geant4 geometry codes. Users make assignment of a Geant4 material to a EGS4 material by hands. Users make assignment of a Geant4 material to a EGS4 material by hands. Cross Section Table: Cross Section Table: Users have to execute PEGS externally. Users have to execute PEGS externally. 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 / RedHat /...) Linux (SuSE / RedHat /...) gcc/g77 ver. 3.2 (2.95.2/3) gcc/g77 ver. 3.2 (2.95.2/3) Geant4 ver.5.0 (patch01) Geant4 ver.5.0 (patch01) EGS4 (distributed as a KEK version) EGS4 (distributed as a KEK version) 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 have plans of comparisons; We have plans of comparisons; between EGS4 itself and the EGS4-G4 interface. between EGS4 itself and the EGS4-G4 interface. between G4 and EGS4(w/ the interface) on common geometries. between G4 and EGS4(w/ the interface) on common geometries. Technical study for treating PRESTA is planned for more precise simulation. Technical study for treating PRESTA is planned for more precise simulation. The treatment of multiple scattering is closely coupled with geometry (boundary). The treatment of multiple scattering is closely coupled with geometry (boundary).

Summary We have successfully developed the first version of an interface between EGS4 and Geant4 based on OO-approach. We have successfully developed the first version of an interface between EGS4 and Geant4 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.