Field propagation in Geant4

Slides:



Advertisements
Similar presentations
Chapter 6 Differential Equations
Advertisements

Arc-length computation and arc-length parameterization
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Chapter 32 Magnetic Fields.
1Notes. 2 Triangle intersection  Many, many ways to do this  Most robust (and one of the fastest) is to do it based on determinants  For vectors a,b,c.
Geant4 v9.2p02 Geometry IV Makoto Asai (SLAC) Geant4 Tutorial Course.
Geometry IV Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.2p01.
1 Vertex fitting Zeus student seminar May 9, 2003 Erik Maddox NIKHEF/UvA.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Quantum Scattering With Pilot Waves Going With the Flow.
Calculus and Analytic Geometry II Cloud County Community College Spring, 2011 Instructor: Timothy L. Warkentin.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
Geometry and Field: New features and Developments T. Nikitina For Geometry Working Group Geant4 workshop, Hebden Bridge september 2007 G4Paraboloid.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
C OMPUTATION AND S IMULATION EE A SSIGNMENT T WO By: Shimiao Cheng, Femi Adeleke, Hanieh Alirezaeeabyaneh.
Spectrometer Optics John J. LeRose. The Basics Charged particles moving through static magnetic fields.  Magnetic Rigidity Local radius of curvature.
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Slope Fields. Quiz 1) Find the average value of the velocity function on the given interval: [ 3, 6 ] 2) Find the derivative of 3) 4) 5)
The Pattern Recognition issue for the Mu2e experiment Giovanni F. Tassielli - G. Marconi University.
Field propagation in Geant4 John Apostolakis 25 th May 2005 Ver. 
Field propagation in Geant4 John Apostolakis, CERN Ecole Geant June 2007, Paris 25 th May 2005 Ver. 
Detector Description: Sensitive Detector & Field
TI-NSPIRE™ TECHNOLOGY V. 3.0 RELEASE MATH IMPROVEMENTS February 2011.
Global Tracking Software Status H. Greenlee Run II Meeting May 12, 2000.
Magnetic Field Issues for Simulation and Reconstruction N. Amapane, N. Neumeister Workshop on LHC Physics with High-p T Muons in CMS Bologna, April 9-12,
Geant4 Simulation of the Beam Line for the HARP Experiment M.Gostkin, A.Jemtchougov, E.Rogalev (JINR, Dubna)
Detector Description – Part III Ivana Hrivnacova, IPN Orsay Tatiana Nikitina, CERN Aknowledgement: Slides by: J.Apostolakis, G.Cosmo, A. Lechner.
Geant4 Tracking Test (D. Lunesu)1 Daniela Lunesu, Stefano Magni Dario Menasce INFN Milano GEANT4 TRACING TESTs.
Midwest Accelerator Physics Meeting. Indiana University, March 15-19, ORBIT Electron Cloud Model Andrei Shishlo, Yoichi Sato, Slava Danilov, Jeff.
Chapter 6 Overview. Maxwell’s Equations In this chapter, we will examine Faraday’s and Ampère’s laws.
By Verena Kain CERN BE-OP. In the next three lectures we will have a look at the different components of a synchrotron. Today: Controlling particle trajectories.
Lecture 4 - E. Wilson - 23 Oct 2014 –- Slide 1 Lecture 4 - Transverse Optics II ACCELERATOR PHYSICS MT 2014 E. J. N. Wilson.
Geometry 3 I.Hrivnacova IPN, Orsay Most slides thanks to M. Asai, SLAC Cours Paris June 2007.
Geometry and Fields: Further and advanced features J. Apostolakis & G. Cosmo.
C++ and Worshop – WG4 Alain Bellerive 1. Outline C++ Interface... Interface... Interface... C++ GarfieldMainFrame (3 rd attempt!!!) New Garfield in C++
CHEP ’06 GEANT4E 1 GEANT4E: Error propagation for track reconstruction inside the GEANT4 framework Pedro Arce (CIEMAT) CHEP 2006, Mumbai, 13-17th February.
2( ) 8x + 14y = 4 -12x – 14y = x = x = 4 8x + 14y = 4 8(4) + 14y = y = y = -28 ___ ___ y = -2 The solution is (4, -2)
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
1 Line Integrals In this section we are now going to introduce a new kind of integral. However, before we do that it is important to note that you will.
Unstructured Meshing Tools for Fusion Plasma Simulations
Lesson 4-1 Solving linear system of equations by graphing
Dmitry Sorokin (GSoC 2016), John Apostolakis (CERN)
SLOPE FIELDS & EULER’S METHOD
CS 445 / 645 Introduction to Computer Graphics
Maxwell 3D Transient.
What is the differentiation.
Lecture 4 - Transverse Optics II
Larmor Orbits The general solution of the harmonic oscillator equation
Detector Description - Advanced
Use of interpolation and FSAL property for integration in field
8.7Systems of Linear Equations – Part 1
Detector Description - Advanced
Field propagation in Geant4
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Makoto Asai (SLAC) Geant4 Tutorial Course
Ordinary differential equaltions:
Solve the differential equation. {image}
Field propagation in Geant4
Indicator 16 System of Equations.
Objectives Identify solutions of linear equations in two variables.
Numerical solution of first-order ordinary differential equations
Field propagation in Geant4
Solving Quadratic Equations by the Graphical Method
Numerical Computation and Optimization
GEANT4 performance studies
Slope Fields (6.1) January 10th, 2017.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

Field propagation in Geant4 John Apostolakis representing the effort of the Field sub-category of the Geometry & Transportation WG of Geant4 Version 0.35 18th February 2002

Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC Contents What is involved in propagating in a field calculating the motions intersecting the volume boundaries A first example Defining a simple field in Geant4 More capabilities Using your own field Many fields, Tomorrow: tuning for performance, .. 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Magnetic field: overview In order to propagate a particle inside a field (e.g. magnetic, electric or both), we solve the equation of motion of the particle in the field. We use a Runge-Kutta method for the integration of the ordinary differential equations of motion. Several Runge-Kutta ‘steppers’ are available. In specific cases other solvers can also be used: In a uniform field, using the analytical solution. In a nearly uniform field (BgsTransportation/future) In a smooth but varying field, with new RK+helix. 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Magnetic field: overview (cont) Using the method to calculate the track's motion in a field, Geant4 breaks up this curved path into linear chord segments. We determine the chord segments so that they closely approximate the curved path. We use the chords to interrogate the Navigator, to see whether the track has crossed a volume boundary. 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC Stepping and accuracy You can set the accuracy of the volume intersection, by setting a parameter called the “miss distance” it is a measure of the error in whether the approximate track intersects a volume. Default “miss distance” is 3 mm. One physics/tracking step can create several chords. In some cases, one step consists of several helix turns. miss distance ‘Tracking’ Step Chords real trajectory 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Magnetic field: a first example Part 1/2 Create your Magnetic field class Uniform field : Use an object of the G4UniformMagField class #include "G4UniformMagField.hh" #include "G4FieldManager.hh" #include "G4TransportationManager.hh“ G4MagneticField* magField= new G4UniformMagField( G4ThreeVector(1.0*Tesla, 0.0, 0.0 ); Non-uniform field : Create your own concrete class derived from G4MagneticField 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Magnetic field: a first example Tell Geant4 to use your field Find the global Field Manager G4FieldManager* globalFieldMgr= G4TransportationManager:: GetTransportationManager() ->GetFieldManager(); Set the field for this FieldManager, globalFieldMgr->SetDetectorField(magField); and create a Chord Finder. globalFieldMgr->CreateChordFinder(magField); Part 2/2 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC In practice: exampleN04 From geant4/examples/novice/N04/src/ExN04DetectorConstruction.cc 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Beyond your first field Create your own field class To describe your setup’s EM field Global field and local fields The world or detector field manager An alternative field manager can be associated with any logical volume Currently the field must accept position global coordinates and return field in global coordinates Customizing the field propagation classes Choosing an appropriate stepper for your field Setting precision parameters 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Creating your own field Create a class, with one key method – that calculates the value of the field at a Point Point [0..2] position Point[3] time void ExN04Field::GetFieldValue( const double Point[4], double *field) const { field[0] = 0.; field[1] = 0.; if(abs(Point[2])<zmax && (sqr(Point[0])+sqr(Point[1]))<rmax_sq) { field[2] = Bz; } else { field[2] = 0.; } } 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Global and local fields One field manager is associated with the ‘world’ Set in G4TransportationManager Other volumes can override this By associating a field manager with any logical volume By default this is propagated to all its daughter volumes G4FieldManager* localFieldMgr= new G4FieldManager(magField); logVolume->setFieldManager(localFieldMgr, true); where ‘true’ makes it push the field to all the volumes it contains. 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC

Contributors to Field sub-category John Apostolakis Simone Giani Vladimir Grichine Wolfgang Wander with thanks to David Williams for useful discussions and expected contribution 17th February 2002 10 January 2019 Geant4 Fields, J. Apostolakis, Geant4 Users Workshop, SLAC