Alex Howard - Event Biasing Mini-Workshop - SLAC 2007 1 Geometrical Event biasing and Variance Reduction – Talk 2 Alex Howard, CERN Event Biasing Mini-Workshop,

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

Lectures 6&7: Variance Reduction Techniques
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.
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.
Improvements of sampling and scoring ( User Requirements: Scoring for event biasing options) Tsukasa Aso, Toyama National College of Maritime Technology,
Cross Section Biasing & Path Length Biasing Jane Tinslay, SLAC March 2007.
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.
Variance Reduction Techniques
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.
Interaction Forcing Overview Jane Tinslay, SLAC March 2007.
P HI T S Advanced Lecture (II): variance reduction techniques to improve efficiency of calculation Multi-Purpose Particle and Heavy Ion Transport code.
1 Stratified sampling This method involves reducing variance by forcing more order onto the random number stream used as input As the simplest example,
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.
CSC 8310 Programming Languages Meeting 2 September 2/3, 2014.
Fundamentals of Python: From First Programs Through Data Structures
Fundamentals of Python: First Programs
Progress on generic biasing Marc Verderi LLR – Ecole polytechnique Geant4 Collaboration Meeting Seville September 2013.
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.
Planned Geant4 developments for LLR Marc Verderi Laboratoire Leprince-Ringuet, École polytechnique Annecy ATF-2 meeting October 2006.
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.
Progress on generic biasing Marc Verderi LLR – Ecole polytechnique Geant4 Collaboration Meeting Seville September 2013.
1 Everyday Statistics in Monte Carlo Shielding Calculations  One Key Statistics: ERROR, and why it can’t tell the whole story  Biased Sampling vs. Random.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
Monaco/MAVRIC: Computational Resources for Radiation Protection and Shielding in SCALE Douglas E. Peplow, Stephen M. Bowman, James E. Horwedel, and John.
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Alex Howard - Event Biasing Geant4 Users - Lisbon Event biasing and Variance Reduction - Geometrical Alex Howard, CERN Geant4 Users Workshop, Lisbon.
Lesson 4: Computer method overview
Monday June 3rd 2002 AIDA 2.2 WorkshopAlex Howard Imperial College London Slide 1 Implementation of AIDA within Geant4 for Underground and Space Applications.
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.
Bremsstrahlung Splitting Overview Jane Tinslay, SLAC March 2007.
Coevolutionary Automated Software Correction Josh Wilkerson PhD Candidate in Computer Science Missouri S&T.
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
Profiling study of Geant4-GATE Discussion of suggested VRTs Nicolas Karakatsanis, George Loudos, Arion Chatziioannou Geant4-GATE technical meeting 12 th.
Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina,
Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 13 th September Event biasing and Variance Reduction Alex Howard, CERN Event Biasing.
Progress Report on GEANT Study of Containerized Detectors R. Ray 7/11/03 What’s New Since Last Time?  More detailed container description in GEANT o Slightly.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
Capacitance Chapter 25. Capacitance A capacitor consists of two isolated conductors (the plates) with charges +q and -q. Its capacitance C is defined.
Extrapolation Techniques  Four different techniques have been used to extrapolate near detector data to the far detector to predict the neutrino energy.
SAS ® Global Forum 2014 March Washington, DC.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Geant4 KISTI Tutorial Marc Verderi LLR – Ecole polytechnique October 2012 Event Biasing 01/11/2012 MARC VERDERI - LLR ECOLE POLYTECHNIQUE - GEANT4 KISTI.
L Berkley Davis Copyright 2009 MER301: Engineering Reliability Lecture 8 1 MER301: Engineering Reliability LECTURE 8: Chapter 4: Statistical Inference,
Alex Howard, ETHZ – Biasing Requirements – SLAC 21 st September Biasing Requirements and Interfaces Alex Howard ETH, Zurich Biasing Space User Requirements.
Biasing and scoring
Status of Biasing: - Generic Biasing & - Reverse Monte Carlo
Chapter 18 Automatic Account Assignment
Other GEANT4 capabilities
variance reduction techniques to improve efficiency of calculation A
Status of Biasing Development
variance reduction techniques to improve efficiency of calculation B
Biasing and scoring
variance reduction techniques to improve efficiency of calculation B
variance reduction techniques to improve efficiency of calculation A
Geometry checking tools
Other GEANT4 capabilities
Microdosimetric Distributions for a Mini-TEPC due to Photon Radiation
Lesson 4: Application to transport distributions
Presentation transcript:

Alex Howard - Event Biasing Mini-Workshop - SLAC Geometrical Event biasing and Variance Reduction – Talk 2 Alex Howard, CERN Event Biasing Mini-Workshop, SLAC 19 th March Geometrical Event Biasing – Overview 2.Importance Sampling 3.Weight Window and Energy biasing 4.Examples 5.Parallel Navigation 6.Scoring – within biasing context 7.Scoring – (In(ter))-Dependency? 8.Summary

Alex Howard - Event Biasing Mini-Workshop - SLAC 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 Mini-Workshop - SLAC 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 Mini-Workshop - SLAC The Weight Window Technique The weight window technique is a weight-based algorithm – generally used together with other techniques as an alternative to importance sampling: –It applies splitting and Russian roulette depending on space (cells) and energy –User defines weight windows in contrast to defining importance values as in importance sampling A weight window may be specified for every cell and for several energy regions: space-energy cell. Apply in combination with other techniques such as cross-section biasing, leading particle and implicit capture, or combinations of these. Apply in combination with other techniques such as cross-section biasing, leading particle and implicit capture, or combinations of these. Upper Energy Lower weight E Lower Weight D C B A Upper Energy Lower weight Survival weight Upper weight Kill/Survive Split

Alex Howard - Event Biasing Mini-Workshop - SLAC The weight window technique (continue) Checks the particle weight –Compare the particle weight with a ‘ window ’ of weights defined for the current energy-space cell –Play splitting or roulette in case if it is outside, resulting in 0 or more particles ‘ inside ’ the window  E.g. WL is a lower weight bound of a cell. CU and CS are upper limit factor and survival factor, respectively. W > WL*CU Split track W < WL*WL Roulette WL WL*CS WL*CU P = W / (WL*CS)

Alex Howard - Event Biasing Mini-Workshop - SLAC Weight window – improved variance reduction An MCNP author recently (last November) pointed out that Splitting to the Survival Weight introduces a variance itself A better solution is to split to the minimum integer that puts the weight into the window, e.g.: –Let the lower bound be 1, survival weight 3, upper bound 5 –Suppose particle has weight 7 –Splitting by the minimum integer gives 2 particles with w=3.5 –Splitting by survival weight gives sometimes 2 particles of w=3 and sometimes 3 particles of w=3  so sometimes total split weight is 2x3 and sometimes 3x3

Alex Howard - Event Biasing Mini-Workshop - SLAC Which classes? G4VSampler (G4MassGeometrySampler, G4ParallelGeometrySampler) –configurator of the biasing in terms of the user-defined geometry G4GeometryCell –only simple replicas and no consideration of the hierarchical positions of physical volumes in the geometry tree G4VIStore –for the creation of the importance store G4VImportanceAlgorithm –for customizing the importance algorithms G4VScorer –for the definition of the information to be scored

Alex Howard - Event Biasing Mini-Workshop - SLAC Examples Extended/Biasing contains 3 examples of biasing –B01 –B02 –B03 (really just a python implementation of B02)  Now redundant? –TIARA (again pythonized)

Alex Howard - Event Biasing Mini-Workshop - SLAC 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 Mini-Workshop - SLAC Flux multiplied by Kinetic energy of particle (MeV)

Alex Howard - Event Biasing Mini-Workshop - SLAC Example B02 Shows importance sampling in a parallel geometry Includes 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 The scoring uses the G4CellSCorer and one customized scorer for the last slab

Alex Howard - Event Biasing Mini-Workshop - SLAC Example B03 Uses Geant4 importance sampling and scoring through python. 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

Alex Howard - Event Biasing Mini-Workshop - SLAC Limitations of "parallel" geometries Current scenario has the following limitations: –The world volume of the parallel geometry must overlap the world volume of the mass geometry (i.e. be larger) – still reports of a bug in this… –Particles crossing a boundary in the parallel geometry where there is vacuum in the mass geometry are also biased. This may be optimized in later versions (not done). –Mass and parallel geometry boundaries should not be coincident in the current implementation (to be verified). –Charged particles and fields not handled –Scoring strongly coupled to biasing geometry – requirement?

Alex Howard - Event Biasing Mini-Workshop - SLAC Coupled Transportation Since release 8.2 coupled transportation has been included This is a generic form of parallel navigation Geometrical biasing was migrated/copied to this formalism –No longer duplicate mass and parallel classes/samplers –Switch between mass and parallel world is through transportation assignation –Examples also migrated  B01  processes/scoring/test/B01_para  B02  processes/scoring/test/B02_para  Output seems statistically equivalent although different random numbers Examples also run for charged particles What happens a boundary and Use Cases needs handling properly/verifying

Alex Howard - Event Biasing Mini-Workshop - SLAC Biasing and Scoring Currently in Geant4 we have two scoring implementations – one attached to biasing What happens at a boundary? –If flux is measured at a biased boundary then the splitting and killing has to be handled properly –Who limits the step? Pre-defined hierarchy?  In current implementation biasing limits the step, scoring applied secondarily  For new parallel navigation biasing is applied as an AlongStepDoIt – necessary? Sensitive Detectors attached to parallel world – is it foreseen/possible? Inter-dependence – scoring has to come after biasing (e.g. if Splitting or Russian Roulette has occurred) Abstract scoring interface?

Alex Howard - Event Biasing Mini-Workshop - SLAC Existing implementation of Scoring within biasing context Optional capability –Scorer may be used with the Sampler using PrepareScorer(G4Vscorer*).  G4Scorer is provided as a concrete scoring class.  A "scorer" class derives from the interface G4VScorer. Users may create customized "scorers “. See exampleB02 for detail. Checking importance sampling –A default implementation is provided through G4Scorer, which provides following parameters:  Importance  Tracks entering: Number of tracks entering the cell  Population: Number of tracks including produced in the cell  Collisions: Number of steps limited by physics process in the cell  Coll*WGT: Weighted sum of collisions  NumWGTedE: Number weighted energy  FluxWGTedE: Flux weighted energy  Av. Track WGT: Average track weight

Alex Howard - Event Biasing Mini-Workshop - SLAC Future Developments? Other forms of geometrical biasing Point tallies? Particles directed to a point? Modified sampling methods? (exponential transform, implicit capture, forced collisions, source biasing): to sample from any arbitrary distribution rather than the physical probability as long as the particle weights are then adjusted to compensate Others?

Alex Howard - Event Biasing Mini-Workshop - SLAC Summary Two main geometrical importance biasing techniques are implemented within Geant4 Extension to charged particles and fields is possible within the context of Coupled Transportation Examples provided of functionality within the extended and advanced example categories Need an example to test physicality… Scoring has a strong link to geometrical biasing Needs work to be decoupled/interfaced and allow on Scoring implementation in Geant4

Alex Howard - Event Biasing Mini-Workshop - SLAC Spare slides