17-19 Oct, 2007Geant4 Japan 200717-19 Oct, 2007Geant4 Japan 2007 Geant4 Japan 2007 Geant4 Collaboration KEK/CRC 1.

Slides:



Advertisements
Similar presentations
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Advertisements

IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
User Documents and Examples
Quick Intro to Geant4 Joseph Perl (SLAC/SCCS) G4NAMU AAPM Minneapolis 22 July 2007.
Introduction to Geant4 Part I – General Introduction Makoto Asai (SLAC) Takashi Sasaki (KEK) March 22 nd, NIRS.
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002 Getting Started.
Makoto Asai (SLAC) Geant4 Tutorial Course
Makoto Asai (SLAC) Geant4 Users CERN Nov. 11 th, 2002 Getting Started.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002 Getting Started.
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 20th, 2002 Stack management, Digitization and Pile-up.
Geant4 v9.3p01 Kernel I Makoto Asai (SLAC) Geant4 Tutorial Course.
Development of an Interface for Using EGS4 Physics Processes in Geant4 K.Murakami (KEK) 27/Mar./
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
GEANT4 Introduction, History Geant4 User’s Workshop February 2002.
Makoto Asai (SLAC) Geant4 Users CERN Nov. 13th, 2002 Stack management, Digitization and Pile-up.
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
Geant4 Documentation and User Support Geant4 Users Workshop February 2002 Dennis Wright (SLAC)
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Introduction to Geant4 John Apostolakis (CERN) Geant4 Tutorial LAPP, Nov 2008 Original slides by Makoto Asai (SLAC) Geant4 ver 9.1.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
Marc Verderi - IN2P3 SLAC User's Workshop.1 Introduction G EANT4 has been designed to allow users to implement new processes the kernel will treat as any.
Adding a new process CERN User’s Workshop 13 November 2002 V.Ivanchenko, CERN, Budker Institute for Nuclear Physics Based on presentation of M.Verderi.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Geant4 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
Geant4 Training 2003 Basic structure of the Geant4 Simulation Toolkit The full set of lecture notes of this Geant4 Course is available.
Introduction to Geant4 Makoto Asai (SLAC) Geant4 Tutorial CERN May 25-27, 2005 May 2005, Geant4 v7.0p01.
Basic Structure of the Geant4 Simulation Toolkit
A Short Course on Geant4 Simulation Toolkit How to learn more?
Geant4 internal Classes and Objects Gunter Folger / CERN Geant4 course, Annecy 2008 User Action & Information Classes.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
Detector Simulation Presentation # 3 Nafisa Tasneem CHEP,KNU  How to do HEP experiment  What is detector simulation?
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Geant4 internal Classes and Objects Geant4 Users’ Tutorial February 2010 Gunter Folger / CERN User Action & Information Classes.
A Short Course on Geant4 Simulation Toolkit Introduction
Maria Grazia Pia INFN Genova Salamanca, July 2002
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
Basics of Primary Particle Generation and Tracking Makoto Asai (SLAC) Geant4 Tutorial CERN May 25-27, 2005 May 2005, Geant4 v7.0p01.
Run and Event G4Run and G4RunManager In Geant4, the Run is the largest unit of simulation and it consist of a series of events Within a Run, the detector.
Geant4 Training 2006 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki Institute of Physics)
Makoto Asai (SLAC) Getting Started MGP: added class diagram of basic user application.
17-19 Oct, 2007Geant4 Japan 2007 Geant4 Collaboration KEK/CRC 1.
Geant4 internal Classes and Objects Gunter Folger / CERN MC-PAD, DESY/Hamburg January 2010 User Action & Information Classes.
Geant4 Training 2004 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Giuseppe Daquino (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki.
Maria Grazia Pia, INFN Genova and CERN1 Geant4 highlights of relevance for medical physics applications Maria Grazia Pia INFN Genova and CERN.
Geant4 Training 2003 A Short Course on Geant4 Simulation Toolkit How to learn more? The full set of lecture notes of this Geant4.
A Short Course on Geant4 Simulation Toolkit Introduction
Maria Grazia Pia Retrieving information from kernel Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
Gunter Folger / CERN MC-PAD, DESY/Hamburg Jan 2010
Interaction with the Geant4 kernel
Interaction with the Geant4 kernel
A Short Course on Geant4 Simulation Toolkit How to learn more?
User Documents and Examples I
Basics of a user application
Geant4:User Actions and Analysis
Makoto Asai (SLAC) Geant4 Users CERN Nov. 11th, 2002
G.A.P.Cirrone, S.E.Mazzaglia - INFN/LNS, Italy
Introductory Course PTB, Braunschweig, June 2009
Short Course Siena, 5-6 October 2006
A Short Course on Geant4 Simulation Toolkit Introduction
Introductory Course ORNL, May 2008
A Short Course on Geant4 Simulation Toolkit How to learn more?
Short Course IEEE NSS/MIC 2003 Katsuya Amako (KEK) Makoto Asai (SLAC)
A Short Course on Geant4 Simulation Toolkit How to learn more?
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
Kernel Author: Makoto Asai.
Simulation in Experiments searching for rare events
Presentation transcript:

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan 2007 Geant4 Collaboration KEK/CRC 1

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Introduction Kernel structure User support 2

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 What is Geant4? User applications Basic Concept in Monte Carlo Simulation 3

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan A world-standard toolkit for HEP detector simulation Successor of GEANT3 A successful project to re-design a HEP software using an Object-Oriented approach (C++) for LHC experiments A large degree of functionality and flexibility Many application fields beyond HEP A variety of requirements from HEP experiments, under ground experiments, cosmic ray physics, astrophysics, accelerator engineering, shielding studies, space science and medical applications

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Collaborators also from non- member institutions, including Budker Inst. of Physics IHEP Protvino MEPHI Moscow Pittsburg University Collaborators also from non- member institutions, including Budker Inst. of Physics IHEP Protvino MEPHI Moscow Pittsburg University

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 BaBar at SLAC is pioneer in the use of Geant4 Started in 2000 Simulated events so far Produced at 20 sites in North America and Europe Current average production rate 6.1 x 10 7 events/week 10

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan MAXI ISS Columbus AMS EUSO Bepi Colombo SWIFT LISA Smart-2 ACE INTEGRAL Astro-E2 JWSTGAIA Herschel Cassini GLAST XMM-Newton

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Space Environments and Effects Section

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 General characteristics of detector simulation programs: specifying the geometry of a detector transporting (tracking) particles injected to the detector simulating the particle interactions in matter based on the Monte Carlo technique 19

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 f(x) : probability of not having interaction after a distance x Microscopically, wdx : prob. of having interaction in [x, x+dx] w= N at  : # atoms/unit x cross section =1/w : interaction length / lifetime f(x+dx)= f(x) (1-wdx) f(x)= exp(-x/ ) 20   e-e- Compton scattering

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Interaction Probability in [x, x+dx]: P(x)dx = f(x) wdx P(x) : Probability density function 21 Interaction Point ( x ) can be generated by n = x/  = - ln(r), with r uniform in [0, 1] Interaction Point ( x ) can be generated by n = x/  = - ln(r), with r uniform in [0, 1]

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007  and x are dependent of materials One can define the number of interaction length : n is independent of materials ! In a MC program, sample n at origin of the track (fate) : n = - ln(r) update elapsed n along the track : n = n – d i / i generate an interaction when n = 0 n is managed by each process 22 x x1x1 x2x2 x3x3

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Basic concepts 23

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Analogy to the real HEP experiment / the real world (OO) Run, Event, Track, Step, Step Point XXXManager, XXXUserAction,… DetectorConstruction LogicalVolume, PhysicalVolume, Parameterized, … Primary, Vertex PrimaryGeneratorAction, ParticleGun, … Process At rest, Along Step, Post Step PhysicsList, … ParticleDefinition, Dynamic Particle, … Cut = Production Threshold Sensitive Detector, Hit, Hits Collection Trajectory / Trajectory Point... 24

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Visualization Event Interfaces Particles Run Tracking Processes Intercoms Materials Track Geometry Digits/hits 25

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 G4RunManager class manages processing a run. A run is represented by G4Run class, which has summary results of each run. Within a run, users cannot change detector setup settings of physics processes Conceptually, a run is a collection of “events” (G4Event). G4UserRunAction class is an optional user hook. A run of Geant4 is started by saying “Beam On”. Practically, we call “run beam on” as executing a UI command “/run/beamOn”. At the beginning of a run, geometry is optimized for navigation and cross section tables are calculated according to materials in the geometry. 26

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 An event is the basic unit of simulation. G4EventManager class manages processing an event. At the beginning of processing, primary tracks are generated and pushed into a stack. A track is popped up from the stack one by one and “tracked”. Resulting secondary tracks are also pushed into the stack. When the stack is empty, event processing is over. G4UserEventAction is an optional user hook. G4Event class represents an event. List of primary vertices and particles (as input) Hits and Trajectory collections (as output) 27 Primary Secondary Last-In Fast-Out Track Stack

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan G4RunManager G4Run G4Event G4EventManager G4UserRunAction::BegeinOfRunAction() G4UserEventAction::BegeinOfEventAction() user hook methods run information -run id - # events, etc run information -run id - # events, etc event information - event id - primary vertex, etc event information - event id - primary vertex, etc G4UserRunAction::EndOfRunAction() Manage run flow Manage event loop G4RunManager::BeamOn() G4UserEventAction::EndOfEndAction() Tracking

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 A pair of step points delta information (e.g.  E) A pair of step points delta information (e.g.  E) 29 Primary Vertex Track Step PreStep Point PostStep Point snapshot information e.g. position snapshot information e.g. position Trajectory a collection of trajectory points mainly used for visualization a collection of trajectory points mainly used for visualization Time Line

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Track is a snapshot of a particle. It has physical quantities of current instance only, being updated by steps. No track object persists at the end of event. For recording tracks, use trajectory objects. G4TrackingManager manages processing a track A track is represented by G4Track class. G4UserTrackingAction is an optional user hook. 30

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Step has two points (G4StepPoint, pre-/post- step point) and also “delta” information of a particle energy loss, TOF spent by the step, etc. In case a step is limited by a volume boundary, the post-step point physically stands on the boundary, but logically belongs to the next volume. Boundary processes such as transition radiation or refraction require material information in both volumes G4SteppingManager class manages processing a step a step is represented by G4Step class. G4UserSteppingAction is an optional user hook. 31 PreStep Point PostStep Point Volume-A Volume-B

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 G4Trajectory class copies some of G4Track information. G4TrajectoryPoint class copies some of G4Step information. Track does not keep its trace. G4Trajectory has a collection of G4TrajectoryPoint. Given G4Trajectory/G4TrajectoryPoint objects persist until the end of an event. G4Event has a collection of G4Trajectory objects. /tracking/storeTrajectory must be set to 1. They are mainly used for visualization. 32

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 At the end of each step, the state of a track may be changed. The user can also change the status in UserSteppingAction/UserStackingAction. Statuses shown in blue are artificial, i.e. Geant4 kernel does not set them. fAlive Continue the tracking. fStopButAlive The track has come to zero kinetic energy, but still “AtRest” process to occur. fStopAndKill The track has lost its identity because it has decayed, interacted or gone beyond the world boundary. used for forcedly killing an unnecessary track fKillTrackAndSecondaries Kill the current track and also associated secondaries. fSuspend Suspend processing of the current track and push it and its secondaries to the stack. fPostponeToNextEvent Postpone processing of the current track to the next event. Secondaries are still being processed within the current event. 33

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Step status is attached to G4StepPoint to indicate why that particular step was determined. Use “PostStepPoint” to get the status of this step. “PreStepPoint” has the status of the previous step. fWorldBoundary Step reached the world boundary fGeomBoundary Step is limited by a volume boundary except the world fAtRestDoItProc, fAlongStepDoItProc, fPostStepDoItProc Step is limited by a AtRest, AlongStep or PostStep process fUserDefinedLimit Step is limited by the user Step limit fExclusivelyForcedProc Step is limited by an exclusively forced (e.g. shower parameterization) process fUndefined Step not defined yet If you want to identify the first step in a volume, pick fGeomBoudary status in PreStepPoint. If you want to identify the step getting out of a volume, pick fGeomBoundary status in PostStepPoint. 34

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 has 6 application states. G4State_PreInit Material, Geometry, Particle and/or Physics Process need to be initialized/defined G4State_Idle Ready to start a run G4State_GeomClosed Geometry is optimized and ready to process an event G4State_EventProc An event is processing G4State_Quit (Normal) termination G4State_Abort A fatal exception occurred and program is aborting 35 PreInit Idle EventProc GeomClosed Quit Abort initialize beamOn exit Run (event loop)

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Documentations User support process License 36

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Download from here Reference 37

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Introduction of Geant4 Installation Guide User's Guide: For Application Developers You must read it!! User's Guide: For Toolkit Developers Physics Reference Manual Software Reference Manual 38

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan UsersGuides/InstallationGuide/html/index.html List of required software C++ compiler, CLHEP, GNU make, Geant4 toolkit choices for visualization software How to install on Linux Tips for installing on Windows SLAC team provides a good practical installation guide: In the practical viewpoint, we recommend Geant4 on 39

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan geant4.web.cern.ch/geant4/G4UsersDocuments/ UsersGuides/ForApplicationDeveloper/html/index.html Most important document both for novice & advanced users. Step-by-step tutorial for novice users Describes how to set up and run a simulation application with a lot of example codes You should read this first if you are new to G4. Intended as an overview of the toolkit, not an exhaustive treatment. For more details: Physics Reference Manual Toolkit Developers Guide 40

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan UsersGuides/PhysicsReferenceManual/html/ PhysicsReferenceManual.html Dedicated to the detail description of the physics model used in each Geant4 interaction process. separate physics topics from how to use the toolkit Dedicated to physics models, theories, etc There are no C++ codes. You should read this when you start to wonder what is going on behind the scene. 41

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Search the entire Geant4 source trees by filename (e.g. G4Track.hh) text identifier Source files fully hyper-linked to classes and methods; tells where classes and methods are defined also where they are referenced

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration offers extensive user supports. Technical Forum Users workshops and Tutorial courses HyperNews and mailing list Problem tracking system Daily “private” communications

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 The Technical Forum is open to all interested parties To be held at least 4 times per year The purpose of the forum is to: Achieve, as much as possible, a mutual understanding of the needs and plans of users and developers. Provide the Geant4 Collaboration with the clearest possible understanding of the needs of its users. Promote the exchange of information about physics validation performed by Geant4 Collaborators and Geant4 users. Promote the exchange of information about user support provided by Geant4 Collaborators and Geant4 user communities.

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Users/Collaboration workshops were held. Catania - Oct Bordeaux - Nov.2005 Lisbon - Oct Manchester - Sep Kobe - Sep Local workshops/tutorials were organized various places for different user communities. SLAC/FNAL/ Jefferson : users workshops, tutorials NASA/ESA : space users workshops KEK : users workshops, tutorials IN2P3: tutorials INFN : tutorials IEEE/MIC : tutorials …

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Geant4-HyperNews/index Discuss problems with other users, post questions for experts, etc. 18 forums roughly based on Geant4 categories 4 forums for specific application areas (education, medicine, space, industry) New forums may be requested by users

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Geant4 Problem Tracking System based on Bugzilla Archives and tracks details of problems reported by users and developers 47

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 The two main reference papers for Geant4: Geant4—a simulation toolkit Nuclear Instruments and Methods in Physics Research Section A: Volume 506, Issue 3, 1 July 2003, Pages Geant4 developments and applications Nuclear Science, IEEE Transactions Publication Date: Feb Volume: 53, Issue: 1, Part 2 On page(s):

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 The collaboration presets the Geant4 license. Makes clear the user’s wide-ranging freedom to use, extend or redistribute Geant4, even as part of some for-profit venture. The license was released along with the latest Geant4 release 8.1. Simple enough that you can read and understand it. 49

17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Many types of geometry descriptions CSG solids, BREP and boolean solids Placement, replica, divided, parameterized, reflected and grouped XML description Wide coverage of physics processes EM, hadron, ion, optical photon, decay, shower parameterization event biasing, and your own processes Model mixture of theory-driven, data-driven and parameterized Everything is open to the user Choice of physics processes/models Choice of analysis/user interface/visualization technologies Geant4 is a tool kit, NOT a simulation black box!! 50 Last slide