Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007.

Slides:



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

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.
Hall D Photon Beam Simulation and Rates Part 1: photon beam line Part 2: tagger Richard Jones, University of Connecticut Hall D Beam Line and Tagger Review.
Using FLUKA to study Radiation Fields in ERL Components Jason E. Andrews, University of Washington Vaclav Kostroun, Mentor.
Implicit Capture Overview Jane Tinslay, SLAC March 2007.
Cross Section Biasing & Path Length Biasing Jane Tinslay, SLAC March 2007.
BLM review Mario Santana Leitner OUTLOOK ON FLUKA SIMULATIONS FOR UDULATOR DAMAGE AND BLM RESPONSE Mario Santana Leitner, Alberto.
© Copyright QinetiQ 2006 G4 C-S Biasing Based on the G4WrapperProcess Fan Lei Geant4 Biasing Mini Workshop, SLAC 21 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.
Bruce Faddegon, UCSF Inder Daftari, UCSF Joseph Perl, SLAC
Alex Howard - Event Biasing Mini-Workshop - SLAC Geometrical Event biasing and Variance Reduction – Talk 2 Alex Howard, CERN Event Biasing Mini-Workshop,
Lesson 8 Beta Decay. Beta -decay Beta decay is a term used to describe three types of decay in which a nuclear neutron (proton) changes into a nuclear.
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.
1 BaBar Collaboration Randall Sobie Institute for Particle Physics University of Victoria.
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.
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.
PLANETOCOSMICS L. Desorgher, M. Gurtner, E.O. Flückiger, and P. Nieminen Physikalisches Institut, University of Bern ESA/ESTEC.
Sergey Ananko Saint-Petersburg State University Department of Physics
Progress on generic biasing Marc Verderi LLR – Ecole polytechnique Geant4 Collaboration Meeting Seville September 2013.
Monte Carlo and Statistical Methods in HEP Kajari Mazumdar Course on Particle Physics, TIFR, August, 2009.
Other GEANT4 capabilities Event biasing Parameterisation (fast simulation) Scoring Persistency Parallelisation and integration in a distributed computing.
Geant4 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
Planned Geant4 developments for LLR Marc Verderi Laboratoire Leprince-Ringuet, École polytechnique Annecy ATF-2 meeting October 2006.
Accurate gamma-ray spectrometry of environmental samples: a challenge O. Sima - Bucharest University D. Arnold - PTB Braunschweig C. Dovlete - ERL Bucharest.
Profiling study of Geant4-GATE VRTs discussion Nicolas Karakatsanis Alexander Howard Geant4 Users Workshop Medical/GATE Parallel Session 13 th September.
Progress on generic biasing Marc Verderi LLR – Ecole polytechnique Geant4 Collaboration Meeting Seville September 2013.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
Alpha and Beta Interactions
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.
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.
Latifa Elouadrhiri Jefferson Lab Hall B 12 GeV Upgrade Drift Chamber Review Jefferson Lab March 6- 8, 2007 CLAS12 Drift Chambers Simulation and Event Reconstruction.
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.
Bartol Flux Calculation presented by Giles Barr, Oxford ICRR-Kashiwa December 2004.
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.
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.
Development of a Data-Based Fission Fragment Generator using the Geant4 Framework FISSION FRAGMENT GENERATOR Idaho State UniversityBrycen Wendt.
Physics II : processes Paris Geant4 Tutorial 5 June 2007 Marc Verderi Ecole Polytechnique - LLR.
Geant4 KISTI Tutorial Marc Verderi LLR – Ecole polytechnique October 2012 Event Biasing 01/11/2012 MARC VERDERI - LLR ECOLE POLYTECHNIQUE - GEANT4 KISTI.
Geant4 KISTI Tutorial Marc Verderi LLR – Ecole polytechnique October 2012 Physics II: Overview, Processes, Production Threshold.
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
Neutron and Photon Backscattering from the ILC Beam Dump
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
G4GeneralParticleSource Class:
Decay Process Makoto Asai (SLAC)
Lesson 4: Application to transport distributions
Presentation transcript:

Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007

Marc Verderi, LLR2 Outline Introduction Built in biasing options Primary particle biasing Radioactive decay biasing General hadronic leading particle biasing Hadronic cross section biasing Geometrical biasing Importance sampling Weight windows & weight cutoff User defined biasing G4WrapperProcess Uniform bremsstrahlung splitting example Recent developments Summary

Marc Verderi, LLR3 Introduction What is analogue simulation ? Sample using natural probability distribution, N(x) Predicts mean with correct fluctuations Can be inefficient for certain applications What is non-analogue/event biased simulation ? Cheat - apply artificial biasing probability distribution, B(x) in place of natural one, N(x) B(x) enhances production of whatever it is that is interesting To get meaningful results, must apply a weight correction Predicts same analogue mean with smaller variance Increases efficiency of the Monte Carlo Doesn’t predict correct fluctuations Should be used with care

Marc Verderi, LLR4 Bias with B(x 1 )/N(x 1 ) = w 1 w1w1 w1w1 w1w1 Bias with B(x 2 )/N(x 2 ) = w 2 w=w 1 w=w 1 w 2 w1w2w1w2 w1w2w1w2 w=w 1 w 2 *1/2 w=w 1 (a) (b) (c) E = w 1 E a +E b w 1 w 2 *1/2+E c w 1 w 2 *1/2

Marc Verderi, LLR5 Geant4 simulation: Analogue == regular processing Non-analogue/event biased simulation == manipulated processes and/or process list I.e, manipulate processing to effectively apply B(x) in place of N(x) Geant4 provides Several built-in general use biasing techniques Utility class, G4WrapperProcess to support user defined biasing Expect biasing to be used by experienced users Should understand what a particular biasing technique does, it’s constraints and side effects Understand how processing works in Geant4

Marc Verderi, LLR6 Built in Biasing Options Biasing TechniqueFirst Release Version Primary particle biasing3.0 Radioactive decay biasing3.0 Mars hadronic leading particle biasing (obsolete) 4.0 General hadronic lead particle biasing 4.3 Hadronic cross section biasing4.3 Geometrical Importance sampling5.0 Geometrical weight window and weight cutoff 5.2

Marc Verderi, LLR7 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

Marc Verderi, LLR8 Radioactive Decay Biasing G4RadioactiveDecay simulates decay of radioactive nuclei Implements the following biasing methods Increase sampling rate of radionuclides 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

Marc Verderi, LLR9 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 To activate, set SwitchLeadBiasOn environment variable

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

Marc Verderi, LLR11 Geometrical Biasing Geometry based biasing implemented within common framework in Geant4 Importance sampling Weight windows Weight cutoff Process based approach Process list is modified behind the scenes to apply biasing Applicable in mass or parallel geometries Define physical volumes named cells Ability to use parallel geometries to define importance sampling Currently in Beta stage, should be there in release 9.0

Marc Verderi, LLR12 Importance Cell Example Splitting IAIA I B = 2*I A w’ = w/2 w w’ = 2ww ww’ = 0 (killed) Russian Roulette

Marc Verderi, LLR13 Weight Window Weight based enhancement to importance sampling Particles either split or Russian Roulette played based on space-energy cells User defines a weight window for each space cell, and optionally for different energies Can help control weight fluctuations introduced by other variance reduction techniques

Marc Verderi, LLR14 Biasing Example B01 examples/extended/biasing/B01 Study punch through of 10 MeV neutrons incident upon thick concrete cylinder Demonstrates importance sampling & weight windows technique in mass geometry Geometry consists of an 80 cm high concrete cylinder divided into 18 slabs Importance value for slab n = 2 n

Marc Verderi, LLR15 Geometrical Biasing Documentation Detailed examples can be found at examples/advanced/Tiara examples/extended/biasing Documentation on all geometrical biasing techniques at es/ForApplicationDeveloper/html/ch03s07.html

Marc Verderi, LLR16 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 behavior of a process To use: Subclass G4WrapperProcess and override appropriate methods, e.g, PostStepDoIt Register subclass with process manager in place of existing process Register existing process with G4WrapperProcess

Marc Verderi, LLR17 G4WrapperProcess Structure

Marc Verderi, LLR18 Example: Uniform Bremsstrahlung Splitting In this example, only interesting in scoring bremsstrahlung photons Want to increase Monte Carlo efficiency by reducing computing time spent tracking electrons Example of biasing through enhancing production of secondaries

Marc Verderi, LLR19 Implementation 1)Create user class inheriting from G4WrapperProcess 2)Override PostStepDoIt method of G4WrapperProcess

Marc Verderi, LLR20 3)Implement overridden PostStepDoIt method 4)Register wrapped process with process manager

Marc Verderi, LLR21 Splitting factor = 100No splitting Scoring Geometry Uniform Bremsstrahlung Splitting

Marc Verderi, LLR22 Recent Developments

Marc Verderi, LLR23 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 Idea box for tomorrow: Any request/input about biasing functionalities ?

Marc Verderi, LLR24 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 Documentation at es/ForApplicationDeveloper/html/ch03s07.html