GPS General Particle Source

Slides:



Advertisements
Similar presentations
Primary Particle KOI, Tatsumi Geant4 V9.4 Geant4 Tutorial at Texas A&M 11-Jan
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.
Ozgur Ates Hampton University HUGS 2009-JLAB TREK Experiment “Tracking and Baseline Design”
Geant4 Low Energy Polarized Compton Processes Gerardo Depaola * Francesco Longo + Francesco Longo + * National University of Córdoba (Argentina) + University.
山下智弘 JST CREST/ 神戸大学 Borrowing especially from presentations of M. Asai(SLAC) Geant4 Japan Oct, RCNS, based on Geant4 9.0.p01.
GAMOS tutorial Histogram and Scorers Exercises
Chapter 23 Gauss’ Law.
Geant4 v9.2p02 Particle Gun Makoto Asai (SLAC) Geant4 Tutorial Course.
Geant4 v9.2p02 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course.
Chapter 24 Gauss’s Law.
Primary particle generation Makoto Asai (SLAC) Geant4 Users CERN Nov. 12 th, 2002.
Primary particle generation Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002.
1 4 th Geant4 Space Users’ Workshop and 3 rd Spenvis Users’ Workshop11/06/06-11/10/06 Total Ionizing Dose Environment for a Jovian Mission Using Geant4.
Geant4 v9.4 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course.
Chapter 24 Gauss’s Law.
Geant4 v9.3p01 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course.
Primary particle generation Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002.
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.2p01.
1 M.G. Pia et al. The application of GEANT4 simulation code for brachytherapy treatment Maria Grazia Pia INFN Genova, Italy and CERN/IT
RF background, analysis of MTA data & implications for MICE Rikard Sandström, Geneva University MICE Collaboration Meeting – Analysis session, October.
Laws of Radiation Heat Transfer P M V Subbarao Associate Professor Mechanical Engineering Department IIT Delhi Macro Description of highly complex Wave.
Geant4 Radiation Analysis for Space GRAS
The LiC Detector Toy M. Valentan, M. Regler, R. Frühwirth Austrian Academy of Sciences Institute of High Energy Physics, Vienna InputSimulation ReconstructionOutput.
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 ( )
GRAS Validation and GEANT4 Electromagnetic Physics Parameters R. Lindberg, G. Santin; Space Environment and Effects Section, ESTEC.
Primary particle Geant4 tutorial Paris, 4-8 June 2007 Giovanni Santin ESA / ESTEC Rhea System SA With material from previous tutorials by Makoto Asai.
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
1 Tracking Reconstruction Norman A. Graf SLAC July 19, 2006.
Electric Flux and Gauss Law
1 Primary particles Geant4 User's Tutorial CERN, February 2010 Talk from previous tutorial by Giovanni Santin Ecole Geant4, Annecy 2008.
Faculty of Engineering Sciences Department of Basic Science 5/26/20161W3.
GAMOS tutorial X-ray Exercises
Normalisation modelling sources Geant4 tutorial Paris, 4-8 June 2007 Giovanni Santin ESA / ESTEC Rhea System SA.
Source Specifications in MCNP
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
Chapter 24 Gauss’s Law. Let’s return to the field lines and consider the flux through a surface. The number of lines per unit area is proportional to.
Primary particle Giovanni Santin ESA / ESTEC and RheaTech Ltd On behalf of the Geant4 collaboration Ecole Geant4 Annecy, and Nov 2008 With.
Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007.
Synchrotron radiation at eRHIC Yichao Jing, Oleg Chubar, Vladimir N. Litvinenko.
Alex Howard - Event Biasing Geant4 Users - Lisbon Event biasing and Variance Reduction - Geometrical Alex Howard, CERN Geant4 Users Workshop, Lisbon.
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.
Beam MC activity A.K.Ichikawa for beam group For more details,
G4GeneralParticleSource Class: Developed by ESA as the space radiation environment is often quite complex in energy and angular distribution, and requires.
Cosmic rays at sea level. There is in nearby interstellar space a flux of particles—mostly protons and atomic nuclei— travelling at almost the speed of.
Initial (FLUKA) calculations for synchrotron radiation at TLep April 4 th, 2013 F. Cerutti, A. Ferrari, L. Lari* *BE Dept.
Basics of Primary Particle Generation and Tracking Makoto Asai (SLAC) Geant4 Tutorial CERN May 25-27, 2005 May 2005, Geant4 v7.0p01.
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
Geant4 Training 2003 Primary Particle Generation The full set of lecture notes of this Geant4 Course is available at
Validation of the bremssrahlung process IV Workshop on Geant4 physics validation Susanna Guatelli, Luciano Pandola, Maria Grazia Pia, Valentina Zampichelli.
Dipole radiation during collisions LL2 Section 68.
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.
Pedro Brogueira 1, Patrícia Gonçalves 2, Ana Keating 2, Dalmiro Maia 3, Mário Pimenta 2, Bernardo Tomé 2 1 IST, Instituto Superior Técnico, 2 LIP, Laboratório.
Dollan, Laihem, Lohse, Schälicke, Stahl 1 Monte Carlo based studies of polarized positrons source for the International Linear Collider (ILC)
A Study of Reverse MC and Space Charge Effect Simulation with Geant4
Inter-comparison of Particle production (2)
GAMOS tutorial Shielding Exercises
Introduction Goal: Can we reconstruct the energy depositions of the proton in the brain if we are able to reconstruct the photons produced during this.
Results of ion simulations
Outline Analysis of some real data taken with the GLAST minitower (cosmic rays only). Offline analysis software used. Full Monte Carlo simulation using.
Primary Particle Generation
Primary Particle Generation
Higgs Factory Backgrounds
G4GeneralParticleSource Class:
Primary particle Makoto Asai (SLAC Computing Services)
Lesson 4: Application to transport distributions
Presentation transcript:

GPS General Particle Source Giovanni Santin ESA / ESTEC and RheaTech Ltd On behalf of the Geant4 collaboration Ecole Geant4 Annecy, 18-21 and 25-28 Nov 2008

Outline Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Introduction Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Motivation After first simple tutorial trials, modelling sources in realistic set-up soon requires relatively more complex sources G4ParticleGun can be used in most cases (as in the series of examples during this tutorial), but users still needs to code (C++) almost every change and add related UI commands for interactive control Requirements for advanced primary particle modelling are often common to many users in different communities E.g. uniform vertex distribution on a surface, isotropic generation, energy spectrum,… Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

What is GPS? The General Particle Source (GPS) offers as pre-defined Introduction Basic functioning Position, angular & energy distributions Examples The General Particle Source (GPS) offers as pre-defined many common options for particle generation (energy, angular and spatial distributions) GPS is a concrete implementation of G4VPrimaryGenerator (as G4ParticleGun but more advanced) G4 class name: G4GeneralParticleSource (in the event category) User cases: space radiation environment, medical physics, accelerator (fixed target) First development (2000) University of Southampton (ESA contract), maintained and upgraded now mainly by QinetiQ and ESA Extensive up-to-date documentation at http://reat.space.qinetiq.com/gps Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Summary of GPS features Primary vertex can be randomly positioned with several options Emission from point, plane,… Angular emission Several distributions; isotropic, cosine-law, focused, … With some additional parameters (min/max-theta, min/max-phi,…) Kinetic energy of the primary particle can also be randomized. Common options (e.g. mono-energetic, power-law), some extra shapes (e.g. black-body) or user defined Multiple sources With user defined relative intensity Capability of event biasing (variance reduction). By enhancing particle type, distribution of vertex point, energy and/or direction Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Basic functioning Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

GPS vs G4ParticleGun user geant4 User messenger (UI) Introduction Basic functioning Position, angular & energy distributions Examples User messenger (UI) MyPrimaryGenerator (G4VUserPrimaryGeneratorAction) Computes desired primary properties G4ParticleGun (G4VPrimaryGenerator) Vertices and Primary particles are created G4Event Primaries are stored for later tracking G4GeneralParticleSource (G4VPrimaryGenerator) Computes desired primary properties Creates vertices and primary particles MyPrimaryGenerator (G4VUserPrimaryGeneratorAction) G4Event Primaries are stored for later tracking GPS messenger (UI) user geant4 Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

GPS control: scripting UI All features can be used via C++ or command line (or macro) UI Example of isotropic emission in UserPrimaryGenerator C++ code: examples/advanced/human_phantom/src/G4HumanPhantomPrimaryGeneratorAction.cc G4double a,b,c; G4double n; do { a = (G4UniformRand()-0.5)/0.5; b = (G4UniformRand()-0.5)/0.5; c = (G4UniformRand()-0.5)/0.5; n = a*a+b*b+c*c; } while (n > 1 || n == 0.0); n = std::sqrt(n); a /= n; b /= n; c /= n; G4ThreeVector direction(a,b,c); particleGun->SetParticleMomentumDirection(direction); Equivalent GPS (script) /gps/ang/type iso Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

UserPrimaryGeneratorAction class Introduction Basic functioning Position, angular & energy distributions Examples Can be extremely simple: MyPrimaryGeneratorAction::MyPrimaryGeneratorAction() { m_particleGun = new G4GeneralParticleSource(); } MyPrimaryGeneratorAction::~MyPrimaryGeneratorAction() { delete m_particleGun; void MyPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent) { m_particleGun->GeneratePrimaryVertex(anEvent); All user instructions given via macro UI commands Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Class diagram Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Multiple sources Introduction Basic functioning Position, angular & energy distributions Examples First source is always already present (implicitly created) one can add intensity information /gps/source/intensity 5. Additional sources must be added explicitly /gps/source/add 10. Definition of multiple “parallel” sources One source per event is used Sampling according to relative intensity Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Biasing Users can bias distributions by entering a histogram Introduction Basic functioning Position, angular & energy distributions Examples Users can bias distributions by entering a histogram It is the random numbers from which the quantities are picked that are biased  so one needs a histogram only from 0 to 1 Great care must be taken when using this option Bias histograms are entered in the same way as other user-defined histograms /gps/hist/type biasx | biasy | biasz | biast | biasp | biaspt | biaspp | biase Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Position, angular & energy distributions Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Position distributions /gps/pos/… Point E.g. /gps/pos/type Point /gps/pos/centre 0. 0. 0. cm Beam E.g. /gps/pos/type Beam /gps/pos/shape Circle /gps/pos/radius 1. mm /gps/pos/sigma_r 2. mm Plane Shape: Circle, Annulus, Ellipsoid, Square or Rectangle E.g. /gps/pos/type Plane /gps/pos/shape Rectangle /gps/pos/halfx 50 cm /gps/pos/halfy 70 cm Surface or Volume Shape: Sphere, Ellipsoid, Cylinder or Para Surface: zenith automatically oriented as normal to surface at point E.g. /gps/pos/type Surface /gps/pos/shape Sphere /gps/pos/radius 1. m Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Position distributions /gps/pos/… (2) Introduction Basic functioning Position, angular & energy distributions Examples Some shared UI commands /gps/pos/centre /gps/pos/halfx | y | z /gps/pos/radius /gps/pos/inner_radius /gps/pos/sigmar /gps/pos/sigmax | y /gps/pos/rot1 /gps/pos/rot2 When usinig Volume type, one can limit the emission from within a certain volume in the “mass” geometry /gps/pos/confine your_physical_volume_name Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Angular distributions /gps/ang/… Introduction Basic functioning Position, angular & energy distributions Examples Isotropic (iso) Cosine-law (cos) See next slides for more information Planar wave (planar) Standard emission in one direction (it’s also implicitly set by /gps/direction x y z) Accelerator beam 1-d or 2-d gaussian emission, beam1d or beam2d Focusing to a point (focused) User-defined (user) Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Isotropic radiation in space: Cos VS Iso ? I. Slab source Objective: model an isotropic flux in space, shooting from a planar surface (assuming flux from right is stopped) By definition of isotropic flux:  The flux passing through a surface (such as A) is not dependent on the direction The slab B sees Full flux for a direction normal to its surface reduced by a factor cos(q) for tilted directions (/cm2 !)  We must use “cosine-law” angular distribution when shooting primaries from the slab A q B B B If one shoots an isotropic flux from a slab the final distribution in space is not isotropic ! Different fluences through surfaces at different angles Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Isotropic radiation in space: Cos VS Iso ? II. Sphere source B A q B Introduction Basic functioning Position, angular & energy distributions Examples Same is valid for a spherical surface the fluence for each direction is proportional to the cosine of the angle between the source direction and the local normal to the sphere surface Cosine-law angular emission actually works not only for the sphere, but for generic surfaces (e.g. shooting from a box) Isotropic angular emission from the surface leads to non isotropic fluence in the volume E.g. for each emission direction the final distribution is not flat on a plane normal to the emission direction One can verify the various options by placing an oriented detector in different positions/orientations in the volume Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Energy distributions /gps/ene/… Kinetic energy of the primary particle can also be randomized, with several predefined options: Common options (e.g. mono-energetic, power-law, exponential, gaussian, etc) mono-energetic (Mono) linear (Lin) power-law (Pow) exponential (Exp) gaussian (Gauss) Some extra predefined spectral shapes (bremsstrahlung, black-body, cosmic diffuse gamma ray,…) bremsstrahlung (Brem) black-body (Bbody) cosmic diffuse gamma ray (Cdg) User defined user-defined histogram (User) arbitrary point-wise spectrum (Arb) and user-defined energy per nucleon histogram (Epn) Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Example: proton source of exercises jour 2a 2b 2c Introduction Basic functioning Position, angular & energy distributions Examples Vertices on rectangle along xz at edge of World Parallel emission along -y Monoenergetic: 500 MeV Macro /gps/particle proton /gps/ene/type Mono /gps/ene/mono 500 MeV /gps/pos/type Plane /gps/pos/shape Rectangle /gps/pos/rot1 0 0 1 /gps/pos/rot2 1 0 0 /gps/pos/halfx 46.2 cm /gps/pos/halfy 57.2 cm /gps/pos/centre 0. 57.2 0. cm /gps/direction 0 –1 0 Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

GPS Example 6 Macro /gps/particle geantino Vertex on sphere surface Introduction Basic functioning Position, angular & energy distributions Examples Vertex on sphere surface Isotropic emission Pre-defined spectrum (black-body) Macro /gps/particle geantino /gps/pos/type Surface /gps/pos/shape Sphere /gps/pos/centre -2. 2. 2. cm /gps/pos/radius 2.5 cm /gps/ang/type iso /gps/ene/type Bbody /gps/ene/min 2. MeV /gps/ene/max 10. MeV /gps/ene/temp 2e10 /gps/ene/calculate Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

GPS Example 7 Macro /gps/particle gamma Vertex on cylinder surface Introduction Basic functioning Position, angular & energy distributions Examples Vertex on cylinder surface Cosine-law emission (to mimic isotropic source in space) Pre-defined spectrum (Cosmic Diffuse Gamma) Macro /gps/particle gamma /gps/pos/type Surface /gps/pos/shape Cylinder /gps/pos/centre 2. 2. 2. cm /gps/pos/radius 2.5 cm /gps/pos/halfz 5. cm /gps/ang/type cos /gps/ene/type Cdg /gps/ene/min 20. keV /gps/ene/max 1. MeV /gps/ene/calculate Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

GPS Example 24 Macro /gps/particle geantino /gps/pos/type Volume /gps/pos/shape Sphere /gps/pos/centre 1. 2. 1. cm /gps/pos/radius 2. Cm /gps/ang/type iso /gps/ene/type Arb /gps/ene/diffspec 0 /gps/hist/type arb /gps/hist/point 0.0 11. /gps/hist/point 1.0 10. /gps/hist/point 2.0 9. /gps/hist/point 3.0 8. /gps/hist/point 4.0 7. /gps/hist/point 7.0 4. /gps/hist/point 8.0 3. /gps/hist/point 9.0 2. /gps/hist/point 10.0 1. /gps/hist/point 11.0 0. /gps/hist/inter Lin /gps/hist/type biasz /gps/hist/point 0. 0. /gps/hist/point 0.4 0.5 /gps/hist/point 0.6 1. /gps/hist/point 1. 0.2 /gps/hist/type biast /gps/hist/point 0. 0. /gps/hist/point 0.1 1. /gps/hist/point 0.5 0.1 /gps/hist/point 1. 1. /gps/hist/type biasp /gps/hist/point 0. 0. /gps/hist/point 0.125 1. /gps/hist/point 0.375 4. /gps/hist/point 0.625 1. /gps/hist/point 0.875 4. /gps/hist/point 1. 1. Introduction Basic functioning Position, angular & energy distributions Examples Vertex in sphere volume with z biasing Isotropic radiation with theta and phi biasing Integral arbitrary point-wise energy distribution with linear interpolation. Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

GPS Example 31 Macro Two-beam source definition (multiple sources) # beam #1 # default intensity is 1, # now change to 5. /gps/source/intensity 5. /gps/particle proton /gps/pos/type Beam # the incident surface is # in the y-z plane /gps/pos/rot1 0 1 0 /gps/pos/rot2 0 0 1 # the beam spot is centered # at the origin and is # of 1d gaussian shape # with a 1 mm central plateau /gps/pos/shape Circle /gps/pos/centre 0. 0. 0. mm /gps/pos/radius 1. mm /gps/pos/sigma_r .2 mm # the beam is travelling # along the X_axis # with 5 degrees dispersion /gps/ang/rot1 0 0 1 /gps/ang/rot2 0 1 0 /gps/ang/type beam1d /gps/ang/sigma_r 5. deg # the beam energy is in # gaussian profile centered # at 400 MeV /gps/ene/type Gauss /gps/ene/mono 400 MeV /gps/ene/sigma 50. MeV # beam #2 # 2x the instensity of beam #1 /gps/source/add 10. # this is a electron beam ... GPS Example 31 Two-beam source definition (multiple sources) Gaussian profile Can be focused / defocused Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Exercises Cobalt-60 gamma source Proton accelerator source Space electron environment Introduction Basic functioning Position, angular & energy distributions Examples Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Documentation and support Primary Generation in Geant4 Lecture 4 : Generation of primary particles GPS Website: http://reat.space.qinetiq.com/gps/ Support from users and developers Geant4 HyperNews – Particles questions, proposal of new capabilities http://hypernews.slac.stanford.edu/HyperNews/geant4/get/particles.html Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Spare Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy

Normalisation for Isotropic radiation in space, Sphere surface Nr is the number of particles traversing my source volume in the real world Nr depends on the external flux, integrated on relevant source surface and solid angle Only the source geometry is relevant for source normalisation, no detector parameter F  external flux (energy integrated) [/ cm2 s sr] Two possible approaches Method 1 Integrate over the 2 p emission angle,  with cosine-law biasing Then integrate over the source sphere surface: S = 4p R2 Method 2 (euristic) Assume isotropic source in space  (no cosine-law) Take only sphere equatorial surface as effective geometrical cross section: S = p R2 S R R S Giovanni Santin - General Particle Source (GPS) - Ecole Geant4 2008, Annecy