Alex Howard - Event Biasing Geant4 Users - Lisbon 2006 1 Event biasing and Variance Reduction - Geometrical Alex Howard, CERN Geant4 Users Workshop, Lisbon.

Slides:



Advertisements
Similar presentations
Lectures 6&7: Variance Reduction Techniques
Advertisements

Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Stefan Roesler SC-RP/CERN on behalf of the CERN-SLAC RP Collaboration
P HI T S Exercise ( II ) : How to stop , ,  -rays and neutrons? Multi-Purpose Particle and Heavy Ion Transport code System title1 Feb revised.
GAMOS tutorial Histogram and Scorers Exercises
Other GEANT4 capabilities Event biasing Parameterisation (fast simulation) Persistency Parallelisation and integration in a distributed computing environment.
Pedro Arce Point detector scoring 1 Point detector scoring in GEANT4 Pedro Arce, (CIEMAT) Miguel Embid (CIEMAT) Juan Ignacio Lagares (CIEMAT) Geant4 Event.
Implicit Capture Overview Jane Tinslay, SLAC March 2007.
Scoring I Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.2p01.
Shielding Studies using MARS Monte Carlo code Noriaki Nakao (SLAC) Jan. 6, 2005, WORKSHOP Machine-Detector Interface at ILC, SLAC.
Improvements of sampling and scoring ( User Requirements: Scoring for event biasing options) Tsukasa Aso, Toyama National College of Maritime Technology,
Adapted from G G Daquino, Geant4 Workshop, Catania, 5 Oct 2004 Event Biasing in G4: Why and what? Key User Requirements J. Apostolakis, CERN 19 March 2007.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Alex Howard - Event Biasing Mini-Workshop - SLAC Geometrical Event biasing and Variance Reduction – Talk 2 Alex Howard, CERN Event Biasing Mini-Workshop,
Highlights of latest developments ESA/ESTEC Makoto Asai (SLAC)
Geant4 Event Biasing Jane Tinslay, SLAC May 2007, Geant4 v8.2.p01.
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.
1 Work Plan/Summary I By 25 th May 2007… Class clean-up – biasing and scoring… What to remove? (for v9.0) –Biasing VScorer and associated classes (in transportation.
Leading Particle Biasing Overview Jane Tinslay, SLAC March 2007.
6 March 2006 G4NAMU Geant4 Developments J. Perl 1 SLAC - Redwood Room 6 March Geant4 North American Medical.
Makoto Asai (SLAC) Geant4 Tutorial Course
P HI T S Advanced Lecture (II): variance reduction techniques to improve efficiency of calculation Multi-Purpose Particle and Heavy Ion Transport code.
Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Event biasing – An Overview Alex Howard, CERN Event Biasing Overview.
Variance reduction A primer on simplest techniques.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
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.
Other GEANT4 capabilities Event biasing Parameterisation (fast simulation) Scoring Persistency Parallelisation and integration in a distributed computing.
Profiling study of Geant4-GATE VRTs discussion Nicolas Karakatsanis Alexander Howard Geant4 Users Workshop Medical/GATE Parallel Session 13 th September.
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.
A Short Course on Geant4 Simulation Toolkit How to learn more?
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,
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Alex Howard, ETH, Zurich 13 th September 2012, 17 th Collaboration Meeting, Chartres 1 Geometrical Event Biasing Facility Alex Howard ETH, Zurich Geometrical.
Bremsstrahlung Splitting Overview Jane Tinslay, SLAC March 2007.
CBM ECAL simulation status Prokudin Mikhail ITEP.
PIXEL Slow Simulation Xin Li 3/16/2008. CMOS Active Pixel Sensor (APS) Epitaxy is a kind of interface between a thin film and a substrate. The term epitaxy.
Profiling study of Geant4-GATE Discussion of suggested VRTs Nicolas Karakatsanis, George Loudos, Arion Chatziioannou Geant4-GATE technical meeting 12 th.
Neutron measurement with nuclear emulsion Mitsu KIMURA 27th Feb 2013.
Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 13 th September Event biasing and Variance Reduction Alex Howard, CERN Event Biasing.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
Geant4 Training 2003 A Short Course on Geant4 Simulation Toolkit How to learn more? The full set of lecture notes of this Geant4.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
A Short Course on Geant4 Simulation Toolkit Introduction
Alex Howard, ETHZ – Biasing Requirements – SLAC 21 st September Biasing Requirements and Interfaces Alex Howard ETH, Zurich Biasing Space User Requirements.
Interaction with the Geant4 kernel
Biasing and scoring
Validation of Geant4 against the TARC benchmark: Testing neutron production, transportation and interaction TARC – experimental set-up and aims Geant4.
J. Apostolakis, M. Asai, G. Cosmo, A. Howard
Other GEANT4 capabilities
variance reduction techniques to improve efficiency of calculation A
Status of Biasing Development
Interaction with the Geant4 kernel
A Short Course on Geant4 Simulation Toolkit How to learn more?
GAMOS tutorial Shielding Exercises
Summary of hadronic tests and benchmarks in ALICE
variance reduction techniques to improve efficiency of calculation B
Biasing and scoring
variance reduction techniques to improve efficiency of calculation B
(CMS GEANT4 simulation)
variance reduction techniques to improve efficiency of calculation A
Other GEANT4 capabilities
A Short Course on Geant4 Simulation Toolkit Introduction
A Short Course on Geant4 Simulation Toolkit How to learn more?
A Short Course on Geant4 Simulation Toolkit How to learn more?
Kernel Author: Makoto Asai.
Simulation in Experiments searching for rare events
release 5.0 – planned features
Presentation transcript:

Alex Howard - Event Biasing Geant4 Users - Lisbon Event biasing and Variance Reduction - Geometrical Alex Howard, CERN Geant4 Users Workshop, Lisbon 9 th October Overview 2.Importance sampling 3.Examples 4.Scoring 5.Future developments – parallel geometry 6.Summary

Alex Howard - Event Biasing Geant4 Users - Lisbon Geometric Biasing * Importance sampling technique * Weight window technique The purpose of geometry based event biasing is to save computing time by sampling less often the particle histories entering “less important” geometry regions, and more often in more “important” regions.

Alex Howard - Event Biasing Geant4 Users - Lisbon Importance sampling technique Importance sampling acts on particles crossing boundaries between “importance cells”. The action taken depends on the importance value assigned to the cell. In general, a track is either split or plays Russian roulette at the geometrical boundary depending on the importance value assigned to the cell. I=1I=2 Survival probability (P) is defined by the ratio of importance value. P = I post / I pre The track weight is changed to W/P. X Splitting a track ( P > 1 )  E.g. creating two particles with half the ‘ weight ’ if it moves into volume with double importance value. W=1 W=0.5 Russian-roulette (P < 1 ) in opposite direction  E.g. Kill particles according to the survival probability (1 - P). W=0.5 W=1 P = 0.5 P = 2

Alex Howard - Event Biasing Geant4 Users - Lisbon Geometrical importance biasing Define importance for each geometrical region Duplicate a track with half (or relative) weight if it goes toward more important region Russian-roulette in opposite direction Scoring particle flux with weights –at the surface of volumes I = 1.0I = 2.0 W=1.0 W=0.5 P = 0.5

5 Importance biasing Importance biasing Analogue simulation Importance biasing 10 MeV neutron in thick concrete cylinder

Alex Howard - Event Biasing Geant4 Users - Lisbon Examples/extended/biasing

Alex Howard - Event Biasing Geant4 Users - Lisbon Biasing example B01 Shows the importance sampling in the mass (tracking) geometry Option to show weight window 10 MeV neutron shielding by cylindrical thick concrete material Geometry –80 cm high concrete cylinder divided into 18 slabs –Importance values assigned to 18 concrete slabs in the DetectorConstruction for simplicity. –The G4Scorer is used for the checking result  Top level class uses the framework provided for scoring. Air ……….. 2 n

Alex Howard - Event Biasing Geant4 Users - Lisbon Flux multiplied by Kinetic energy of particle (MeV)

Alex Howard - Event Biasing Geant4 Users - Lisbon Example B02 B02 example for showing –importance sampling in a parallel geometry –a customized scoring making use of the scoring framework. –Mass geometry consists of a 180 cm high simple bulk concrete cylinder –A parallel geometry is created to hold importance values for slabs of width 10cm and for scoring.  Note: The parallel world volume must overlap the mass world volume  The radii of the slabs is larger than the radius of the concrete cylinder in the mass geometry.  The importance value is assigned to each ‘ G4GeometryCell ’ Pairs of G4GeometryCell and importance values are stored in the importance store, G4IStore. –The scoring uses the G4CellSCorer and one customized scorer for the last slab. –It can be built and run using the PI implementation of AIDA  For this see –At the end a histogram called “ b02.hbook" is created.

Alex Howard - Event Biasing Geant4 Users - Lisbon Example B03 Uses Geant4 importance sampling and scoring through python. It creates a simple histogram via AIDA and PI. It demonstrates how to use a customized scorer and importance sampling in combination with a scripting language, python. Geant4 code is executed from a python session. –Note: the swig package is used to create python shadow classes and to generate the code necessary to use the Geant4 libraries from a python session. Uses different python implementation to G4Py – now redundant?

Alex Howard - Event Biasing Geant4 Users - Lisbon TIARA – future implementation The advanced example of the TIARA experiment offers a nice benchmark for neutron physics – penetration of neutrons through concrete Benefits from importance sampling – how many neutrons penetrate through metres of concrete It is currently implemented using the “old” python interface For ease or use and maintainability this interface will be removed for the coming release(s)

Alex Howard - Event Biasing Geant4 Users - Lisbon SCORING examples/extended/runAndEvent/RE02

Alex Howard - Event Biasing Geant4 Users - Lisbon G4VPrimitiveScorer –G4VPrimitiveScorer is an abstract base class representing a class to be registered to G4MultiFunctionalDetector.  Geant4 provides concrete primitive scorer classes such as dose scoring, surface flux counting, etc. Of course, users can develop his/her own primitive scorer classes.  Primitive scorers are designed to score one kind of quantity and generates one hits collection per event. The name of hits collection is automatically assigned as /. The hits collection is maintained by G4HCofThisEvent object with a unique collection ID number which is assigned by G4SDManager. Each primitive scorer object must be instantiated with a unique name among primitive scorers registered in a G4MultiFunctionalDetector object. A primitive scorer object must not be shared by more than one G4MultiFunctionalDetector object. Otherwise, the results are mixed together.

Alex Howard - Event Biasing Geant4 Users - Lisbon List of concrete primitive scorer Concrete Primitive Scorers ( See Application Developers Guide ) –Track length  G4PSTrackLength, G4PSPassageTrackLength –Deposited energy  G4PSEnergyDepsit, G4PSDoseDeposit –Current/Flux  G4PSFlatSurfaceCurrent, G4PSSphereSurfaceCurrent,G4PSPassageCurrent, G4PSFlatSurfaceFlux, G4PSCellFlux, G4PSPassageCellFlux –Others  G4PSMinKinEAtGeneration, G4PSNofSecondary, G4PSNofStep angle V : Volume L : Total step length in the cell. SurfaceCurrent : Count number of injecting particles at defined surface. SurfaceFlux : Sum up 1/cos(angle) of injecting particles at defined surface CellFlux : Sum of L / V of injecting particles in the geometrical cell.

Alex Howard - Event Biasing Geant4 Users - Lisbon Future developments Parallel geometry and transportation will be enhanced in the coming releases of Geant4 The use of fields (electric and magnetic) will be permitted along with the ability to bias charge particles (currently only possible for neutral) Multiple scattering and field transportation will be handled correctly and coherently across parallel geometries Event biasing and variance reduction will be re-factored and a rigorous software process applied Development version should be released in December

Alex Howard - Event Biasing Geant4 Users - Lisbon Summary Geant4 offers the possibility to improve computing performance via fast simulation and biasing A number of biasing techniques are available Scoring is implemented with a degree of flexibility to reduce hits collection and persistency whilst offering convenience of keeping tallies of common qualities Refactoring and implementation of new parallel transportation is ongoing and should be in the December release