Monte Carlo simulations in Geant4 Ivan Sivacek. Outline Numerical modeling methods – Origins – Deterministic & Monte Carlo – Variance reduction Geant.

Slides:



Advertisements
Similar presentations
The best collimator configuration (material, number of collimators, collimator shape) is determined by minimizing the ratio R, where N ae is the number.
Advertisements

Mass Analyzer of SuperHeavy Atoms Some recent results 2012 Student Practice in JINR Fields of Research 9.oct.2012 I. Sivacekflerovlab.jinr.ru.
MONTE-CARLO TECHNIQUES APPLIED TO PROTON DOSIMETRY AND RADIATION SAFETY F. Guillaume, G. Rucka, J. Hérault, N. Iborra, P. Chauvel 1 XXXV European Cyclotron.
Using FLUKA to study Radiation Fields in ERL Components Jason E. Andrews, University of Washington Vaclav Kostroun, Mentor.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
1 M.G. Pia et al. The application of GEANT4 simulation code for brachytherapy treatment Maria Grazia Pia INFN Genova, Italy and CERN/IT
experimental platform
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Lecture 12 Monte Carlo Simulations Useful web sites:
Evaluation of G4 Releases in CMS (Sub-detector Studies) Software used Electrons in Tracker Photons in the Electromagnetic Calorimeter Pions in the Calorimeter.
Sergey Ananko Saint-Petersburg State University Department of Physics
Gamma calorimeter for R3B: first simulation results INDEX ● The calGamma Geant4 simulation ( a short introduction ) ● Crystal and geometry selection: –
R 3 B Gamma Calorimeter Agenda. ● Introduction ● Short presentation on the first ● Task definition for R&D period ( )
Monte Carlo and Statistical Methods in HEP Kajari Mazumdar Course on Particle Physics, TIFR, August, 2009.
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 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
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.
Implementing a dual readout calorimeter in SLIC and testing Geant4 Physics Hans Wenzel Fermilab Friday, 2 nd October 2009 ALCPG 2009.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Physics I: Physics Lists Geant4 Tutorial at Jefferson Lab 10 July 2012 Dennis Wright (SLAC) Geant4 9.6 beta.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007.
Monte Carlo /12/07. What is Geant ? Monte Carlo simulation tool for nuclear and particle physics Set up detectors –Sensitive detector which returns.
Detector Simulation Presentation # 3 Nafisa Tasneem CHEP,KNU  How to do HEP experiment  What is detector simulation?
Generating Primary Particles Each Geant4 Event starts with generation of one or multiple primary particles It is up to the user to define primary particle.
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
1 Calorimeter in G4MICE Berkeley 10 Feb 2005 Rikard Sandström Geneva University.
Monte Carlo methods in ADS experiments Study for state exam 2008 Mitja Majerle “Phasotron” and “Energy Plus Transmutation” setups (schematic drawings)
G4GeneralParticleSource Class: Developed by ESA as the space radiation environment is often quite complex in energy and angular distribution, and requires.
Detector Monte-Carlo ● Goal: Develop software tools to: – Model detector performance – Study background issues – Calculate event rates – Determine feasibility.
NA62 Gigatracker Working Group 28 July 2009 Massimiliano Fiorini CERN.
A proposal for a Proposal for a Simulation Framework in BTeV G. Cerati, E. Di Maio, S. Magni, D. Menasce.
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
V.Ivanchenko Salamanca1 Geant4: Electromagnetic Processes 1  Introduction  Interfaces  PhysicsList  Optical process.
26 Oct 2010PC Physics Requirements of Software from Chris R ~19 Oct. My.
Physics I: Physics Lists Puebla Geant4 Tutorial 15 June 2010 Dennis Wright Geant4 V9.3.p01.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
Seoul National University Han-wool Ju CUNPA Kick-off Meeting Aug.22-23, 2013.
Peter Križan, Ljubljana Dec 7, 2007 Mini WS, SLAC Peter Križan University of Ljubljana and J. Stefan Institute Simulations for SuperBelle SuperB computing.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Alex Howard, CERN Slide 1 Simulating Dark Matter Detectors (a.k.a. DMX Underground Advanced Example) 1.Dark Matter detectors 2.Implementation within Geant4.
A Short Course on Geant4 Simulation Toolkit Introduction
Alex Howard, Imperial College Slide 1 July 2 nd 2001 Underground Project UNDERGROUND PROJECT – Overview and Goals Alex Howard Imperial College, London.
Chapter 2 Radiation Interactions with Matter East China Institute of Technology School of Nuclear Engineering and Technology LIU Yi-Bao Wang Ling.
Workshop Geant4 Presentation September 14 th, 2007 FASTRAD V3.
by students Rozhkov G.V. Khalikov E.V. scientific adviser Iyudin A.F.
Background simulations: update and simulations of absorbed dose
INTERCOMPARISON P3. Dose distribution of a proton beam
variance reduction techniques to improve efficiency of calculation A
Systematic uncertainties in MonteCarlo simulations of the atmospheric muon flux in the 5-lines ANTARES detector VLVnT08 - Toulon April 2008 Annarita.
User Documents and Examples I
N. Stoffle University of Houston
Monte Carlo studies of the configuration of the charge identifier
Physics Processes Missing from our Current Simulation Tools
G.A.P.Cirrone, S.E.Mazzaglia - INFN/LNS, Italy
Physics I: Physics Lists
The Hadrontherapy Geant4 advanced example
Higgs Factory Backgrounds
A Short Course on Geant4 Simulation Toolkit Introduction
G4GeneralParticleSource Class:
Summary of dE/dx studies in silicon and MS in muon system
Microdosimetric Distributions for a Mini-TEPC due to Photon Radiation
GAMOS tutorial Plug-in’s Exercises
The Geant4 Hadrontherapy Advanced Example
Background Simulations at Fermilab
Simulation in Experiments searching for rare events
Presentation transcript:

Monte Carlo simulations in Geant4 Ivan Sivacek

Outline Numerical modeling methods – Origins – Deterministic & Monte Carlo – Variance reduction Geant 4 – a brief introduction “Pixel” program code used for simulations of MASHA focal silicon detector – Description of program classes and they work – How I made my simulations NOTE: Parts of lecturer’s presentations from “Cern-ISOLDE and SASc AUTUMN WORKSHOP ON GEANT 2011 in Casta-Papiernicka, Slovakia” are used.

MONTE CARLO A BIG GAME

Origin MCNP code for simulation of nuclear processes (diffusion of neutrons and fission, LANL) Idea of statistical sampling - end of 18 th century Stanislaw Ulam turn it into practical tool (on first computers, 1946) MCNPx (particles and heavy ions added) – runs on fortran Geant 4 runs on c++ Radiation shielding, nuclear medicine, space applications, accelerator experiments & many more…

Deterministic numerical modeling Time and position dependent set of differential equations and integrals How changes the characteristics of system on input values changes Computed for every time and position Limitations: – how accurately can equations approximate physical reality – discretization of steps

Monte Carlo numerical modeling Probable (average) behavior of whole system based on large number of trials at a game of chance Sequence of random numbers determines if something happens (probabilistically) (scatter, decay, absorption…) Ideal for transport particles, ions and rays trough matter Simulation of 10 5 – 10 8 events predicates behavior of – events

Variance reduction techniques Truncation (ignoring aspects of the problem that are irrelevant or inconsequential) Population control (sampling more important portions of the sampled population more often or less important portions less often) Probability modification (sampling from a fictitious but convenient distribution rather than the true distribution and weighting the results) Pseudodeterministic methods (replacing a portion of each random walk by deterministic or expected-value results)

GEANT 4 GEometry ANd Tracking toolkit

Geant4.cern.ch toolkit for simulating the passage of particles through matter comprehensive range of physics processes (electromagnetic, hadronic, optical) large set of long-lived particles, materials and elements with energies from 250 eV to ~TeV The toolkit has been created exploiting software engineering and object-oriented technology and implemented in the C++ (Linux, Windows, OSx)

GEANT 4 offers Most complicated and realistic geometries User choice of physics processes/models User choice of data collecting and visualization systems (outputs) Mandatory classes – DetectorConstruction, PhysicsList, PrimaryGeneratorAction Optional classes – RunAction, EventAction, StackingAction, TrackingAction, SteppingAction, DataCollection, Hits, Managers, Messengers… Очень много возможностей – как програма работает зависит строго от програмиcта

Terminology Step – the smallest unit of Geant4 simulation, a particle is transported from one point to another Trajectory and TrajectoryPoint – collection of steps and step points Process – the physics that happens along a step Track – a snapshot of a particle at some point along its path (not the same as trajectory) Event – a collection of info from tracks and particle trajectories Run – a collection of events

How does the program run main() method: – Sets the run manager (initialize mandatory + opt. classes and all components that will be used – visualization, data collelction, root..) – Sets input method – batch / (terminal-like) interactive mode / other user interface – Sets visualisation – Starts the session – Terminates session and closes program

MASHA FOCAL PLANE DETECTOR Pixel – the program for simulation of

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

PixelPhysicsList(); Sets cut values Construct particles Sets RadioactiveDecay process Choses EM physics list – LowEnergy – StandardEM – Penelope model – Livermore model – ICRU 79

PixelPhysicsList(); Sets cut values Sets cut values Construct particles Sets RadioactiveDecay process Choses EM physics list – LowEnergy – StandardEM – Penelope model – Livermore model – ICRU 79

Cut values

PixelPhysicsList(); Sets cut values Construct particles Construct particles Sets RadioactiveDecay process Choses EM physics list – LowEnergy – StandardEM – Penelope model – Livermore model – ICRU 79 calls GetParticleDefinition(); methods for all types of particles (generally used): Electron Positron Neutrino Antineutrino Alpha Generic Ion

PixelPhysicsList(); Sets cut values Construct particles Sets RadioactiveDecay process Sets RadioactiveDecay process Choses EM physics list – LowEnergy – StandardEM – Penelope model – Livermore model – ICRU 79 sets radioactive decay properties for all ions available and ordering of decay process* *process ordering will be explained with EM physics

PixelPhysicsList(); Sets cut values Construct particles Sets RadioactiveDecay process Choses EM physics list Choses EM physics list – LowEnergy – StandardEM – Penelope model – Livermore model – ICRU 79 removed with version 4.9.5

Electromagnetic Physics List ConstructParticle(); ConstructProcess();

Electromagnetic Physics List ConstructParticle(); ConstructParticle(); ConstructProcess(); Constructs particles used within this physics list - StandardEM: γ e -, e +, µ -, µ + π -, π +, κ -, κ + p -, p + 2 H, 3 H, 3 He, α, generic ion

Electromagnetic Physics List ConstructParticle(); ConstructProcess(); ConstructProcess(); Constructs processes for all particles registered and sets the process ordering

Electromagnetic Physics List ConstructParticle(); ConstructProcess(); ConstructProcess(); Constructs processes Constructs processes for all particles registered and sets the process ordering

Electromagnetic Physics List ConstructParticle(); ConstructProcess(); ConstructProcess(); process ordering Constructs processes for all particles registered and sets the process ordering

Process ordering

Electro-Magnetic Physics

Multiple Scattering models

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Detector Construction 192 focal strips 1,25 x 35 x 0,3 mm (MASHA FPD) 50 nm silicon layer in front of all strips Surrounding material – vacuum at Torr 0 ion beam

Geometry

Detail view <<< ion <<<

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction All data collecting is provided each step - in cooperation with stepping action !

Data Collection For all strip planes creates G4double fields for data storage (saves disk space) Scans all strip planes for deposited energy and writes it into field (each step) Finds strip with the biggest deposited energy and sends it into.root file Adds random shot from defined gauss spectrum (peak shape) Transfers data from field into.root file

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Visualization Manager Manages everything about visualization (if it is ordered by user) Adds colors to detector all parts and particle trajectories

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Run Action Adds time-mark to run Initializes data collection Gets number of events to be processed After each run (I use just 1 run) writes down (saves) all data files

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Event Action For each event: – Finds maximum deposited energy (data collection) – Randomizes energy (data collection) – Fills eventTree (.root file) Holds information how many events are already processed Sends information to VisManager

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Primary Generator Action Generates primary particles (primaries) with user-defined properties – class PrimaryGeneratorAction (transparent, user sees “what is inside” and “how it works”, but he need to code it) – GeneralParticleSource (“black box” which makes what you write, but you do not know how) – mostly used, handled by macro file (or terminal)

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Tracking Action Holds information about trajectories and properties of primary particles and secondaries (knows what is happening at the moment) Communicates with VisManager Communicates with SteppingAction

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Stepping Action Holds every necessary information about all particles each single step (basic element of MC) – Particle name, particle type – Atomic number, atomic mass – Volume – Total energy deposit – Pre- and post-step points For a given particle characteristic(s) scans all strips and ADDS total energy deposit (from step) into corresponding point in data field

Program “Pixel” - structure main(); PhysicsList DataCollection DetectorConstruction SessionStart (batch/interactive) RunAction VisManager EventAction PrimaryGeneratorAction TrackingAction SteppingAction

Session Orders stored in batch macro file Sets verbosities (how much to be displayed) Handles almost all visualization properties Sets GeneralParticleSource – Position – vertex, shape, type… – Angular and energy distribution – Types of particles to be shot Generally everything about particle source

Summary A SESSION consists of one or more RUNs During each RUN a number of particles are created Each particle inside a RUN represents an EVENT Each EVENT consists of small STEPs (Monte Carlo method is implemented here) Each STEP consists of PARTICLE characteristics, surrounding VOLUME characteristics and PHYSICAL PROCESSES in preStep, postStep or atRest particle states

HOW I MADE MY SIMULATIONS ? Let’s see

1 st alpha efficiency Alpha-particle source inside dead-layer in front of given strips, isotropic angular distribution Number of detector hits counted Number of escaping particles counted and compared

2 nd and 3 rd alpha decay Created user-defined decay chain and energies Events in alpha-peaks counted Repeated with recoils (systematic error ~ 5 % due to scatter = 0. keV energy deposit) Incoming 40 keV ion-beam and also implanted activity inside dead layer (isotropic, 1 eV)

Energy Calibration Source of alpha particles in real geometry, 50 nm dead layer nm TiO 2 layer Single energy per simulation ( 226 Ra decay chain) Energy spectra (peak positions) from all 352 strips simulated and given to Lubos

Peak tails Varying of DL thickness (one layer) Isotropic source of alpha particles inside DL + 40 keV ion beam Randomize energy (peaks shaping) Comparing with real data ( 202 Rn)

Recent simulation of DL measurement 50 nm DL, 863 nm of BoPET, 150 nm of TiO 2 Comparison of 1 eV 226 Ra inside titanium dioxide and isotropic point source of single alpha line GPS vertex in multiple positions representing various incident angles Simulation with infamous collimator

А тепер что делать ? Куда дальше ?