Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September 2007 1 Event biasing – An Overview Alex Howard, CERN Event Biasing Overview.

Slides:



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

Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
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.
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.
Interaction Forcing Overview Jane Tinslay, SLAC March 2007.
Leading Particle Biasing 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,
1 Geant4 Physics Based Event Biasing Jane Tinslay, SLAC March 2007, Geant4 v8.2p01.
Variance reduction A primer on simplest techniques.
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.
Monte Carlo Comparison of RPCs and Liquid Scintillator R. Ray 5/14/04  RPCs with 1-dimensional readout (generated by RR) and liquid scintillator with.
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.
Radiation Shielding and Reactor Criticality Fall 2012 By Yaohang Li, Ph.D.
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”
Hadronic Interaction Studies for LHCb Nigel Watson/Birmingham [Thanks to Silvia M., Jeroen v T.]
1 Status and Plans for Geant4 Physics Linear Collider Simulation Workshop III 2-5 June 2004 Dennis Wright (SLAC)
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.
Hadronic Physics II Geant4 Users’ Tutorial CERN February 2010 Gunter Folger.
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
Spacecraft Environment & Protection Group GEANT4 Workshop, Noordwijk, Sep 1999 Radioactive Decay Process and Data P Truscott and F Lei Space Department.
G4GeneralParticleSource Class: Developed by ESA as the space radiation environment is often quite complex in energy and angular distribution, and requires.
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.
Determination of activity of 51 Cr source on gamma radiation measurements V.V.Gorbachev, V.N.Gavrin, T.V.Ibragimova, A.V.Kalikhov, Yu.M.Malyshkin,A.A.Shikhin.
Parallel session 8B summary Event Biasing Marc Verderi LLR, Ecole polytechnique Friday 14 th September Chartres.
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.
Measurement of the Charge Ratio of Cosmic Muons using CMS Data M. Aldaya, P. García-Abia (CIEMAT-Madrid) On behalf of the CMS Collaboration Sector 10 Sector.
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.
Development of a Data-Based Fission Fragment Generator using the Geant4 Framework FISSION FRAGMENT GENERATOR Idaho State UniversityBrycen Wendt.
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.
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
Other GEANT4 capabilities
variance reduction techniques to improve efficiency of calculation A
Status of Biasing Development
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
variance reduction techniques to improve efficiency of calculation A
Other GEANT4 capabilities
Participants AH - Alex Howard TA - Tsukasa Aso MA - Makoto Asai
G4GeneralParticleSource Class:
Status of energy deposition studies IR7
Lesson 4: Application to transport distributions
Presentation transcript:

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Event biasing – An Overview Alex Howard, CERN Event Biasing Overview GATE meeting, Hebden Bridge 12 th September Geometrical Event Biasing – Overview 2.Importance Sampling 3.Weight Window and Energy biasing 4.Examples 5.Parallel Navigation 6.Physics Based Biasing 7.Scoring 8.Summary

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September Examples Extended/Biasing contains 2 examples of biasing –B01 (one geometry biasing) –B02 (biasing in the parallel world)  Both looking at 10MeV neutrons travelling through concrete shielding

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September Analogue SimulationImportance Sampled 1 2n2n Example B MeV neutrons, thick concrete cylinder

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Flux multiplied by Kinetic energy of particle (MeV)

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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 – release 9.0 Examples also run for charged particles (and should handle magnetic fields)

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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, CERN - Event Biasing Overview – Hebden Bridge 12 th September 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 Other use cases, developments required?

14 Physics Based Biasing Built in biasing options Primary particle biasing Radioactive decay biasing General hadronic leading particle biasing Hadronic cross section biasing User defined biasing G4WrapperProcess See release documentation for detailed instructions on how to implement the various biasing techniques

15 Built in Biasing Options Biasing TechniqueSince Release Primary particle biasing3.0 Radioactive decay biasing3.0 General hadronic lead particle biasing4.3 Hadronic cross section biasing4.3 Geometrical Importance sampling5.0 Geometrical weight window and weight cutoff 5.2

16 Primary Particle Biasing Use case: Increase number of high energy particles in cosmic ray spectrum Increase number of primary particles generated in a particular phase space region of interest Weight of primary particle modified as appropriate General implementation provided by G4GeneralParticleSource class Bias position, angular and energy distributions

17 Online documentation & examples Geant4 examples: examples/extended/eventgenerator/exgps

18 Radioactive Decay Biasing G4RadioactiveDecay simulates decay of radioactive nuclei Implements the following biasing methods Increase sampling rate of radioculides within observation times User defined probability distribution function Nuclear splitting Parent nuclide is split into user defined number of nuclides Branching ratio biasing For a particular decay mode, sample branching ratios with equal probability

19 Online documentation & examples Geant4 examples: examples/extended/radioactivedecay/exrdm

20 General Hadronic Leading Particle Biasing Built in utility for hadronic processes Implemented in G4HadLeadBias class Keep only the most important part of the event, and representative tracks of given particle types Keep track with highest energy I.e, the leading particle Of the remaining tracks, select one from each of the following types if they exist: Baryon’s,  0 ’s, mesons, leptons Apply appropriate weight

21 Hadronic Cross Section Biasing Built in cross section biasing in hadronics for PhotoInelastic, ElectronNuclear and PositronNuclear processes Artificially enchance/reduce cross section of a process Useful for studying Thin layer interactions Thick layer shielding

22 User Defined Biasing: G4WrapperProcess Implement user defined biasing through G4WrapperProcess A process itself, I.e, inherits from G4VProcess Wraps an existing process By default, function calls are forwarded to existing process Non-invasive way to manipulate the behaviour of a process To use: Subclass G4WrapperProcess and override appropriate methods, e.g, PostStepDoIt Register sublcass with process manager in place of existing process Register existing process with G4WrapperProcess

23 G4WrapperProcess Structure

24 Splitting factor = 100No splitting Scoring Geometry Uniform Bremsstrahlung Splitting

25 Recent Developments

26 Workshop Brief Summary & Work Plan Detailed summary and work plan at Geometrical biasing Updated to use parallel navigation developments With release v9.0 should be able to do full geometrical biasing in parallel worlds At the moment limited to neutrals Biasing examples to be updated Producing validation examples Scoring for biasing Use in place of depreciated G4VScorer used in geometrical biasing Development of new scorers

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Scoring/Tallies – brief overview

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Summary Number of popular event biasing techniques built into Geant4 User defined biasing supported through G4WrapperProcess Ongoing developments aim to improve exiting Geant4 biasing, and provide new event biasing and scoring methods Geometrical based biasing is now extended to charged particles and magnetic fields (by default since release 9.0 for parallel geometries) Physics based biasing offers significant improvement in cases where full sampling is unnecessary Scoring is very flexible within Geant4 and offers extension Further requirements? Documentation at:

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Spare slides

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September New Biasing Scheme (default since v9.0) Parallel geometry now must inherit from G4VUserParallelWorld Parallel and mass sampler classes now combined into one G4GeometrySampler class: e.g.: mgs(detector->GetWorldVolume(),"neutron"); An additional set method defines whether or not the sampler is in a parallel geometry: mgs.SetParallel(false); When a parallel world is created, parallel navigation must be activated. An application with physics list that uses the AddTransportation method will automatically use G4CoupledTransportation which is picked up by the creation of the parallel world copy. All scoring can be implemented only through the Primitive Scorer classes. Users utilising the older scoring classes will need to migrate to using Primitive Scorers. The same functionality is provided apart from G4ScoreTable. Scorers are now attached to logical volumes (in place of geometry cells). This requires explicit copy numbers to be utilised for the same logical volume and the GeometryCell methods should be accessed through the physical volume and replica number method. A demonstration of the new biasing and scoring is available in examples/extended/biasing/B01 and B02.

Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Physics biasing –Existing physics based biasing fragmented –Identify missing biasing methods & variations between methods in other Monte Carlo codes  Implicit capture  General cross section biasing  Interaction forcing  Path length biasing  Advanced bremsstrahlung splitting  Leading particle biasing –Look at developing dedicated framework to provide general physics biasing in analogy with geometrical biasing  Manipulating physics processes/lists