Geant4 New Features Joseph Perl (SLAC/SCCS) G4NAMU AAPM Minneapolis 22 July 2007.

Slides:



Advertisements
Similar presentations
The Geant4 Kernel: Status and Recent Developments John Apostolakis, Gabriele Cosmo – CERN / PH Makoto Asai – SLAC On behalf the Geant4 collaboration April.
Advertisements

Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
TUPEC057 Advances With Merlin – A Beam Tracking Code J. Molson, R.J. Barlow, H.L. Owen, A. Toader MERLIN is a.
Other GEANT4 capabilities Event biasing Parameterisation (fast simulation) Persistency Parallelisation and integration in a distributed computing environment.
Simulation Project Major achievements (past 6 months 2007)
Geant4 v9.2p02 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
10 January 2011 Geant4 Tutorial Introduction J. Perl 1 Geant4 Winter Course Tutorial Texas A&M University January 2011 A five day hands-on course.
14 June 2010 Geant4 Tutorial Introduction J. Perl 1 Geant4 Tutorial 2010 Puebla BUAP June 2010 A five day hands-on course based on Geant4 version.
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)
SLAC Geant4 Tutorial 2009 J. Perl
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
Geant4 updates Makoto Asai (SLAC/SCCS) G4NAMU Orlando Jul/30/2006.
6 March 2006 G4NAMU Geant4 Developments J. Perl 1 SLAC - Redwood Room 6 March Geant4 North American Medical.
CMS Full Simulation for Run-2 M. Hildrith, V. Ivanchenko, D. Lange CHEP'15 1.
Some tips for geometries of medical applications Makoto Asai (SLAC)
A Short Guide to Choosing Physics Lists Oak Ridge Geant4 Tutorial 11 March 2011 Dennis Wright Geant4 V9.4.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
Geant4 v9.5 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
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 Acceptance Suite for Key Observables CHEP06, T.I.F.R. Mumbai, February 2006 J. Apostolakis, I. MacLaren, J. Apostolakis, I. MacLaren, P. Mendez.
G EANT 4 : Release 9.2 Beta Gabriele Cosmo, CERN for the Geant4 Collaboration.
Geant4 v9.3p01 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
Recent Developments in Geant4 Calice Collaboration Meeting 10 March 2010 Dennis Wright (on behalf of the Geant4 hadronic working group)
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007.
Alex Howard, CERN – Performance Improvement – Hebden Bridge 14 th September Recommendations for improving application performance (… but not presentation.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
Atlas Simulation Activities What is Geant 4 Atlas Strategy.
1 Status and Plans for Geant4 Physics Linear Collider Simulation Workshop III 2-5 June 2004 Dennis Wright (SLAC)
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations Marek Gayer, John Apostolakis, Gabriele.
LHCb production experience with Geant4 LCG Applications Area Meeting October F.Ranjard/ CERN.
Release Validation J. Apostolakis, M. Asai, G. Cosmo, S. Incerti, V. Ivantchenko, D. Wright for Geant4 12 January 2009.
Geant4 v9.4 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
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.
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
Computing Performance Recommendations #10, #11, #12, #15, #16, #17.
Upgrade of G4Penelope models Luciano Pandola INFN – LNGS for the Geant4 EM Working Groups 15 th Geant4 Workshop, ESTEC, October 4 th -8 th, 2010.
Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina,
John Apostolakis & Makoto Asai for the Geant4 Collaboration 1(Draft) SNA-MC 2010.
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
A Summary of Physics Validations and Developments: Hadronic Dennis Wright Geant4 Collaboration Meeting Hebden Bridge, UK 13 September 2007.
A Short Guide to Choosing Physics Lists Puebla Geant4 Tutorial 18 June 2010 Dennis Wright Geant4 V9.3.p01.
G EANT and patch-01 highlights Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
Status of Hadronic Validation Dennis Wright 6 October 2010.
2011 Development Plan Makoto Asai (SLAC PPA/SCA) on behalf of the Geant4 Collaboration March 3 rd, Geant4 Technical Forum.
New approach of Geant4 Low Energy EM models (from version 9.3) Luciano Pandola INFN, Laboratori del Gran Sasso MaGe Joint Workshop, Munich, January 2010.
Makoto Asai.  Parallel layered mass geometry  Other minor improvement  G4Exception.
Gunter Folger / CERN MC-PAD, DESY/Hamburg Jan 2010
Interaction with the Geant4 kernel
Simulation Project Structure and tasks
Testbeams for Simulation
User Documents and Examples I
Testing Geant4 with a simplified calorimeter setup
A shortcut to the tracking
Other GEANT4 capabilities
Model Approach for Standard EM Physics
The Hadrontherapy Geant4 advanced example
Status of energy deposition studies IR7
Simulation Project Structure and tasks
Simulation Project Structure and tasks
Marc Verderi GEANT4 collaboration meeting 01/10/2002
Presentation transcript:

Geant4 New Features Joseph Perl (SLAC/SCCS) G4NAMU AAPM Minneapolis 22 July 2007

Geant4 New Features - Joseph Perl (SLAC/SCCS)2 Contents Why 8.3 right before 9.0? What was new in release 8.3 and 9.0 Current best practices for medical physics applications Highlights form recent Geant4 External Review Features to come in the next year Extra slides: –What was new in releases 8.0, 8.1, 8.2

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)3 Why 8.3 right before 9.0 Geant4 would not normally have two releases so close to one another –8.3 was released 4 May 20007, –9.0 was release 29 June 2007 Release 8.3 was a special case, driven by the need to fix one specific issue –the Hadronic shower shape –in time for the LHC experiments. These experiments did not want to have an other significant changes from the code they had already extensively tested, release 8.2. –Because they are a major provider of Geant4 funding, they get what they want.

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)4 New in Release 8.3 Revised Hadronic modeling, resulting in longer shower shapes: –the FTF model now has improved treatment of diffraction. –As a result the longitudinal shower component now starts later and ends later, which goes in the direction of the data. –The addition of quasi-elastic scattering (G4QuasiElasticChannel) to the QGS model is also expected to improve shower shapes by reducing the deep inelastic component.

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)5 New in Release 9.0 of interest to Medical Physics Kernel / Geometry –Parallel navigation, first implementation –Revision of biasing/scoring processes –Example RE02, Nested Parameterization

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)6 Parallel navigation In previous versions, we had several somewhat ad-hoc ways of overlaying a parallel world: –Ghost volume for shower parameterization assigned to G4GlobalFastSimulationManager –Readout geometry assigned to G4VSensitiveDetector –Importance field geometry for geometry importance biasing assigned to importance biasing process –Scoring geometry assigned to scoring process Release 9.0 merges all of these into a common parallel world scheme: –Readout geometry for sensitive detector will be kept for backward compatibility. –Other current “ parallel world schemes ” become obsolete.

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)7 Parallel navigation Occasionally, it is not straightforward to define sensitivity, importance or envelope to be assigned to volumes in the mass geometry. –Typically a geometry built machinery by CAD, GDML, DICOM, etc. has this difficulty. New parallel navigation functionality allows the user to define more than one world simultaneously. –New G4Transportation process sees all worlds simultaneously. –A step is limited not only by the boundary of the mass geometry but also by the boundaries of parallel geometries. –Materials, production thresholds and EM field are used only from the mass geometry. –In a parallel world, the user can define volumes in arbitrary manner with sensitivity, regions with shower parameterization, and/or importance field for biasing. Volumes in different worlds may overlap.

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)8 New exampleN07 Mass geometry –sandwich of rectangular absorbers and scintillators Parallel scoring geometry –Cylindrical layers

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)9 Current Best Practices for simulating DICOM-like 3D voxels with material parameterization These are the suggestions from Makoto Asai: –There is no silver bullet. You can try some/all of these options combined. Huge number of cells –If 3D parameterized volume with material parameterization is used, Huge memory size in case of 3D optimization –Instead use the new Nested Parameterization –Example in geant4/examples/RunAndEvent/RE02 Capability has been in Geant4 since release 8.1. Example was added at Release 8.2.

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)10 Material map –Though number of materials may be small, each voxel must at least have a pointer to a material, hence huge map of these pointers. –Split voxel geometry into reasonable number of regions, assign a dedicated stack to each region. For example 5*5*5 = 125 regions. –Load material map (from file on disk) only for one region. If a track reaches to the boundary of the region you are currently simulating, suspend the track. –Simulate all the tracks in one region. Once a region becomes empty, load material map for another region and simulate all tracks in that region. –Note that some tracks may come back to a region you have already simulated. Event biasing –In particular, geometrical importance biasing and secondary particle splitting. –You must validate results of your biasing options with full simulation. Shower parameterization –Instead of having a full EM shower, you may want to consider the shower parameterization in particular for the core part of the shower. Dedicated navigator –For a regular geometry, consider implementing a dedicated navigator that is specialized for regular pattern of voxels. –Geant4 will eventually provide such a navigator option ready-made (comments in a moment) Parallelization –Allocate good number of CPUs … More hints for large numbers of voxels

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)11 General Hints for Speeding Up Geant4 We are trying to improve the speed of Geant4 –But, since it is a general-purpose toolkit for which we give the user great control, it is possible for the user to make the simulation unnecessarily slow. For general applications –Check methods which are invoked frequently: UserSteppingAction() ProcessHits() ComputeTransformation() GetField() etc. –In such methods: avoid string manipulation, file access cout unnecessary object instantiation or deletion unnecessary massive polynomial calculations such as sin(), cos(), log(), exp().

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)12 General Hints for Speeding Up Geant4 For relatively complex geometry or high energy applications –Kill unnecessary secondary particles as soon as possible –Utilize G4Region for regional cut-offs, user limits –For geometry, consider replica rather than parameterized volume as much as possible. Also consider nested parameterization. –Do not keep too many trajectories. For relatively simple geometry or low energy applications –Do not store the random number engine status for each event.

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)13 External Review An external review of Geant4 was held at CERN this Spring

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)14 External Review - Executive Summary

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)15 What New Features can you Expect in Next Year (of interest to Medical Physics Users) Interactive commands to set up scorers –Beta by end of this year –Will be done by the run/event group Penelope Physics –Makoto is now starting work on an interface from Geant4 to the Penelope Fortran code so that Geant4 users can access Penelope physics straight from the Penelope release –Will be distributed from the Penelope web site Dedicated navigator for voxel geometry –Paganetti pioneered this a long time ago –Geant4 has been promising to offer this as a built-in part of the code –We are very aware that the wait for this has been too long Speed improvements –Fermilab group has recently joined the Geant4 collaboration –Specific part of their scope-of-work is to speed up the code software engineers, rather than physicists, taking a look at the code

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)16 Extra Slides What was new in releases 8.0, 8.1, 8.2

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)17 Geant general picture 1.New capabilities –EM (‘standard’) : new MSC model implementation –New design for particle definitions, no longer ‘static’ –Concrete scoring and filter classes –Geometry overlap check at construction 2. Improvements and fixes –to existing hadronic physics modeling & models –in physics process implementations 3.Migrations, updates –Support for CLHEP 2.0.X series –Keeping compatibility with 1.9.X series –Usage of replacing obsolete

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)18 Geant general picture 1.Adoption of a new Geant4 Software License 2.New capabilities –Updated particle definitions to match PDG-2005 –New ‘material scanner’ utility –New ‘tessellated’ solids for interface with CAD systems –ß-release of very low-energy processes in water 3.Numerous improvements in EM “standard” physics –Simulation of back-scattering improved –Tail of angular distribution now material dependent –Visible energy in sampling calorimeters less sensitive to production threshold 3.Fixes in hadronic physics and reviewed physics-lists –New combined elastic-scattering models –Extended use of Binary and Bertini cascade models

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)19 EM Physics New stepping algorithm for multiple- scattering process (since 8.0) –To improve behavior of low energy particles –Significantly reduced cut dependency –More precise visible energy in sampling calorimeters –Limits step size for particles –Extra CPU cost when using same value of production thresholds –Mechanism provided to deactivate step limitation Refinements to multiple scattering process (version 8.1) –Improved back-scattering –Improved scattering on very thin layers –Tail of angular distribution now material dependent –Even less sensitive to production thresholds in sampling calorimeters Reintroduced option to create secondaries below the cut near geometrical boundaries (sub-cutoff) Improved simulation of ionization for ions –Data from NIST databases used

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)20 Physics … more Synchrotron radiation (version 8.1) New process version released: new methods for angular distributions; enhanced to work with local fields and set polarization Transition radiation (version 8.1) New algorithm for XTR angular distribution Multiple scattering does not use table –Needed to ensure repeatability Refined PAI (Photon-Absorption-Ionisation) model Low energy EM (version 8.1) New models for photoelectric angular distribution ß-release of low energy processes in water down to eV scale (Geant4- DNA)

22 July 2007Geant4 New Features - Joseph Perl (SLAC/SCCS)21 More … Data sets –New data set for high precision neutron processes G4NDL 3.9 (release 8.1) –New data set for low-energy EM processes G4EMLOW 4.0 (release 8.1) Examples –New extended examples: TestEm0 - uses G4EmCalculator to print x-sections and stopping power TestEm16 - simulation of synchrotron radiation Hadr01 - simulation of proton/ion beam interaction in water Parameterization/gflash - usage of gflash for shower parameterization Persistency/P01 - object persistency through Reflex –New advanced examples: Microbeam - cellular irradiation beam line at CENBG facility, France Raredecay_calorimetry - photonuclear reactions for photon inefficiency Radiation_monitor - LHC radiation monitoring detectors –Many improvements and fixes …