Primary particle. Geant4 tutorial Paris, 4-8 June 2007. Giovanni Santin ESA / ESTEC. Rhea System SA



Similar documents
Generation of a primary event

Calculation of Source-detector Solid Angle, Using Monte Carlo Method, for Radioactive Sources with Various Geometries and Cylindrical Detector

Geant4 User's Guide for Application Developers

Physics 111 Homework Solutions Week #9 - Tuesday

Introduction to Hands-on 4 ~Digest of exercise ~

Introduction to the Monte Carlo method

Mars Atmosphere and Volatile EvolutioN (MAVEN) Mission

GAMMA-RAY SPECTRA REFERENCES

Monte Carlo Simulations in Proton Dosimetry with Geant4

Other GEANT4 capabilities

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

Geant4 User's Guide for Application Developers

Atomic and Nuclear Physics Laboratory (Physics 4780)

GCE Physics A. Mark Scheme for June Unit G485: Fields, Particles and Frontiers of Physics. Advanced GCE. Oxford Cambridge and RSA Examinations

Gamma Rays OBJECT: READINGS: APPARATUS: BACKGROUND:

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

Cathode Ray Tube. Introduction. Functional principle

ACCELERATORS AND MEDICAL PHYSICS 2

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

Nuclear Physics. Nuclear Physics comprises the study of:

Main properties of atoms and nucleus

MASS DEFECT AND BINDING ENERGY

Vacuum Evaporation Recap

1. Units of a magnetic field might be: A. C m/s B. C s/m C. C/kg D. kg/c s E. N/C m ans: D

6) How wide must a narrow slit be if the first diffraction minimum occurs at ±12 with laser light of 633 nm?

Chapter NP-5. Nuclear Physics. Nuclear Reactions TABLE OF CONTENTS INTRODUCTION OBJECTIVES 1.0 NUCLEAR REACTIONS 2.0 NEUTRON INTERACTIONS

Computer Animation of Extensive Air Showers Interacting with the Milagro Water Cherenkov Detector

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

Using Monte Carlo method for simulation of electromagnetic radiation penetration in body ' s tissues

Energy Deposition in MICE Absorbers and Coils

Gamma Rays from Molecular Clouds and the Origin of Galactic Cosmic Rays. Stefano Gabici APC, Paris

Version 10.0-p01. User Interface II. Makoto Asai (SLAC) Geant4 Tutorial Course

2 Absorbing Solar Energy

EQUATION OF STATE. e (E µ)/kt ± 1 h 3 dp,

HW6 Solutions Notice numbers may change randomly in your assignments and you may have to recalculate solutions for your specific case.

Center of Gravity. We touched on this briefly in chapter 7! x 2

Particle Soup: Big Bang Nucleosynthesis

Search for supersymmetric Dark Matter with GLAST!!

Objectives 404 CHAPTER 9 RADIATION

Chapter 18: The Structure of the Atom

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA

Basics of Nuclear Physics and Fission

Introduction to CATIA V5

Monday 11 June 2012 Afternoon

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

Magnetic Field and Magnetic Forces

Centripetal Force. This result is independent of the size of r. A full circle has 2π rad, and 360 deg = 2π rad.

Tutorial 4.6 Gamma Spectrum Analysis

Proton tracking for medical imaging and dosimetry

Interstellar Cosmic-Ray Spectrum from Gamma Rays and Synchrotron

The Basic Principles of Sieve Analysis

Masses in Atomic Units

Performance Comparison of Four Commercial GE Discovery PET/CT Scanners: A Monte Carlo Study Using GATE

AS COMPETITION PAPER 2008

2. Orbits. FER-Zagreb, Satellite communication systems 2011/12

Understand the Sketcher workbench of CATIA V5.

Frequency-domain and stochastic model for an articulated wave power device

STUDY OF THE TRANSVERSE BEAM EMITTANCE OF THE BERN MEDICAL CYCLOTRON

Phys222 Winter 2012 Quiz 4 Chapters Name

Solar Energy. Outline. Solar radiation. What is light?-- Electromagnetic Radiation. Light - Electromagnetic wave spectrum. Electromagnetic Radiation

. Tutorial #3 Building Complex Targets

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

PHOTOELECTRIC EFFECT AND DUAL NATURE OF MATTER AND RADIATIONS

[2] At the time of purchase of a Strontium-90 source, the activity is Bq.

List of Problems Solved Introduction p. 1 Concept p. 1 Nodes p. 3 Elements p. 4 Direct Approach p. 5 Linear Spring p. 5 Heat Flow p.

Synthetic Sensing: Proximity / Distance Sensors

Electron-Muon Ranger (EMR)

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

Basic Nuclear Concepts

9 Area, Perimeter and Volume

Variance reduction techniques used in BEAMnrc

X-ray Production. Target Interactions. Principles of Imaging Science I (RAD119) X-ray Production & Emission

UNIVERSITETET I OSLO

APPLIED MATHEMATICS ADVANCED LEVEL

Manual for simulation of EB processing. Software ModeRTL

AP2 Magnetism. (c) Explain why the magnetic field does no work on the particle as it moves in its circular path.

Cabri Geometry Application User Guide

ART 269 3D Animation Fundamental Animation Principles and Procedures in Cinema 4D

Nuclear Physics and Radioactivity

LA-UR- Title: Author(s): Submitted to: Approved for public release; distribution is unlimited.

Heating & Cooling in Molecular Clouds

How To Understand Light And Color

Joint Application of Perl Scripts and MCNPX in Solving the Dynamic-Geometry Related Problems in Proton Beam Radiotherapy

Chemistry 1000 Lecture 2: Nuclear reactions and radiation. Marc R. Roussel

PHYA2. General Certificate of Education Advanced Subsidiary Examination June Mechanics, Materials and Waves

Comparison of approximations to the transition rate in the DDHMS preequilibrium model

Experiment: Crystal Structure Analysis in Engineering Materials

Introduction to ROOT and data analysis

Lab 8: Ballistic Pendulum

Geometry Notes PERIMETER AND AREA

Medical Applications of radiation physics. Riccardo Faccini Universita di Roma La Sapienza

Lecture 2 Macroscopic Interactions Neutron Interactions and Applications Spring 2010

AN INVESTIGATION INTO THE USEFULNESS OF THE ISOCS MATHEMATICAL EFFICIENCY CALIBRATION FOR LARGE RECTANGULAR 3 x5 x16 NAI DETECTORS

Refraction of Light at a Plane Surface. Object: To study the refraction of light from water into air, at a plane surface.

Convert between units of area and determine the scale factor of two similar figures.

( )( 10!12 ( 0.01) 2 2 = 624 ( ) Exam 1 Solutions. Phy 2049 Fall 2011

Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

Relativistic kinematics basic energy, mass and momentum units, Lorents force, track bending, sagitta. First accelerator: cathode ray tube

Transcription:

Primary particle Geant4 tutorial Paris, 4-8 June 2007 Giovanni Santin ESA / ESTEC Rhea System SA With material from previous tutorials by Makoto Asai

Contents G4VUserPrimaryGeneratorAction Primary vertex and primary particle Built-in primary particle generators Particle gun Interfaces to HEPEVT and HEPMC General particle source (Exotic primary particle, pre-assigned decay) Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 2

Primary particle generation Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 3

User classes Initialization classes Use G4RunManager::SetUserInitialization() to define. Invoked at the initialization G4VUserDetectorConstruction G4VUserPhysicsList Action classes Use G4RunManager::SetUserAction() to define. Invoked during an event loop G4VUserPrimaryGeneratorAction G4UserRunAction G4UserEventAction G4UserStackingAction G4UserTrackingAction G4UserSteppingAction main() Geant4 does not provide main(). Note : classes written in orange are mandatory. Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 4

G4VUserPrimaryGeneratorAction This class is one of the mandatory user classes and controls the generation of primaries What kind of particle (how many) what energy, position, direction, polarisation, etc This class itself should NOT generate primaries but invoke GeneratePrimaryVertex() method of primary generator(s) to make primaries (G4VPrimaryGenerator) Constructor Instantiate primary generator(s) Set default values to it (them) GeneratePrimaries() method Randomize particle-by-particle value(s) Set these values to primary generator(s) Never use hard-coded UI commands Invoke GeneratePrimaryVertex() method of primary generator(s) Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 5

Primary vertices and primary particles Primary vertices and primary particles are stored in G4Event in advance to processing an event. G4PrimaryVertex and G4PrimaryParticle classes These classes don t have any dependency to G4ParticleDefinition nor G4Track. They will become primary tracks only at Begin of Event phase and put into a stack MyPrimaryGenerator (G4VUserPrimaryGeneratorAction) Computes desired primary properties MyParticleGun (G4VPrimaryGenerator) Vertices and Primary particles are created G4Event Primaries are stored for later tracking Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 6

Pre-assigned decay for primaries Capability of bookkeeping decay chains Primary particles may not necessarily be particles which can be tracked by Geant4 Pre-assigned decay channels attached to particles Also, exotic particles can be imported from Particle Generators, followed by either decay or user defined physics processes (e.g. Higgs, W/Z boson, SUSY particle, ) See talk by Makoto Asai Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 7

Built-in primary particle generators Geant4 provides some concrete implementations of G4VPrimaryGenerator. G4ParticleGun G4HEPEvtInterface, G4HEPMCInterface G4GeneralParticleSource Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 8

G4ParticleGun Concrete implementations of G4VPrimaryGenerator A good example for experiment-specific primary generator implementation It shoots one primary particle of a certain energy from a certain point at a certain time to a certain direction. Various set methods are available Intercoms commands are also available for setting initial values G4ParticleGun is basic, but it can be used from inside UserPrimaryGeneratorAction to model complex source types / distributions: Generate the desired distributions (by shooting random numbers) Use set methods of G4ParticleGun Use G4ParticleGun as many times as you want Use any other primary generators as many times as you want to make overlapping events Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 9

G4VUserPrimaryGeneratorAction Example of usage of G4ParticleGun void T01PrimaryGeneratorAction:: GeneratePrimaries(G4Event* anevent) { G4ParticleDefinition* particle; G4int i = (int)(5.*g4uniformrand()); switch(i) { case 0: particle = positron; break;... } particlegun->setparticledefinition(particle); G4double pp = momentum+(g4uniformrand()-0.5)*sigmamomentum; G4double mass = particle->getpdgmass(); G4double Ekin = sqrt(pp*pp+mass*mass)-mass; particlegun->setparticleenergy(ekin); G4double angle = (G4UniformRand()-0.5)*sigmaAngle; particlegun->setparticlemomentumdirection (G4ThreeVector(sin(angle),0.,cos(angle))); particlegun->generateprimaryvertex(anevent); } You can repeat this for generating more than one primary particles. Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 10

Interfaces to HEPEvt and HepMC Concrete implementations of G4VPrimaryGenerator Good examples for experiment-specific primary generator implementation Interface to external physics generators G4HEPEvtInterface Event record structure based on /HEPEVT/ common block Used by (FORTRAN) HEP physics generators Developed and agreed on within the framework of the 1989 LEP physics study ASCII file input G4HepMCInterface HepMC Event record for MC generators. Object Oriented, C++ Used by new (C++) HEP physics generators. ASCII file input or direct linking to a generator through HepMC. Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 11

G4GeneralParticleSource (GPS) An advanced concrete implementation of G4VPrimaryGenerator Offers as pre-defined many common (and not so common) options for particle generation: Primary vertex can be randomly positioned with options Point, Beam, Plane (Circle, Annulus, Ellipsoid, Square or Rectangle ), Surface or Volume (Sphere, Ellipsoid, Cylinder or Para ) Angular emission can be isotropic (iso), cosine-law (cos), planar wave (planar), 1-d accelerator beam (beam1d), 2-d accelerator beam (beam2d), focusing to a point (focused) or user-defined (user) Kinetic energy of the primary particle can also be randomized. mono-energetic (Mono), linear (Lin), power-law (Pow), exponential (Exp), Gaussian (Gauss), bremsstrahlung (Brem), black-body (Bbody), cosmic diffuse gamma ray (Cdg), user-defined histogram (User), arbitrary pointwise spectrum (Arb) and user-defined energy per nucleon histogram (Epn) 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 All features can be used via C++ or command line (or macro) UI Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 12

GPS Typical UserPrimaryGeneratorAction class Can be extremely simple: GRASPrimaryGeneratorAction::GRASPrimaryGeneratorAction() { m_particlegun = new G4GeneralParticleSource(); } GRASPrimaryGeneratorAction::~GRASPrimaryGeneratorAction() { delete m_particlegun; } void GRASPrimaryGeneratorAction::GeneratePrimaries(G4Event* anevent) { m_particlegun->generateprimaryvertex(anevent); } All user instructions given via macro UI commands Extensive documentation at http://reat.space.qinetiq.com/gps Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 13

GPS Example 6 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 - Primary particle - Geant4 tutorial, Paris 2007 14

GPS Example 7 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 - Primary particle - Geant4 tutorial, Paris 2007 15

GPS Example 24 Vertex in sphere volume with z biasing Isotropic radiation with theta and phi biasing Macro /gps/particle geantino /gps/pos/type Volume /gps/pos/shape Sphere /gps/pos/centre 1. 2. 1. cm /gps/pos/radius 2. Cm Integral arbitrary point-wise energy distribution with linear interpolation. /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. Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 16

GPS Example 31 Two-beam source definition (multiple sources) Gaussian profile Can be focused / defocused Macro # 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... Giovanni Santin - Primary particle - Geant4 tutorial, Paris 2007 17