Other GEANT4 capabilities



Similar documents
Geometrical importance sampling in Geant4: from design to verification

GLAST Geant4 Simulation

Biasing. 7 th FLUKA Course NEA Paris, Sept.29-Oct.3, 2008

CHAPTER 9: IMPORTANCE SAMPLING IN MCNP

VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS

Self-adjusting Importances for the Acceleration of MCBEND

Introduction to the Monte Carlo method

Variance reduction techniques used in BEAMnrc

Appendix A. An Overview of Monte Carlo N-Particle Software

Chapter 4 Variance Reduction Techniques

The Pennsylvania State University. The Graduate School. College of Engineering MONTE CARLO TRANSPORT CALCULATIONS AND ANALYSIS

Bremsstrahlung Splitting Overview

Geant4 Visualization. Andrea Dotti April 19th, 2015 Geant4 M&C+SNA+MC 2015

Cross section, Flux, Luminosity, Scattering Rates

Calorimetry in particle physics experiments

Simulation of Neutron Backgrounds from the ILC Extraction Line Beam Dump. Siva Darbha. Office of Science, SULI Program. University of Toronto

Proton tracking for medical imaging and dosimetry

GRADES 7, 8, AND 9 BIG IDEAS

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

Monte Carlo Simulations in Proton Dosimetry with Geant4

CMS Tracking Performance Results from early LHC Running

Detector-related. related software development in the HEPP project. Are Strandlie Gjøvik University College and University of Oslo

ATLAS Test Beam Analysis in Stockholm: An Overview

Supported platforms & compilers Required software Where to download the packages Geant4 toolkit installation (release 9.6)

Monte Carlo Sampling Methods

Comparisons between 2003 CMS ECAL TB data and a Geant 4 MC

90 degrees Bremsstrahlung Source Term Produced in Thick Targets by 50 MeV to 10 GeV Electrons

CONCEPT-II. Overview of demo examples

Volume I: Overview and Theory. X-5 Monte Carlo Team. April 24, 2003 (Revised 10/3/05)

Chapter 8. Low energy ion scattering study of Fe 4 N on Cu(100)

Monte Carlo Simulations: Efficiency Improvement Techniques and Statistical Considerations

JCAT Project: Monte Carlo Internal Charging Tool(MCICT) status report. Fan Lei (RadMod) & David Rodgers (ESA)

CLAS12 Offline Software Tools. G.Gavalian (Jlab)

Variance Reduction Techniques for the Monte Carlo Simulation of Neutron Noise Measurements

Use of ROOT in Geant4

Manual for simulation of EB processing. Software ModeRTL

A Priori Efficiency Calculations For Monte Carlo Applications In Neutron Transport Andreas J. van Wijk. Supervisor: dr. ir. J.

Grid Computing for Artificial Intelligence

MASS DEFECT AND BINDING ENERGY

Jet Reconstruction in CMS using Charged Tracks only

Drawing a histogram using Excel

Jets energy calibration in ATLAS

Express Introductory Training in ANSYS Fluent Lecture 1 Introduction to the CFD Methodology

Space Users: Status, Requirements and Open Issues

Implementing the combing method in the dynamic Monte Carlo. Fedde Kuilman PNR_131_2012_008

6 Scalar, Stochastic, Discrete Dynamic Systems

Introduction to ANSYS

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials.

Quantitative Methods for Finance

PHOTON mapping is a practical approach for computing global illumination within complex

Atomic and Nuclear Physics Laboratory (Physics 4780)

Solar Energy Forecasting Using Numerical Weather Prediction (NWP) Models. Patrick Mathiesen, Sanyo Fellow, UCSD Jan Kleissl, UCSD

High Energy Physics. Lecture 4 More kinematics and a picture show of particle collisions

Running the Software

Multi-Block Gridding Technique for FLOW-3D Flow Science, Inc. July 2004

CAD and Creativity. Contents

The accurate calibration of all detectors is crucial for the subsequent data

Tutorial: 3D Pipe Junction Using Hexa Meshing

Overview of EVE - the Event Visualization Environment of ROOT

Electron-Muon Ranger (EMR)

HPC Deployment of OpenFOAM in an Industrial Setting

The Three Heat Transfer Modes in Reflow Soldering

2. Parallel pump system Q(pump) = 300 gpm, h p = 270 ft for each of the two pumps

IBM SPSS Direct Marketing 23

Theory versus Experiment. Prof. Jorgen D Hondt Vrije Universiteit Brussel jodhondt@vub.ac.be

IBM SPSS Direct Marketing 22

The LHCb Software and Computing NSS/IEEE workshop Ph. Charpentier, CERN

THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA

CATIA V5 Surface Design

How To Improve Efficiency In Ray Tracing

MCRT: L6. Initial weight of packet: W = L / N MC At each interaction multiply weight by probability of scattering: W = a W

Alphacam Art combines Vectric s Aspire artistic design software with the market leading Alphacam manufacturing software.

OmniFunds. About OmniFunds. About Alpha 2.0: About VisualTrader 11 Pro. Alpha Released September 24, 2015

Event viewer for HRS-L

Arrangements And Duality

A Guide to Detectors Particle Physics Masterclass. M. van Dijk

Performance Monitoring of the Software Frameworks for LHC Experiments

Multiphase Flow - Appendices

Top rediscovery at ATLAS and CMS

Visualization of Output Data from Particle Transport Codes

GAUDI - A Software Architecture and Framework for building HEP Data Processing Applications

Mars Atmosphere and Volatile EvolutioN (MAVEN) Mission

Chapter 10. Bidirectional Path Tracing

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Measurement of the Mass of the Top Quark in the l+ Jets Channel Using the Matrix Element Method

Particle Physics. Bryan Webber University of Cambridge. IMPRS, Munich November 2007

CLEO III Data Storage

Use of OpenFoam in a CFD analysis of a finger type slug catcher. Dynaflow Conference 2011 January , Rotterdam, the Netherlands

Event display for the International Linear Collider Summer student report

Jorge E. Fernández Laboratory of Montecuccolino (DIENCA), Alma Mater Studiorum University of Bologna, via dei Colli, 16, Bologna, Italy

Activitity (of a radioisotope): The number of nuclei in a sample undergoing radioactive decay in each second. It is commonly expressed in curies

07 - Cherenkov and transition radiation detectors

GAME SYSTEM MANUAL PITTSBURGH MODULAR SYNTHESIZERS

Solved with COMSOL Multiphysics 4.3

Robotic motion planning for 8- DOF motion stage

Advanced variance reduction techniques applied to Monte Carlo simulation of linacs

PoS(Kruger 2010)013. Setting of the ATLAS Jet Energy Scale. Michele Petteni Simon Fraser University

Transmission Line and Back Loaded Horn Physics

CHAPTER 1. Introduction to CAD/CAM/CAE Systems

Transcription:

Other GEANT4 capabilities Event biasing Parameterisation (fast simulation) Persistency Parallelisation and integration in a distributed computing environment

Outline! Event biasing! Parameterization (fast simulation)! Persistency! Parallelization! Conclusions

Biasing: introduction! Analog simulation: the possible outcomes of measurements to the estimator of an observable occur with the same frequencies as they do in nature! Biased simulation: important contributions to the estimator are sampled more often than the less important ones! The variance reduction techniques (VRT) aim to reduce the computing time, being constant the mean value of an estimator and reducing its variance

! Four classes of VRT:! truncation methods (energy and time cutoff): like a Russian roulette game with zero survival probability! population control methods (geometry splitting and Russian roulette, energy splitting/roulette, weight cutoff, weight window): many samples of low weight are tracked in important regions, while few samples of high weight in unimportant regions

! 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! Partially deterministic methods (next event estimators, controlling the random number sequence): to control the normal random walk process through deterministic-like sequence

Event biasing in Geant4! Event biasing technique is one of the most important requirements, which Geant4 collaboration is aware of.! This feature could be utilized by many application fields such as:! radiation shielding! dosimetry! Geant4 is a toolkit and all source code is open " the user can implement his/her own method! CMS, ESA, Alice and some other experiments have already their own implementations of event biasing options! It s convenient for the user that Geant4 itself provides most commonly used event biasing techniques.

! Partial MARS migration! n, p, pi, K (< 5 MeV)! Since Geant4 0.0! Primary particle biasing! Since Geant4 3.0! Leading particle biasing! Taking only the most energetic (or most important) secondary! Since Geant4 3.0! Physics based biasing! Biasing secondary production in terms of decay products and momentum distribution! Cross-section biasing (partial) for hadronic physics! Since Geant4 3.0! Geometry based biasing:! geometric splitting and Russian roulette! Weight roulette (or weight cutoff)! Weight windows! Since Geant4 5.0

Leading particle biasing Simulating a full shower is an expensive calculation. Instead of generating a full shower, trace only the most energetic secondary. Other secondary particles are immediately killed before being stacked. Convenient way to roughly estimate, e.g. the thickness of a shield. Of course, physical quantities such as energy are not conserved for each event.

Geometrical importance biasing Russian roulette I m I n r = I n /I m < 1 r = survival probability I m I n Splitting r = I n /I m > 1 if r = 2

! Geometric splitting/russian roulette! Biasing cells are used. These can be the same volumes of the mass geometry or ad hoc volumes in a parallel geometry (the configuration is done in G4MassGeometrySampler and G4ParallelGeometrySampler)! Each cell in the problem is assigned an importance I by the user in the G4DetectorConstruction.! Number I should be proportional to the estimated value that particles have in the cell for the quantity being scored! Splitting occurs on the boundaries between cells when a particle moves in the direction of increased importance! Tracks crossing the cell surfaces in the direction of reduced importance are killed according to the survival probability. Necessity of the weight adjustment in order not to bias the result

# Operatively, the user should activate the following classes for biasing:! 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)

Weight roulette or weight cutoff! Russian roulette is played if a particle s weight drops below a user-specified weight cutoff.! The source cell has an importance I. R j is the ratio between I and I j (j is the new cell). WC1 and WC2 are two weight cutoff values.! The weight cutoff is applied when the particle s weight falls below R j *WC2. With probability W/WC1*R j the particle survives with new weight WC1*R j, otherwise the particle is killed! This technique is pretty useful in combination with implicit capture and geometry splitting. Weight cutoff is dependent on the importance ratio.

Weight Window (WW)! It is a space-energy-dependent splitting and Russian roulette technique! W L is the lower weight bound W U = W L *C L is the upper weight bound (multiple of W L ) W S =W L *C S, the survival weight for particles playing roulette! Particles are split if their weight W > W U! Particles play Russian roulette if W < W L! Particles survive with a weight W = W s! WW is particularly useful in combination with other VRTs, which cause large weight fluctuations (such as the exponential transform)

Geometrical biasing (scoring)! SCORING: G4VScorer (for the definition of the information to be scored). A default implementation is provided through G4Scorer, which provides scores based on the following quantities: " D = step length between previous and post step point " WD = weight of the particle at the previous step point times the step length " WDT = WD divided by the velocity of the particle at the previous step point " WDE = weight times energy (both from the previous step point) times the step length " WTE = WDE divided by the velocity

! Changing the geometry: Improving B01! Original configuration: neutrons impinging on a thick concrete shield (18 slabs) Tiara testbeam (examples/advanced).! Obtaining results with another configuration.! 10 adjacent slabs have been converted into 18 nested cylinders.! Biasing technique: splitting and Russian roulette with Mass Sampler. A messenger is added for special commands to take the scoring information and to switch between a biased and unbiased problem.! Geometry is displayed using DAWN, OpenGL and VRML

Testing with MassGeometrySampler! Using the B01 modified, two runs with 1000000 primary particles (one with and the other without biasing) Without biasing With biasing

Testing with MassGeometrySampler! Using the scoring table in the unbiased case Cell name Importance Tracks entering Population Collisions Coll*WGT NumWGTedE FluxWGTedE Av.Tr.WGT 1 1 1042221 1368317 2047117 2047117 1.40629E-05 9.11009 1 2 1 405864 533549 900152 900152 1.13616E-05 8.52042 1 3 1 138784 181115 331956 331956 9.01605E-06 8.03625 1 4 1 43795 56200 110038 110038 1.07014E-05 7.63709 1 5 1 11489 14787 30225 30225 1.30999E-05 7.34783 1 6 1 1876 2422 5448 5448 0.00010015 6.71384 1 7 1 255 332 743 743 3.56539 6.14856 1 8 1 28 33 72 72 2.34861 5.21457 1 9 1 1 1 1 1 9.0678 9.0678 1 10 1 --- --- --- --- --- --- --- Rest 1 9 9 0 0 4.58625 5.97013 1 World 1 85216 1080615 0 0 10 10 1

Testing with MassGeometrySampler! Using the scoring table in the biased case Cell Importance Tracks Population Collisions Coll*WGT NumWGTedE FluxWGTedE Av.Tr.WGT name entering 1 1 1084374 1410448 2039367 2039367 1.58966E-05 9.11318 1 2 2 459214 1107809 1805789 902894 1.14833E-05 8.52461 1 3 4 323197 757628 1329572 332395 1.2539E-05 8.03993 1.00001 4 8 208226 473035 877449 109684 1.17692E-05 7.65557 1.00004 5 16 103657 242493 473884 29663.2 9.63787E-06 7.38201 1.00058 6 32 33839 80148 168062 5291.12 7.93479E-06 6.82078 1.00918 7 64 9091 21005 46951 737.781 1.07359E-05 6.16203 1.00595 8 128 2271 5153 11716 91.9844 5.41002E-06 5.73127 1.00551 9 256 466 1071 2364 9.27344 4.69943E-06 5.15814 1.00709 10 512 52 114 244 0.476562 2.46977 4.40858 1 Rest 512 321 4707 0 0 2.86472 5.34699 1.01301 World 1 89374 1085249 0 0 10 10 1

Plans of event biasing in Geant4! Full interface to MARS! For fully biased mode! Complete cross-section biasing fro physics processes! Other scoring options rather than surface flux counting, which is currently supported, are under study! Tallies (doses and fluences in a volume)

Fast simulation - Generalities Fast Simulation, also called as shower parameterization, is a shortcut to the "ordinary" tracking. Fast Simulation allows you to take over the tracking and implement your own "fast" physics and detector response. The classical use case of fast simulation is the shower parameterization where the typical several thousand steps per GeV computed by the tracking are replaced by a few ten of energy deposits per GeV. Parameterizations are generally experiment dependent. Geant4 provides a convenient framework.

Parameterization features Parameterizations take place in an envelope. This is typically a mother volume of a sub-system or of a major module of such a sub-system. µ Parameterizations are often dependent and/or may be applied to only some kinds of particles. They are often not applied in complicated regions. e

Fast Simulation The Fast Simulation components are indicated in blue. «envelope» (G4LogicalVolume) G4FastSimulationManager G4Track G4ProcessManager Process xxx Multiple Scattering G4FastSimulationManagerProcess G4Transportation Placements ModelForElectrons ModelForPions When the G4Track comes in an envelope, the G4FastSimulationManagerProcess looks for a G4FastSimulationManager. If one exists, at the beginning of each step in the envelope, each model is asked for a trigger. In case a trigger is issued, the model is applied at the point the G4track is. Otherwise, the tracking proceeds with a normal tracking.

G4FastSimulationManagerProcess The G4FastSimulationManagerProcess is a process providing the interface between the tracking and the fast simulation. It has to be set to the particles to be parameterized: The process ordering must be the following: [n-3] [n-2] Multiple Scattering [n-1] G4FastSimulationManagerProcess [ n ] G4Transportation It can be set as a discrete process or it must be set as a continuous & discrete process if using ghost volumes.

Ghost Volume Ghost volumes allow to define envelopes independent to the volumes of the tracking geometry. For example, this allows to group together electromagnetic and hadronic calorimeters for hadron parameterization or to define envelopes for geometries imported from a CAD system which does not have a hierarchical structure. In addition, Ghost volumes can be sensitive to particle type, allowing to define envelopes individually to particle types. Ghost Volume of a given particle type is placed as a clone of the world volume for tracking. This is done automatically by G4GlobalFastSimulationManager. The G4FastSimulationManagerProcess provides the additional navigation inside a ghost geometry. This special navigation is done transparently to the user.

Persistency Geant4 does not rely on any particular persistency solution. User should provide his/her own solution! Exception : Cross-section tables Geant4 provides various examples Event input Sample : G4HEPEvtInterface Geometry XML, GDML, STEP, GGE (Geant4 Geometry Editor), etc. Histograms AIDA, ROOT Primaries, hits, trajectories, digits G4VPersistencyManager abstract base class Convert Geant4 objects to user persistency objects! ASCII file, ROOT, Objectivity/DB, etc.

Parallelisation By design, Geant4 can be executed in more than one processes/machines in parallel. Geant4 itself does not provide any mechanism of parallelisation but with some external utilities. "Event parallelism"! Master process distributes events to slave processes.! Geometry, physics processes, user classes, parameters are sent to slave processes before start processing events.! Event output and histograms are sent back to the master process to be collected. Geant4 provides one example which requires TOP-C. examples/extended/parallel TOP-C : developed by G.Cooperman (Northeastern U.) Other possibilities of parallelisation and access to distributed computing resources E.g. via DIANE