Geant4 v9.3p01. Primary Particle. Makoto Asai (SLAC) Geant4 Tutorial Course

Size: px
Start display at page:

Download "Geant4 v9.3p01. Primary Particle. Makoto Asai (SLAC) Geant4 Tutorial Course"

Transcription

1 Geant4 v9.3p01 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course

2 Contents G4VUserPrimaryGeneratorAction Primary vertex and primary particle Built-in primary particle generators Particle gun Interfaces to HEPEVT and HEPMC General particle source Particle Gun or General Particle Source? Primary Particle - M.Asai (SLAC) 2

3 Primary particle generation Geant4 v9.3p01

4 User classes Initialization classes Use G4RunManager::SetUserInitialization() to define. Invoked at the initialization Action classes G4VUserDetectorConstruction G4VUserPhysicsList Use G4RunManager::SetUserAction() to define. Invoked during an event loop main() G4VUserPrimaryGeneratorAction G4UserRunAction G4UserEventAction G4UserStackingAction G4UserTrackingAction G4UserSteppingAction Geant4 does not provide main(). Note : classes written in red are mandatory. Primary Particle - M.Asai (SLAC) 4

5 G4VUserPrimaryGeneratorAction This class is one of mandatory user classes to control the generation of primaries. This class itself should NOT generate primaries but invoke GeneratePrimaryVertex() method of primary generator(s) to make primaries. 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) Primary Particle - M.Asai (SLAC) 5

6 Primary vertex and primary particle Geant4 v9.3p01

7 Primary vertices and 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. Capability of bookkeeping decay chains Primary particles may not necessarily be particles which can be tracked by Geant4. Geant4 provides some concrete implementations of G4VPrimaryGenerator. G4ParticleGun G4HEPEvtInterface, G4HEPMCInterface G4GeneralParticleSource Primary Particle - M.Asai (SLAC) 7

8 Pre-assigned decay products Physics generator can assign a decay channel for each individual particle separately, while in Geant4 you cannot specify a decay channel for each particle. Decay chain can be pre-assigned. A parent particle in the form of G4Track object travels in the detector, bringing preassigned decay daughters as objects of G4DynamicParticle. When the parent track comes to the decay point, pre-assigned daughters become to secondary tracks, instead of randomly selecting a decay channel defined to the particle type. Decay time of the parent can be pre-assigned as well. G4PrimaryParticle G4Track B - B - B - m - n m D 0 m - n m K - m + n m D 0 m - n m K - m + n m pre-assigned decay products m D + 0 D 0 K - K - m + n m Primary Particle - M.Asai (SLAC) 8 n m

9 Built-in primary particle generators Geant4 v9.3p01

10 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 One of most frequently asked questions is : I want particle shotgun, particle machinegun, etc. Instead of implementing such a fancy weapon, in your implementation of UserPrimaryGeneratorAction, you can Shoot random numbers in arbitrary distribution 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 Primary Particle - M.Asai (SLAC) 10

11 G4VUserPrimaryGeneratorAction 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. Primary Particle - M.Asai (SLAC) 11

12 Interfaces to HEPEvt and HepMC Concrete implementations of G4VPrimaryGenerator A good example for experiment-specific primary generator implementation G4HEPEvtInterface Suitable to /HEPEVT/ common block, which many of (FORTRAN) HEP physics generators are compliant to. ASCII file input G4HepMCInterface An interface to HepMC class, which a few new (C++) HEP physics generators are compliant to. ASCII file input or direct linking to a generator through HepMC. Primary Particle - M.Asai (SLAC) 12

13 G4GeneralParticleSource A concrete implementation of G4VPrimaryGenerator Suitable especially to space applications MyPrimaryGeneratorAction:: MyPrimaryGeneratorAction() { generator = new G4GeneralParticleSource; } void MyPrimaryGeneratorAction:: GeneratePrimaries(G4Event* anevent) { generator->generateprimaryvertex(anevent); } Detailed description Primary Particle - M.Asai (SLAC) 13

14 G4GeneralParticleSource Square plane, cosine-law direction, linear energy Spherical Cylindrical surface, isotropic surface, radiation, cosine-law black-body radiation, energy Cosmic diffuse Spherical volume with z biasing, isotropic radiation with Primary vertex can energy be randomly chosen on the surface of a certain volume. theta and phi biasing, integral arbitrary point-wise Momentum direction and kinetic energy energy distribution of the with primary linear particle interpolation. can also be randomized. Distribution could be set by UI commands. Capability of event biasing (variance reduction). By enhancing particle type, distribution of vertex point, energy and/or direction Primary Particle - M.Asai (SLAC) 14

15 Particle Gun or General Particle Source Geant4 v9.3p01

16 G4VUserPrimaryGeneratorAction This class is one of mandatory user classes to control the generation of primaries. This class itself should NOT generate primaries but invoke GeneratePrimaryVertex() method of primary generator(s) to make primaries. 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) Particle Gun - M.Asai (SLAC) 16

17 Particle Gun vs. General Particle Source Particle Gun Simple and naïve Shoot one track at a time You can shoot more than one tracks within an event. Easy to handle. Use set methods to alternate track-by-track or event-byevent values. General Particle Source Powerful Controlled by UI commands. Almost impossible to control through set methods Capability of shooting particles from a surface of a volume. Capability of randomizing kinetic energy, position and/or direction following a user-specified distribution (histogram). If you need to shoot primary particles from a surface of a complicated volume, either outward or inward, GPS is the choice. If you need a complicated distribution, GPS is the choice. Otherwise, use Particle Gun. Particle Gun - M.Asai (SLAC) 17

18 What to do and where to do In the constructor of your UserPrimaryGeneratorAction Instantiate G4ParticleGun Set default values by set methods of G4ParticleGun Particle type, kinetic energy, position and direction In your macro file or from your interactive terminal session Set values for a run Particle type, kinetic energy, position and direction In the GeneratePrimaries() method of your UserPrimaryGeneratorAction Shoot random number(s) and prepare track-by-track or event-by-event values Kinetic energy, position and direction Use set methods of G4ParticleGun to set such values Then invoke GeneratePrimaryVertex() method of G4ParticleGun If you need more than one primary tracks per event, loop over randomization and GeneratePrimaryVertex(). examples/extended/analysis/a01/src/a01primarygeneratoraction.cc is a good example to start with. Also, new example to demonstrate how to use ParticleGun to alternate most of the GPS functionalities is to be included in Geant4 9.4-beta. Particle Gun - M.Asai (SLAC) 18

19 G4VUserPrimaryGeneratorAction void A01PrimaryGeneratorAction:: 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. Particle Gun - M.Asai (SLAC) 19

Geant p01. Primary Par(cle. (based on slides by Makoto Asai) Geant4 Tutorial at Stanford 4 March 2014 Dennis Wright (SLAC)

Geant p01. Primary Par(cle. (based on slides by Makoto Asai) Geant4 Tutorial at Stanford 4 March 2014 Dennis Wright (SLAC) Geant4 10.0 p01 Primary Par(cle (based on slides by Makoto Asai) Geant4 Tutorial at Stanford 4 March 2014 Dennis Wright (SLAC) Outline Primary Par(cle Genera(on Built- in primary par(cle generators par(cle

More information

Primary Particle Generation.

Primary Particle Generation. Primary Particle Generation http://cern.ch/geant4 Contents Primary vertex and primary particle Primary generator What is What is available G4VUserPrimaryGeneratorAction How to use it Primary Vertices and

More information

Version 10.3-p03. Primary Particle. Makoto Asai (SLAC) Geant4 Tutorial Course

Version 10.3-p03. Primary Particle. Makoto Asai (SLAC) Geant4 Tutorial Course Version 10.3-p03 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course Contents Introduction Built-in primary particle generators Particle gun Interfaces to HEPEVT and HEPMC General particle source

More information

Geant4 Tutorial. SciNeGHE Trieste An hands-on course based on Geant4 with emphasis on high energy astroparticle physics.

Geant4 Tutorial. SciNeGHE Trieste An hands-on course based on Geant4 with emphasis on high energy astroparticle physics. Geant4 Tutorial SciNeGHE Trieste 2010 An hands-on course based on Geant4 with emphasis on high energy astroparticle physics. Lectures will cover all aspects of Geant4 from basic installation through advanced

More information

Generating Primary Particles

Generating Primary Particles Generating Primary Particles Geant4 Tutorial, Marshall Space Flight Center April 2012 Daniel Brandt (based on slides by T. Koi) based on Geant4 v9.5-p01 Overview Mandatory user classes Primary generator

More information

Part 3 Mandatory user classes

Part 3 Mandatory user classes Part 3 Mandatory user classes The main program Geant4 does not provide the main(). In your main(), you have to Construct G4RunManager (or your derived class) Set user mandatory classes to RunManager G4VUserDetectorConstruction

More information

Interacting with the Geant4 Kernel

Interacting with the Geant4 Kernel Interacting with the Geant4 Kernel Anton Lechner, CERN Acknowledgements: J. Apostolakis, G. Cosmo, M. Asai, A. Howard http://cern.ch/geant4 I. Review of User Action Classes Setting up a Geant4 application

More information

Using Geant4. Maria Grazia Pia. ANS Winter Meeting 2010 Thursday, 11 November 2010 Las Vegas, NV. INFN Genova, Italy GATE

Using Geant4.   Maria Grazia Pia. ANS Winter Meeting 2010 Thursday, 11 November 2010 Las Vegas, NV. INFN Genova, Italy GATE GATE Collaboration Courtesy T. Ersmark, KTH Stockholm R. Taschereau, R. Roy, J. Pouliot Using Geant4 ATLAS Collaboration Maria Grazia Pia INFN Genova, Italy Courtesy of H, Araujo, Imperial College London

More information

Geant4 v8.1p01. Geometry I. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v8.1p01. Geometry I. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.1p01 Geometry I Makoto Asai (SLAC) Geant4 Tutorial Course Contents Introduction G4VUserDetectorConstruction class Solid and shape Logical volume Geometry I - M.Asai (SLAC) 2 Introduction Detector

More information

Geant4 v9.5. Kernel II. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v9.5. Kernel II. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v9.5 Kernel II Makoto Asai (SLAC) Geant4 Tutorial Course Contents User limits Attaching user information to G4 classes Stacking mechanism Kernel II - M.Asai (SLAC) 2 User limits Geant4 v9.5 G4UserLimits

More information

Geant4 v9.3p01. Kernel III. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v9.3p01. Kernel III. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v9.3p01 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course Contents Parallel geometry Moving objects Fast simulation (Shower parameterization) Tips for Speeding Up Kernel III - M.Asai (SLAC) 2

More information

Geant4 v9.4. Geometry I. Presented by Sébastien Incerti (CNRS/IN2P3) Based on slides kindly prepared by Makoto Asai (SLAC)

Geant4 v9.4. Geometry I. Presented by Sébastien Incerti (CNRS/IN2P3) Based on slides kindly prepared by Makoto Asai (SLAC) Geant4 v9.4 Geometry I Presented by Sébastien Incerti (CNRS/IN2P3) Based on slides kindly prepared by Makoto Asai (SLAC) Contents Introduction G4VUserDetectorConstruction class Solid and shape G4LogicalVolume

More information

Multithreading in Geant4

Multithreading in Geant4 JUNO GEANT4 SCHOOL Beijing ( 北京 ) 15-19 May 2017 Multithreading in Geant4 Geant4 tutorial Contents Motivation for multi-threading Implementation in Geant4 Coding for MT safety 2 Part I: Motivation 3 Motivation:

More information

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

Version 10.0-p01. Kernel II. Makoto Asai (SLAC) Geant4 Tutorial Course Version 10.0-p01 Kernel II Makoto Asai (SLAC) Geant4 Tutorial Course Contents User limits Attaching user information to G4 classes Stacking mechanism Tips for computing performance Kernel II - M.Asai (SLAC)

More information

Introduction to Geant4. Makoto Asai (SLAC Computing Services) Geant4 Tutorial DESY September 30 th, 2003

Introduction to Geant4. Makoto Asai (SLAC Computing Services) Geant4 Tutorial DESY September 30 th, 2003 Introduction to Geant4 Makoto Asai (SLAC Computing Services) Geant4 Tutorial Course @ DESY September 30 th, 2003 Contents General introduction and brief history Highlights of user applications Geant4 kernel

More information

Geant4 v8.3. Geometry I. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v8.3. Geometry I. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.3 Geometry I Makoto Asai (SLAC) Geant4 Tutorial Course Contents Introduction G4VUserDetectorConstruction class Solid and shape Logical volume Geometry I - M.Asai (SLAC) 2 Introduction Three conceptual

More information

Geant4 User's Guide for Toolkit Developers

Geant4 User's Guide for Toolkit Developers Geant4 User's Guide for Toolkit Developers Version: geant4 10.3 Publication date 9 December 2016 Geant4 Collaboration Geant4 User's Guide for Toolkit Developers by Geant4 Collaboration Version: geant4

More information

Geant4. A Monte Carlo toolkit to simulate particles and detectors. G.A. Pablo Cirrone - F.Romano Laboratori Nazionali del Sud-INFN, Catania (I) Date

Geant4. A Monte Carlo toolkit to simulate particles and detectors. G.A. Pablo Cirrone - F.Romano Laboratori Nazionali del Sud-INFN, Catania (I) Date Geant4 A Monte Carlo toolkit to simulate particles and detectors G.A. Pablo Cirrone - F.Romano Laboratori Nazionali del Sud-INFN, Catania (I) Date First lesson Where you can find this material? The official

More information

What is.

What is. http://geant4.org What is Toolkit for the Monte Carlo simulation of the interaction of particles with matter physics processes (EM, hadronic, optical) cover a comprehensive set of particles, materials

More information

Geant4 v9.5. Geometry I. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v9.5. Geometry I. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v9.5 Geometry I Makoto Asai (SLAC) Geant4 Tutorial Course Contents Introduction G4VUserDetectorConstruction class Solid and shape Logical volume Region Physical volume Placement Geometry I - M.Asai

More information

Geant4 v9.5. Scoring II. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v9.5. Scoring II. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v9.5 Scoring II Makoto Asai (SLAC) Geant4 Tutorial Course Contents Sensitive detector vs. primitive scorer Basic structure of detector sensitivity Sensitive detector and hit Touchable Use of G4HCofThisEvent

More information

Investigation of the HDF5 C++ Library in Development of New Phase-Space I/O for Radiotherapy Simulation Using Monte Carlo Geant4 Code

Investigation of the HDF5 C++ Library in Development of New Phase-Space I/O for Radiotherapy Simulation Using Monte Carlo Geant4 Code American Journal of Mathematical and Computer Modelling 2016; 1(1): 25-31 http://www.sciencepublishinggroup.com/j/ajmcm doi: 10.11648/j.ajmcm.20160101.14 Investigation of the HDF5 C++ Library in Development

More information

Geant4: A Simulation toolkit

Geant4: A Simulation toolkit Geant4: A Simulation toolkit O. Stézowski and M. Pinto With many thanks to the Geant4 community!!!! The roadmap of the week W1: installation / running a G4 application W2: Primary generator, GPS, physics

More information

Interaction with the Geant4kernelI.

Interaction with the Geant4kernelI. III GEANT4 INTERNATIONAL AND GPU PROGRAMMING SCHOOL Catania, Italy 9 13 November 2015 Interaction with the Geant4kernelI. J. Pipek, L. Pandola, G. Milluzzo, G.A.P. Cirrone tutorial Run, Event, Track,...

More information

Geant4 v9.5. Kernel III. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v9.5. Kernel III. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v9.5 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course Contents Fast simulation (Shower parameterization) Multi-threading Computing performance Kernel III - M.Asai (SLAC) 2 Fast simulation (shower

More information

Geant4 v8.3. Scoring I. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v8.3. Scoring I. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.3 Scoring I Makoto Asai (SLAC) Geant4 Tutorial Course Contents Retrieving information from Geant4 Basic structure of detector sensitivity Sensitive detector vs. primitive scorer Primitive scorers

More information

Detector Description - Basics

Detector Description - Basics Detector Description - Basics Anton Lechner, CERN Acknowledgements: Slides produced by J. Apostolakis, G. Cosmo, M. Asai, A. Howard http://cern.ch/geant4 Introduction Basic concepts of setting up a detector

More information

GENERAL INTRODUCTION. Training course Monte Carlo simulation for Micro- and Nanodosimetry Karlsruhe, October Geant4 v9.

GENERAL INTRODUCTION. Training course Monte Carlo simulation for Micro- and Nanodosimetry Karlsruhe, October Geant4 v9. Geant4 v9.4 GENERAL INTRODUCTION Training course Monte Carlo simulation for Micro- and Nanodosimetry Karlsruhe, 25-26 October 2011 V. Ivanchenko adaptation of the original lecture of Makoto Asai (SLAC)

More information

Norman Graf (SLAC) May 20, 2003

Norman Graf (SLAC) May 20, 2003 Norman Graf (SLAC) May 20, 2003 Problem Statement HEP community has mostly completed its transition to modern programming technologies (object-oriented, oriented, C++, Java). GEANT4, ROOT, JAS, One exception

More information

Stack management, Digitization and Pile-up. Makoto Asai (SLAC) Geant4 Users SLAC Feb. 20th, 2002

Stack management, Digitization and Pile-up. Makoto Asai (SLAC) Geant4 Users SLAC Feb. 20th, 2002 Stack management, Digitization and Pile-up Makoto Asai (SLAC) Geant4 Users Workshop @ SLAC Feb. 20th, 2002 Introduction This tutorial covers the features of Stack management Digitization Multiple events

More information

Monte Carlo programs

Monte Carlo programs Monte Carlo programs Alexander Khanov PHYS6260: Experimental Methods is HEP Oklahoma State University November 15, 2017 Simulation steps: event generator Input = data cards (program options) this is the

More information

Geometry 3. I.Hrivnacova IPN, Orsay. Most slides thanks to M. Asai, SLAC. Cours Paris June 2007

Geometry 3. I.Hrivnacova IPN, Orsay. Most slides thanks to M. Asai, SLAC. Cours Paris June 2007 Geometry 3 I.Hrivnacova IPN, Orsay Most slides thanks to M. Asai, SLAC Cours Geant4 @ Paris 2007 4-8 June 2007 Contents Geometry checking tools Basics of Touchable Region Cours Geant4 @ Paris 2007 2 Contents

More information

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

Multithreading. Andrea Dotti April 19th, 2015 Geant4 M&C+SNA+MC 2015 Multithreading Andrea Dotti April 19th, 2015 Geant4 tutorial @ M&C+SNA+MC 2015 Contents Basics of multithreading Event-level parallelism How to install/configure MT mode Race condition Mutex and thread

More information

Version 10.4-p02. Scoring II. Makoto Asai (SLAC) Geant4 Tutorial Course

Version 10.4-p02. Scoring II. Makoto Asai (SLAC) Geant4 Tutorial Course Version 10.4-p02 Scoring II Makoto Asai (SLAC) Geant4 Tutorial Course Contents Define scorers in the tracking volume Accumulate scores for a run Sensitive detector vs. primitive scorer Basic structure

More information

User Commands. Makoto Asai (SLAC) Geant4 Users SLAC Feb. 19th, 2002

User Commands. Makoto Asai (SLAC) Geant4 Users SLAC Feb. 19th, 2002 User Commands Makoto Asai (SLAC) Geant4 Users Workshop @ SLAC Feb. 19th, 2002 Contents Geant4 UI command Built-in commands Macro file Alias, loop control User-defined command Geant4 UI command Geant4 UI

More information

Simulation Techniques Using Geant4

Simulation Techniques Using Geant4 IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course Simulation Techniques Using Geant4 Maria Grazia Pia (INFN Genova, Italy) MariaGrazia.Pia@ge.infn.it Dresden, 18 October 2008 http://www.ge.infn.it/geant4/events/nss2008/geant4course.html

More information

A GEANT4 Simulation of the Derek Glazier University of Edinburgh

A GEANT4 Simulation of the Derek Glazier University of Edinburgh A GEANT4 Simulation of the CrystalBall@MAMI Derek Glazier University of Edinburgh GEANT4 Overview Geant4 is the successor of GEANT3, the world-standard toolkit for HEP detector simulation Geant4 is an

More information

PXD Simulation and Optimisation Studies

PXD Simulation and Optimisation Studies PXD Simulation and Optimisation Studies Z. Drásal, A. Moll, K. Prothmann with special thanks to: C. Kiesling, A. Raspereza, Prague people Charles University Prague MPI Munich ILC Software Framework Summary

More information

Overview: Physically- Based Simulation of Single-Event Effects

Overview: Physically- Based Simulation of Single-Event Effects Overview: Physically- Based Simulation of Single-Event Effects Robert A. Weller Institute for Space & Defense Electronics Vanderbilt University R. A. Reed M. H. Mendenhall D. R. Ball J. A. Pellish K. M.

More information

November 2005, Geant4 v7.1. UI command. Makoto Asai (SLAC) Geant4 Tutorial Bordeaux November 2005

November 2005, Geant4 v7.1. UI command. Makoto Asai (SLAC) Geant4 Tutorial Bordeaux November 2005 November 2005, Geant4 v7.1 UI command Makoto Asai (SLAC) Geant4 Tutorial Course @ Bordeaux November 2005 Command syntax G4UIterminal Alias and loop Mechanism of UI command Messenger class Defining a command

More information

HepMC 2. a C++ Event Record for Monte Carlo Generators. User Manual Version 2.0 August 18, 2006.

HepMC 2. a C++ Event Record for Monte Carlo Generators.  User Manual Version 2.0 August 18, 2006. LATEX-ed on June 29, 2007. HepMC 2 a C++ Event Record for Monte Carlo Generators http://savannah.cern.ch/projects/hepmc/ User Manual Version 2.0 August 18, 2006 Lynn Garren Fermi National Accelerator Laboratory

More information

RADIOBIOLOGICAL MODELING USING TRACK STRUCTURE ANALYSIS

RADIOBIOLOGICAL MODELING USING TRACK STRUCTURE ANALYSIS RADIOBIOLOGICAL MODELING USING TRACK STRUCTURE ANALYSIS A Thesis Presented to The Academic Faculty by Matthew T. Coghill In Partial Fulfillment of the Requirements for the Degree Master of Science in Medical

More information

Geant4 v9.4. User Interface. Presented by Sébastien Incerti (CNRS/IN2P3) Based on slides kindly prepared by Makoto Asai (SLAC)

Geant4 v9.4. User Interface. Presented by Sébastien Incerti (CNRS/IN2P3) Based on slides kindly prepared by Makoto Asai (SLAC) Geant4 v9.4 User Interface Presented by Sébastien Incerti (CNRS/IN2P3) Based on slides kindly prepared by Makoto Asai (SLAC) Contents Syntax of User Interface commands Macro files Terminal commands 2 1)

More information

Biasing in Geant4. Geant4 Tutorial, Marshall Space Flight Center April Daniel Brandt (based on slides by M. Kelsey) based on Geant4 v9.

Biasing in Geant4. Geant4 Tutorial, Marshall Space Flight Center April Daniel Brandt (based on slides by M. Kelsey) based on Geant4 v9. Biasing in Geant4 Geant4 Tutorial, Marshall Space Flight Center April 2012 Daniel Brandt (based on slides by M. Kelsey) based on Geant4 v9.5-p01 Overview Simple biasing techniques Primary particle biasing

More information

Positioning & Orientation of Elements

Positioning & Orientation of Elements UseCase.0011 (1.0) Positioning & Orientation of Elements Keywords: positioning, orientation, element, component, angle, basal, isolated, input channel, output channel, coordinate system, origin, separate,

More information

Geant4 Python Interface

Geant4 Python Interface Geant4 Python Interface KEK / CRC Geant4 2005 10 th Collaboration Workshop Table of Contents Introduction Technical Aspects Practical Aspects Installation How to use How to expose your applications Summary

More information

Cut per region. Marc Verderi GEANT4 collaboration meeting 01/10/2002

Cut per region. Marc Verderi GEANT4 collaboration meeting 01/10/2002 Cut per region Marc Verderi GEANT4 collaboration meeting 01/10/2002 Introduction Cut here = «production threshold»; Not tracking cut; GEANT4 originally designed to allow a unique cut in range; Unique cut

More information

Modelling of non-gaussian tails of multiple Coulomb scattering in track fitting with a Gaussian-sum filter

Modelling of non-gaussian tails of multiple Coulomb scattering in track fitting with a Gaussian-sum filter Modelling of non-gaussian tails of multiple Coulomb scattering in track fitting with a Gaussian-sum filter A. Strandlie and J. Wroldsen Gjøvik University College, Norway Outline Introduction A Gaussian-sum

More information

Basics of treatment planning II

Basics of treatment planning II Basics of treatment planning II Sastry Vedam PhD DABR Introduction to Medical Physics III: Therapy Spring 2015 Monte Carlo Methods 1 Monte Carlo! Most accurate at predicting dose distributions! Based on

More information

Applying Machine Learning for bb-decay Identification

Applying Machine Learning for bb-decay Identification Applying Machine Learning for bb-decay Identification Andrey Elagin University of Chicago Work in progress In collaboration with E.Toropov (Carnegie Mellon), I.Vukotic (Chicago), S.Fraker (MIT), L.Winslow

More information

Geant4: how to retrieve information. Luciano Pandola INFN

Geant4: how to retrieve information. Luciano Pandola INFN Geant4: how to retrieve information Luciano Pandola INFN Part I: The main ingredients Optional user classes - 1 Five concrete base classes whose virtual member functions the user may override to gain control

More information

The Pennsylvania State University. The Graduate School. Department of Mechanical and Nuclear Engineering

The Pennsylvania State University. The Graduate School. Department of Mechanical and Nuclear Engineering The Pennsylvania State University The Graduate School Department of Mechanical and Nuclear Engineering HIGH EFFICIENCY FAST NEUTRON DETECTION SYSTEM BASED ON ZNS/LI-6F TECHNOLOGY A Thesis in Nuclear Engineering

More information

Disentangling P ANDA s time-based data stream

Disentangling P ANDA s time-based data stream Disentangling P ANDA s time-based data stream M. Tiemens on behalf of the PANDA Collaboration KVI - Center For Advanced Radiation Technology, University of Groningen, Zernikelaan 25, 9747 AA Groningen,

More information

Code characteristics

Code characteristics The PENELOPE Computer code M.J. Anagnostakis Nuclear Engineering Department National Technical University of Athens The PENELOPE code system PENetration and Energy LOss of Positrons and Electrons in matter

More information

Optical Photon Processes

Optical Photon Processes Optical Photon Processes GEANT4 is an effective and comprehensive tool capable of realistically modeling the optics of scintillation and Cerenkov detectors and their associated light guides. This is founded

More information

Geant4 User s Guide - For Application Developers -

Geant4 User s Guide - For Application Developers - Geant4 User s Documents Version: Geant4 3.2 June 2001 Geant4 User s Guide - For Application Developers - 1. Introduction 2. Getting started with Geant4 - Running a simple example 1. How to define the main

More information

FAMOS: A Dynamically Configurable System for Fast Simulation and Reconstruction for CMS

FAMOS: A Dynamically Configurable System for Fast Simulation and Reconstruction for CMS FAMOS: A Dynamically Configurable System for Fast Simulation and Reconstruction for CMS St. Wynhoff Princeton University, Princeton, NJ 08544, USA Detailed detector simulation and reconstruction of physics

More information

Detector Alignment with Tracks. Wouter Hulsbergen (Nikhef, BFYS)

Detector Alignment with Tracks. Wouter Hulsbergen (Nikhef, BFYS) Detector Alignment with Tracks Wouter Hulsbergen (Nikhef, BFYS) Detector alignment LHC silicon detectors provide

More information

Detector Sensitivity. Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18th, 2002

Detector Sensitivity. Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18th, 2002 Detector Sensitivity Makoto Asai (SLAC) Geant4 Users Workshop @ SLAC Feb. 18th, 2002 Detector sensitivity A logical volume becomes sensitive if it has a pointer to a concrete class derived from G4VSensitiveDetector.

More information

Geant4 v8.3. User Interface I. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v8.3. User Interface I. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.3 User Interface I Makoto Asai (SLAC) Geant4 Tutorial Course Contents Command syntax Macro file G4UIterminal User Interface I - M. Asai (SLAC) 2 A command consists of Command directory Command

More information

Scattering/Wave Terminology A few terms show up throughout the discussion of electron microscopy:

Scattering/Wave Terminology A few terms show up throughout the discussion of electron microscopy: 1. Scattering and Diffraction Scattering/Wave Terology A few terms show up throughout the discussion of electron microscopy: First, what do we mean by the terms elastic and inelastic? These are both related

More information

Geant4 v9.5. Geometry IV. Makoto Asai (SLAC) Geant4 Tutorial Course

Geant4 v9.5. Geometry IV. Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v9.5 Geometry IV Makoto Asai (SLAC) Geant4 Tutorial Course Contents Magnetic field Field integration and other types of field Geometry checking tools Geometry optimization Parallel geometry Moving

More information

Geant4 python interface

Geant4 python interface Geant4 python interface Koichi Murakami (KEK/CRC) Geant4 Collaboration Meeting 2016 Sep/15/2016 G4 FERRARA 1 Python Shell Environment CLI : UI terminal script language : UI macro Programming Language oop,

More information

package G4Svc Components: G4Svc triggers G4SvcRunManager initialization, event processing loop and termination

package G4Svc Components: G4Svc triggers G4SvcRunManager initialization, event processing loop and termination package G4Svc Components: G4Svc triggers G4SvcRunManager initialization, event processing loop and termination BesHepMCInterface Inherits from G4HepMCInterface Interface to EvtDataSvc for retrieving HepMC

More information

LCIO: A Persistency Framework and Event Data Model for HEP. Steve Aplin, Jan Engels, Frank Gaede, Norman A. Graf, Tony Johnson, Jeremy McCormick

LCIO: A Persistency Framework and Event Data Model for HEP. Steve Aplin, Jan Engels, Frank Gaede, Norman A. Graf, Tony Johnson, Jeremy McCormick LCIO: A Persistency Framework and Event Data Model for HEP Steve Aplin, Jan Engels, Frank Gaede, Norman A. Graf, Tony Johnson, Jeremy McCormick SLAC-PUB-15296 Abstract LCIO is a persistency framework and

More information

LCDG4 Status. Dhiman Chakraborty, Guilherme Lima, Jeremy McCormick, Vishnu Zutshi. LC Simulations Workshop Argonne, June 02 05, 2004

LCDG4 Status. Dhiman Chakraborty, Guilherme Lima, Jeremy McCormick, Vishnu Zutshi. LC Simulations Workshop Argonne, June 02 05, 2004 LCDG4 Status Dhiman Chakraborty, Guilherme Lima, Jeremy McCormick, Vishnu Zutshi LC Simulations Workshop Argonne, June 02 05, 2004 Outline Overview LCDG4 features XML geometry representation SIO contents

More information

Geant4: A Simulation toolkit

Geant4: A Simulation toolkit Geant4: A Simulation toolkit O. Stézowski and I. Companis With many thanks to the Geant4 community!!!! The roadmap of the week W1: installation / running a G4 application W2: Primary generator, GPS, physics

More information

Simulation Techniques Using Geant4

Simulation Techniques Using Geant4 IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course Simulation Techniques Using Geant4 Maria Grazia Pia (INFN Genova, Italy) MariaGrazia.Pia@ge.infn.it Dresden, 18 October 2008 http://www.ge.infn.it/geant4/events/nss2008/geant4course.html

More information

November 2005, Geant4 v7.1. Detector Sensitivity. Makoto Asai (SLAC) Geant4 Tutorial Bordeaux November 2005

November 2005, Geant4 v7.1. Detector Sensitivity. Makoto Asai (SLAC) Geant4 Tutorial Bordeaux November 2005 November 2005, Geant4 v7.1 Detector Sensitivity Makoto Asai (SLAC) Geant4 Tutorial Course @ Bordeaux November 2005 Contents Sensitive detector and hit Digitizer module and digit Hit class Sensitive detector

More information

Introduction to Geant4 Visualization Geant4 v10.0.p3

Introduction to Geant4 Visualization Geant4 v10.0.p3 Geant4 v10.0.p3 HepRep/HepRApp Makoto Asai (SLAC) Slides created by Joseph Perl (SLAC) So many options, it needs three title pages DAWN OpenGL 1 RayTracer OpenInventor DAWN HepRep/FRED 2 Qt gmocren DAWN

More information

Light & Optical Systems Reflection & Refraction. Notes

Light & Optical Systems Reflection & Refraction. Notes Light & Optical Systems Reflection & Refraction Notes What is light? Light is electromagnetic radiation Ultra-violet + visible + infra-red Behavior of Light Light behaves in 2 ways particles (photons)

More information

Starting a Data Analysis

Starting a Data Analysis 03/20/07 PHY310: Statistical Data Analysis 1 PHY310: Lecture 17 Starting a Data Analysis Road Map Your Analysis Log Exploring the Data Reading the input file (and making sure it's right) Taking a first

More information

Particle track plotting in Visual MCNP6 Randy Schwarz 1,*

Particle track plotting in Visual MCNP6 Randy Schwarz 1,* Particle track plotting in Visual MCNP6 Randy Schwarz 1,* 1 Visual Editor Consultants, PO Box 1308, Richland, WA 99352, USA Abstract. A visual interface for MCNP6 has been created to allow the plotting

More information

GEANT4 Simulation of MOLLER Experiment

GEANT4 Simulation of MOLLER Experiment GEANT4 Simulation of MOLLER Experiment Mark Dalton UVa (for Dustin McNulty, Luis Mercado and the MOLLER Collaboration) Outline Introduction to the MOLLER experiment Simulation Overview Spectrometer Design

More information

Setting Up a C++ Analyzer Replay

Setting Up a C++ Analyzer Replay Setting Up a C++ Analyzer Replay Ole Hansen Jefferson Lab Joint Hall A & Hall C Data Analysis Workshop January 14, 2015 Ole Hansen (Jefferson Lab) C++ Analyzer Replay Tutorial January 14, 2015 1 / 14 Brief

More information

FastSim tutorial for beginners

FastSim tutorial for beginners FastSim tutorial for beginners Matteo Rama Laboratori Nazionali di Frascati 1st SuperB Collaboration meeting London, September 2011 Part I FastSim overview M. Rama - 1st SuperB Collaboration Meeting QMUL

More information

Full Simulation of Belle & Belle II SVD Detector (within ILC Framework)

Full Simulation of Belle & Belle II SVD Detector (within ILC Framework) Full Simulation of Belle & Belle II SVD Detector (within ILC Framework) Z. Drásal Charles University in Prague ILC Software Framework Summary Mokka: Geant 4 based, full simulation tool using a realistic

More information

In this lecture we will study how incident solar radiation interacts with vegetation

In this lecture we will study how incident solar radiation interacts with vegetation In this lecture we will study how incident solar radiation interacts with vegetation 1 Why should we care about light? Here is a short list of key biometeorological processes that depend upon the flux

More information

HepMC 2. a C++ Event Record for Monte Carlo Generators. User Manual Version 2.06 May 17, 2010.

HepMC 2. a C++ Event Record for Monte Carlo Generators.   User Manual Version 2.06 May 17, 2010. LATEX-ed on February 16, 2012. HepMC 2 a C++ Event Record for Monte Carlo Generators http://savannah.cern.ch/projects/hepmc/ User Manual Version 2.06 May 17, 2010 Matt Dobbs University of Victoria, Canada

More information

Geant4 User's Guide for Application Developers

Geant4 User's Guide for Application Developers Geant4 User's Guide for Application Developers Version: geant4 9.1 Published 14 December, 2007 Geant4 Collaboration Geant4 User's Guide for Application Developers by Geant4 Collaboration Version: geant4

More information

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects Basic Ray Tracing Rendering: Reality Eye acts as pinhole camera Photons from light hit objects Rendering: Reality Eye acts as pinhole camera Photons from light hit objects Rendering: Reality Eye acts as

More information

1 st International Serpent User Group Meeting in Dresden, Germany, September 15 16, 2011

1 st International Serpent User Group Meeting in Dresden, Germany, September 15 16, 2011 1 st International Serpent User Group Meeting in Dresden, Germany, September 15 16, 2011 Discussion notes The first international Serpent user group meeting was held at the Helmholtz Zentrum Dresden Rossendorf

More information

GEANT4 is used for simulating: RICH testbeam data, HCAL testbeam data. GAUSS Project: LHCb Simulation using GEANT4 with GAUDI.

GEANT4 is used for simulating: RICH testbeam data, HCAL testbeam data. GAUSS Project: LHCb Simulation using GEANT4 with GAUDI. Status of GEANT4 in LHCb S. Easo, RAL, 30-9-2002 The LHCbexperiment. GEANT4 is used for simulating: RICH testbeam data, HCAL testbeam data. GAUSS Project: LHCb Simulation using GEANT4 with GAUDI. Summary.

More information

Tracking and Vertexing in 3D B-field

Tracking and Vertexing in 3D B-field Tracking and Vertexing in 3D B-field Norman Graf (SLAC) HPS Collaboration Meeting, JLab October 26, 2015 Track Extrapolation At the heart of both track and vertex fitting in the presence of a non-uniform

More information

ILC Framework for Belle II

ILC Framework for Belle II ILC Framework for Belle II Kolja Prothmann, Christian Kiesling, Andreas Moll, Frank Simon Max-Planck-Institut für Physik Zbynek Drasal Charles University Prague Outline Experiments using ILC software Overview

More information

8.882 LHC Physics. Track Reconstruction and Fitting. [Lecture 8, March 2, 2009] Experimental Methods and Measurements

8.882 LHC Physics. Track Reconstruction and Fitting. [Lecture 8, March 2, 2009] Experimental Methods and Measurements 8.882 LHC Physics Experimental Methods and Measurements Track Reconstruction and Fitting [Lecture 8, March 2, 2009] Organizational Issues Due days for the documented analyses project 1 is due March 12

More information

Faster Navigation in Voxel Geometries (DICOM) Joseph Perl (SLAC/SCCS) G4NAMU AAPM Houston 27 July 2008

Faster Navigation in Voxel Geometries (DICOM) Joseph Perl (SLAC/SCCS) G4NAMU AAPM Houston 27 July 2008 Faster Navigation in Voxel Geometries (DICOM) Joseph Perl (SLAC/SCCS) G4NAMU meeting @ AAPM Houston 27 July 2008 Technical Challenge #2 for Geant4 Med Apps: Patient Geometry HEP: constructive solid geometry

More information

ILC Software Overview and recent developments

ILC Software Overview and recent developments ILC Software Overview and recent developments Frank Gaede 134th ILC@DESY General Project Meeting DESY, May 27, 2016 Outline Introduction to ilcsoft core tools ILD simulation and reconstruction software

More information

PoS(Baldin ISHEPP XXII)134

PoS(Baldin ISHEPP XXII)134 Implementation of the cellular automaton method for track reconstruction in the inner tracking system of MPD at NICA, G.A. Ososkov and A.I. Zinchenko Joint Institute of Nuclear Research, 141980 Dubna,

More information

The Importance of Refractive Index When using Laser Diffraction

The Importance of Refractive Index When using Laser Diffraction The Importance of Refractive Index When using Laser Diffraction Mark Bumiller mark.bumiller@horiba.com Fraunhofer Approximation Mie Theory RI 1.60 0.0i, in water, RI 1.33 Mie vs. Fraunhofer 1.E+05 1.E+04

More information

G4MultiFunctionalDetector, G4VPrimitiveSensitivity, G4VSDFilter and G4THitsMap

G4MultiFunctionalDetector, G4VPrimitiveSensitivity, G4VSDFilter and G4THitsMap November 2005, Geant4 v7.1 G4MultiFunctionalDetector, G4VPrimitiveSensitivity, G4VSDFilter and G4THitsMap Makoto Asai (SLAC) Geant4 Collaboration Meeting @ Bordeaux November 2005 Concrete sensitivity classes

More information

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ = Radiometry (From Intro to Optics, Pedrotti -4) Radiometry is measurement of Emag radiation (light) Consider a small spherical source Total energy radiating from the body over some time is Q total Radiant

More information

Unit 3: Chapter 5. Reflection

Unit 3: Chapter 5. Reflection Unit 3: Chapter 5 Reflection The Law of Reflection To show how light is reflected from a solid surface, we can use ray diagrams. A ray diagram has 5 main components: this is the incoming ray that will

More information

CS354 Computer Graphics Rotations and Quaternions

CS354 Computer Graphics Rotations and Quaternions Slide Credit: Don Fussell CS354 Computer Graphics Rotations and Quaternions Qixing Huang April 4th 2018 Orientation Position and Orientation The position of an object can be represented as a translation

More information

Topics for the TKR Software Review Tracy Usher, Leon Rochester

Topics for the TKR Software Review Tracy Usher, Leon Rochester Topics for the TKR Software Review Tracy Usher, Leon Rochester Progress in reconstruction Reconstruction short-term plans Simulation Calibration issues Balloon-specific support Personnel and Schedule TKR

More information

PANDORA: AN OBJECT-ORIENTED EVENT GENERATOR FOR LINEAR COLLIDER PHYSICS MICHAEL E. PESKIN Stanford Linear Accelerator Center Stanford University, Stan

PANDORA: AN OBJECT-ORIENTED EVENT GENERATOR FOR LINEAR COLLIDER PHYSICS MICHAEL E. PESKIN Stanford Linear Accelerator Center Stanford University, Stan SLAC-PUB-8290 October 1999 Pandora: an Object-Oriented Event Generator for Linear Collider Physics Michael E. Peskin a Stanford Linear Accelerator Center Stanford University, Stanford, California 94309

More information

Visualisation and (G)UI.

Visualisation and (G)UI. Visualisation and (G)UI http://geant4.cern.ch PART I Geant4 visualisation 1. Introduction Geant4 Visualisation must respond to varieties of user requirements Quick response to survey successive events

More information

A Scenic tour of C++ Dietrich Liko. Dietrich Liko

A Scenic tour of C++ Dietrich Liko. Dietrich Liko A Scenic tour of C++ A tour of the world... We will visit many places We will stay only short You will get an overview If you want to know these places better, you will have to visit them yourself afterwards

More information

The geometry of reflection and refraction Wave conversion and reflection coefficient

The geometry of reflection and refraction Wave conversion and reflection coefficient 7.2.2 Reflection and Refraction The geometry of reflection and refraction Wave conversion and reflection coefficient The geometry of reflection and refraction A wave incident on a boundary separating two

More information

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture CS 475 / CS 675 Computer Graphics Lecture 11 : Texture Texture Add surface detail Paste a photograph over a surface to provide detail. Texture can change surface colour or modulate surface colour. http://en.wikipedia.org/wiki/uv_mapping

More information