S. Guatelli, M.G Pia, INFN Genova S. Guatelli ( CERN, INFN Genova ) CERN, 13 November 2002 Users Workshop Where to put analysis in Geant4 Applications.

Slides:



Advertisements
Similar presentations
Maria Grazia Pia Geant4 LowE Workshop 30-31/5/2002 ow Energy e.m. Workshop CERN, May 2002.
Advertisements

IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Maria Grazia Pia, INFN Genova Low Energy Electromagnetic Physics Maria Grazia Pia INFN Genova on behalf of the Low Energy Electromagnetic WG Geant4 Workshop.
A general purpose dosimetric system for brachytherapy
Offline Code for Next Beam Test Jianchun Wang 08/06/01.
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002 Getting Started.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
Primary particle generation Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002.
Makoto Asai (SLAC) Geant4 Users CERN Nov. 11 th, 2002 Getting Started.
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002 Getting Started.
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
Susanna GuatelliGeant4 Workshop 2004 Use of Analysis Tools Geant4 Workshop 2004, Catania Susanna Guatelli, INFN Genova.
1 M.G. Pia et al. The application of GEANT4 simulation code for brachytherapy treatment Maria Grazia Pia INFN Genova, Italy and CERN/IT
The brachytherapy advanced example Susanna Guatelli (CERN/INFN)
parameterisation The aim of the exercise is again to build a lead-scintillator calorimeter, this time though the calorimeter will be a trapezoid.
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
S. Guatelli, CPS Innovations, Knoxville, 13 th -21 st January Brachytherapy exercise.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
Geant4 Training 2003 Basic structure of the Geant4 Simulation Toolkit The full set of lecture notes of this Geant4 Course is available.
A General Purpose Brachytherapy Software Simulation + Analysis (isodose calculation) 2/10/2002 Geant4 Workshop CERN Susanna Guatelli Univ. and INFN Genova.
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
S. Guatelli, M.G Pia, INFN Genova G. Cosmo, S. Guatelli, M.G Pia Salamanca, July 2002
Geant4 internal Classes and Objects Gunter Folger / CERN Geant4 course, Annecy 2008 User Action & Information Classes.
Maria Grazia Pia, INFN Genova Introduction to medical physics applications Maria Grazia Pia, INFN Genova Geant4 Workshop,
User Application Luciano Pandola INFN-LNGS Partially based on a presentation by Maria Grazia Pia (INFN-Ge)
Alex Howard - Event Biasing Geant4 Users - Lisbon Event biasing and Variance Reduction - Geometrical Alex Howard, CERN Geant4 Users Workshop, Lisbon.
Geant4 internal Classes and Objects Geant4 Users’ Tutorial February 2010 Gunter Folger / CERN User Action & Information Classes.
1 Calorimeter in G4MICE Berkeley 10 Feb 2005 Rikard Sandström Geneva University.
Maria Grazia Pia INFN Genova Salamanca, July 2002
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)
Architecture team and Inter-category design/interface Makoto Asai (SLAC) 10/Oct/2002 Geant4 delta-review.
Maria Grazia Pia Hands-on exercises Unit 2 Modelling the experimental set-up.
Makoto Asai (SLAC) Getting Started MGP: added class diagram of basic user application.
Susanna Guatelli Geant4 in a Distributed Computing Environment S. Guatelli 1, P. Mendez Lorenzo 2, J. Moscicki 2, M.G. Pia 1 1. INFN Genova, Italy, 2.
Geant4 Training 2004 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Giuseppe Daquino (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki.
AIDA Workshop, 3/6/2002S. Guatelli Overview of AIDA in Geant4 bio-medical applications A collection of contributions from various user groups AIDA Workshop.
Maria Grazia Pia, INFN Genova - G4 WG Coord. Meeting, 13/11/2001 ow Energy Electromagnetic Physics ow Energy Electromagnetic Physics New physics features.
Maria Grazia Pia, INFN Genova Advanced Examples Maria Grazia Pia, INFN Genova on behalf of the LowE/advanced examples WG
Alex Howard, CERN Slide 1 Simulating Dark Matter Detectors (a.k.a. DMX Underground Advanced Example) 1.Dark Matter detectors 2.Implementation within Geant4.
Maria Grazia Pia Retrieving information from kernel Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
Monthly video-conference, 18/12/2003 P.Hristov1 Preparation for physics data challenge'04 P.Hristov Alice monthly off-line video-conference December 18,
Workshop Geant4 Presentation September 14 th, 2007 FASTRAD V3.
Unit 4 Retrieving information from the simulation
Interaction with the Geant4 kernel
J. Apostolakis, M. Asai, G. Cosmo, A. Howard
Interaction with the Geant4 kernel
Basics of a user application
(CMS GEANT4 simulation)
Geant4:User Actions and Analysis
F. Foppiano, S. Guatelli, B. Mascialino, M. G. Pia, M. Piergentili
Makoto Asai (SLAC) Geant4 Users CERN Nov. 11th, 2002
Low Energy Electromagnetic Physics
Introduction to medical physics applications
Gamma Ray Satellites Simulations with Geant4
The n-3He Simulation Using Geant4
Introductory Course PTB, Braunschweig, June 2009
Short Course Siena, 5-6 October 2006
The Hadrontherapy Geant4 advanced example
Read-out and detector response
Introductory Course ORNL, May 2008
The n-3He Simulation Using Geant4
Short Course IEEE NSS/MIC 2003 Katsuya Amako (KEK) Makoto Asai (SLAC)
GAMOS tutorial Plug-in’s Exercises
Advanced Examples Alex Howard, Imperial College, UK
Kernel Author: Makoto Asai.
The Geant4 Hadrontherapy Advanced Example
Simulation in Experiments searching for rare events
Presentation transcript:

S. Guatelli, M.G Pia, INFN Genova S. Guatelli ( CERN, INFN Genova ) CERN, 13 November 2002 Users Workshop Where to put analysis in Geant4 Applications With the help of Geant 4 examples! Useful links : UsersGuides/UsersGuides/ForApplicationDeveloper/html/index.html

S. Guatelli, M.G Pia, INFN Genova I will show: 1. Which Geant4 User classes are suited for : Book histograms and ntuples Fill histograms and ntuples Store histograms and ntuple in a file 2. Examples and results of analysis in Geant 4 Applications

S. Guatelli, M.G Pia, INFN Genova Mandatory user classes  Management of Physical Processes  Management of Primary Particles  Management of the Geometry The user must override their methods to build up a smulation!

S. Guatelli, M.G Pia, INFN Genova Optional User Action Run Action Track Stepping Action Event Action

S. Guatelli, M.G Pia, INFN Genova

Run Action A run is a collection of events that share a common beam and a detector  the detector geometry  the set up of sensitive detectors  the physics processes Within a run, you should keep unchanged G4UserRunAction user action : class from which you can derive your own concrete class RunAction Method beginOfRunAction() invoked at the very end of the beamOn() endOfRunAction() invoked at the beginning of the beamOn() What you can do set a run identification number book histograms set run specific conditions of the sensitive detectors store/print histograms manipulate run summaries Method What you can do

S. Guatelli, M.G Pia, INFN Genova Event action Management of the events in terms of tracks of the particles  hits collections  particle tracking  energy deposit EndOfEvent Action Method Visualisation of the tracks Eg. information about

S. Guatelli, M.G Pia, INFN Genova Stepping Action PERFORMANCE TIP ! Avoid stepping action if possible and use hits and tracking action.  G4Step Delta of position / time between Pre and PostStepPoint  Step length  Total energy deposited during the step information of the final status of a particle after the completion of a step for example: transient information of the step Tracking Action for example:  Position  kinetic energy  trackID number

S. Guatelli, M.G Pia, INFN Genova Brachytherapy example: analysis with AIDA

S. Guatelli, M.G Pia, INFN Genova How to build the analysis in a Geant4 Application 1.Management of ntuple and histograms 2.Create the file to store the data 3.Book histos and ntples From brachytherapy example

S. Guatelli, M.G Pia, INFN Genova 4. Fill histograms and ntuples 5. Method Finish() Close histo and ntuple Close the file How to build the analysis in a Geant4 Application From brachytherapy example

S. Guatelli, M.G Pia, INFN Genova At the beginning of the BeamOn() Run Action: Management of the Analysis At the end of the BeamOn() 1.open the file 2.create the ntuple and the histograms  Book  Finish 1.close the ntuples and histos 2.close the file From brachytherapy example

S. Guatelli, M.G Pia, INFN Genova Information about energy deposit 1.Gets the information about the energy deposit from the Hits Collection Example 1 In the Event Action From brachytherapy example

S. Guatelli, M.G Pia, INFN Genova Example 1 3. Gets information of: Energy deposit Spatial coordinates 4. A histogram and a ntuple are filled with energy deposit Now everything is ok ! From brachytherapy example

S. Guatelli, M.G Pia, INFN Genova Storage of the energy deposit in a ntuple you can select the energy deposit in planes and represent them in histograms Geometric set-up Brachytherapy example

S. Guatelli, M.G Pia, INFN Genova Example of a result Simulation of a radioactive source The energy deposit fills a 2Dhistogram …… Elaboration of the data stored 0.16 mGy =100% Isodose curves Geometric set-up From brachytherapy example

S. Guatelli, M.G Pia, INFN Genova Example 2 Histogram of the initial energy of primary particles The information is stored in 1D histo is stored in 1D histo Result From brachytherapy example In the Primary Action Primary particle energy Primary particle energy

S. Guatelli, M.G Pia, INFN Genova Example 3 range 1. Particle position when the kinetic energy is zero 3. The information is stored in 1D histo is stored in 1D histo 2. range e- range test S. Guatelli, V. Ivantchenko In the Stepping Action

S. Guatelli, M.G Pia, INFN Genova Result Example 3 e- range test S. Guatelli, V. Ivantchenko Range