Maria Grazia Pia, INFN Genova Maria Grazia Pia INFN Genova Salamanca, 15-19 July 2002

Slides:



Advertisements
Similar presentations
Maria Grazia Pia, INFN Genova 1 Part IV Geant4 results.
Advertisements

The Geant4 Kernel: Status and Recent Developments John Apostolakis, Gabriele Cosmo – CERN / PH Makoto Asai – SLAC On behalf the Geant4 collaboration April.
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Maria Grazia Pia, INFN Genova Maria Grazia Pia INFN Genova, Italy Advanced software engineering in simulation development and.
Maria Grazia Pia, INFN Genova 1 Part V The lesson learned Summary and conclusions.
Other GEANT4 capabilities Event biasing Parameterisation (fast simulation) Persistency Parallelisation and integration in a distributed computing environment.
1 Software & Grid Middleware for Tier 2 Centers Rob Gardner Indiana University DOE/NSF Review of U.S. ATLAS and CMS Computing Projects Brookhaven National.
Introduction to Geant4 Part I – General Introduction Makoto Asai (SLAC) Takashi Sasaki (KEK) March 22 nd, NIRS.
GEANT4 Introduction, History Geant4 User’s Workshop February 2002.
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
Maria Grazia Pia, INFN Genova CERN, 26 July 2004 Background of the Project.
1 M.G. Pia et al. The application of GEANT4 simulation code for brachytherapy treatment Maria Grazia Pia INFN Genova, Italy and CERN/IT
Budker Inst. of Physics IHEP Protvino MEPHI Moscow Pittsburg University.
Maria Grazia Pia, INFN Genova Software Process: Physics Maria Grazia Pia INFN Genova on behalf of the Geant4 Collaboration Budker Inst. of Physics IHEP.
Introduzione al Software di CMS N. Amapane. Nicola AmapaneTorino, Aprile Outline CMS Software projects The framework: overview Finding more.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
A Short Course on Geant4 Simulation Toolkit Introduction
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
OOAD… LowE Electrons From HEP computing to medical research and vice versa Bidirectional From HEP computing to medical research and vice versa Bidirectional.
Maria Grazia Pia, INFN Genova Test & Analysis Project aka “statistical testing” Maria Grazia Pia, INFN Genova on behalf of the T&A team
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
Maria Grazia Pia, INFN Genova 1 Part II Software engineering Geant4 rigorous approach to software.
5 May 98 1 Jürgen Knobloch Computing Planning for ATLAS ATLAS Software Week 5 May 1998 Jürgen Knobloch Slides also on:
Geant4 Space User Workshop 2004 Maria Grazia Pia, INFN Genova Proposal of a Space Radiation Environment Generator interfaced to Geant4 S. Guatelli 1, P.
Systems Analysis and Design in a Changing World, Fourth Edition
Maria Grazia Pia, INFN Genova Training Genova 2-6 July 2001 Maria Grazia Pia INFN Genova.
Atlas Simulation Activities What is Geant 4 Atlas Strategy.
User Application Luciano Pandola INFN-LNGS Partially based on a presentation by Maria Grazia Pia (INFN-Ge)
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Detector Simulation Presentation # 3 Nafisa Tasneem CHEP,KNU  How to do HEP experiment  What is detector simulation?
A Short Course on Geant4 Simulation Toolkit Introduction
SEAL Core Libraries and Services CLHEP Workshop 28 January 2003 P. Mato / CERN Shared Environment for Applications at LHC.
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
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.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
Geant4 Training 2006 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki Institute of Physics)
Maria Grazia Pia, INFN Genova Statistics Toolkit Project Maria Grazia Pia, INFN Genova AIDA Workshop.
Computing R&D and Milestones LHCb Plenary June 18th, 1998 These slides are on WWW at:
Maria Grazia Pia Hands-on exercises Unit 2 Modelling the experimental set-up.
Meghe Group of Institutions Department for Technology Enhanced Learning 1.
Maria Grazia Pia, INFN Genova 1 Part I The motivations for Geant4.
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.
Maria Grazia Pia, INFN Genova - G4 WG Coord. Meeting, 13/11/2001 ow Energy Electromagnetic Physics ow Energy Electromagnetic Physics New physics features.
Follow-up to SFT Review (2009/2010) Priorities and Organization for 2011 and 2012.
Maria Grazia Pia, INFN Genova Advanced Examples Maria Grazia Pia, INFN Genova on behalf of the LowE/advanced examples WG
Geant4 Training 2003 A Short Course on Geant4 Simulation Toolkit How to learn more? The full set of lecture notes of this Geant4.
VI/ CERN Dec 4 CMS Software Architecture vs Hybrid Store Vincenzo Innocente CMS Week CERN, Dec
A Short Course on Geant4 Simulation Toolkit Introduction
A Short Course on Geant4 Simulation Toolkit Introduction
Gunter Folger / CERN MC-PAD, DESY/Hamburg Jan 2010
Simulation Project Structure and tasks
Basics of a user application
G.A.P.Cirrone, S.E.Mazzaglia - INFN/LNS, Italy
Gamma Ray Satellites Simulations with Geant4
Software Installation
Other GEANT4 capabilities
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?
Software engineering Geant4 rigorous approach to software
Radiation damage at cellular and DNA level
Use of GEANT4 in CMS The OSCAR Project
Data analysis in HEP: a statistical toolkit
Presentation transcript:

Maria Grazia Pia, INFN Genova Maria Grazia Pia INFN Genova Salamanca, July Introduction

Maria Grazia Pia, INFN Genova The role of simulation Simulation plays a fundamental role in various domains and phases of an experimental physics project –design of the experimental set-up –evaluation and definition of the potential physics output of the project –evaluation of potential risks to the project –assessment of the performance of the experiment –development, test and optimisation of reconstruction and physics analysis software –contribution to the calculation and validation of physics results simulation of the passage of particles through matter The scope of these lectures (and of Geant4) encompasses the simulation of the passage of particles through matter –there are other kinds of simulation components, such as physics event generators, electronics response generation, etc. –often the simulation of a complex experiment consists of several of these components interfaced to one another

Maria Grazia Pia, INFN Genova Domains of application HEP, nuclear, astrophysics and astro-particle physics experiments –the most “traditional” field of application Radiation background studies –evaluation of safety constraints and shielding for the experimental apparatus and human beings Medical applications –radiotherapy –radiodiagnostics Biological applications –radiation damage (in human beings, food etc.) Space applications –Radiation and biological damage to equipment and astronauts

Maria Grazia Pia, INFN Genova Basic requirements Modeling the experimental set-up Tracking particles through matter Interaction of particles with matter Modeling the detector response Run and event control Accessory utilities (random number generators, PDG particle information etc.) Interface to event generators Visualisation of the set-up, tracks and hits User interface Persistency

Maria Grazia Pia, INFN Genova Geant4 development Requirements R&D phase Production phase

Maria Grazia Pia, INFN Genova The historical background Geant is a simulation tool, that provides a general infrastructure for –the description of geometry and materials –particle transport and interaction with matter –the description of detector response –visualisation of geometries, tracks and hits The user develops specific code for –the primary event generator –the geometrical description of the set-up –the digitisation of the detector response Geant3 –has been used by most HEP experiments –used also in nuclear physics experiments, medical physics, radiation background studies, space applications etc. –frozen since March 1994 (Geant3.21) –~200K lines of code –equivalent of ~50 man-years, along 15 years The result is a complex system –because its problem domain is complex –because it requires flexibility for a variety of applications –because its management and maintenance are complex It was not self-sufficient –hadronic physics is not native, it is handled through the interface to external packages

Maria Grazia Pia, INFN Genova New simulation requirements Very high statistics to be simulated –robustness and reliability for large scale production Exchange of CAD detector descriptions Transparent physics for experimental validation Physics extensions to high energies –LHC, cosmic ray experiments... Physics extensions to low energies –space science, astrophysics, medical physics, nuclear and atomic physics... Reliable hadronic physics –not only for calorimetry, but also for PID applications (CP violation experiments)...etc. User requirements formally collected and coded according to PSS05 Geant4 URD

Maria Grazia Pia, INFN Genova The environment: the last 25 years WWW Start SPS 1976 W and Z observed 1983 Start LEP 1989 WWW End LEP 2000

Maria Grazia Pia, INFN Genova Toolkit approach components A toolkit is a set of compatible components specialised each component is specialised for a specific functionality refined each component can be refined independently to a great detail integrated components can be integrated at any degree of complexity alternative it is easy to provide (and use) alternative components customised the simulation application can be customised by the user according to his/her needs maintenance evolution maintenance and evolution - both of the components and of the user application - is greatly facilitated Openness to extension and evolution polymorfism dynamic binding thanks to polymorfism and dynamic binding, new implementations (models, algorithms etc.) can be added without changing the existing code Robustness and ease of maintenance encapsulation thanks to encapsulation, objects have crisp boundaries minimisation of coupling, through well defined protocols and dependencies OO technology Strategic vision

Maria Grazia Pia, INFN Genova RD44 Milestone: end 1995 –OO methodology, problem domain analysis, full OOAD –tracking prototype, performance evaluation Milestone: spring 1997 –  -release with same functionality as Geant 3.21 –persistency (hits), ODBMS –transparency of physics models Milestone: July 1998 –public  -release Milestone: end 1998 –production release: Geant4 0.0 – end of RD44 Approved as R&D at CERN, end 1994 – > 100 physicists and software engineers – ~ 40 institutes, international collaboration – responded to DRCC/LCB Since January 1999: International Geant4 Collaboration 2 Geant4 releases/year

Maria Grazia Pia, INFN Genova Geant4 Collaboration Atlas, BaBar, CMS, HARP, LHCB CERN, JNL, KEK, SLAC, TRIUMF ESA, INFN, IN2P3, PPARC Frankfurt, Barcelona, Karolinska, Lebedev COMMON (Serpukov, Novosibirsk, Pittsburg, Northeastern, Helsinki, TERA etc.) Collaboration Board –manages resources and responsibilities Technical Steering Board –manages scientific and technical matters Working Groups –do maintenance, development, QA, etc. Members of National Institutes, Laboratories and Experiments participating acquire the right to the Production Service and User Support For others: free code and user support on best effort basis Budker Inst. of Physics IHEP Protvino MEPHI Moscow Pittsburg University MoU based Distribution, Development and User Support of Geant4

Maria Grazia Pia, INFN Genova What is ? OO Toolkit for the simulation of next generation HEP detectors –...of the current generation too –...not only of HEP detectors –already used also in nuclear physics, medical physics, astrophysics, space applications, radiation background studies etc. distributed software production and management large international collaboration It is also an experiment of distributed software production and management, as a large international collaboration with the participation of various experiments, labs and institutes rigorous software engineering methodologies Object Oriented technologies It is also an experiment of application of rigorous software engineering methodologies and Object Oriented technologies to the HEP environment

Maria Grazia Pia, INFN Genova The kit Code –~1M lines of code –continuously growing –publicly downloadable from the webDocumentation –6 manuals –publicly available from the webExamples –distributed with the code –navigation between documentation and examples code –various complete applications of (simplified) real-life experimental set-ups Platforms –Linux, SUN (DEC, HP) –Windows-NT: Visual C++ Commercial software –none required –can be interfaced Free software –CVS –gmake, g++ –CLHEP Graphics & (G)UI –OpenGL, OpenInventor, DAWN, VRML... –OPACS, GAG, MOMO...Persistency –it is possible to run in transient mode –in persistent mode use a HepDB interface, ODMG standard 13

Maria Grazia Pia, INFN Genova User support The Geant4 User Support covers the –provision of help and analysis of code-related problems –the consultancy –the requests for enhancement or new developments –the investigation of anomalous results The User Support is provided by the Geant4 Collaboration –See Geant4 web for details

Maria Grazia Pia, INFN Genova The foundation What characterizes Geant4 Or: the fundamental concepts, which all the rest is built upon

Maria Grazia Pia, INFN Genova Physics From the Minutes of LCB (LHCC Computing Board) meeting on 21 October, 1997: “It was noted that experiments have requirements for independent, alternative physics models. In Geant4 these models, differently from the concept of packages, allow the user to understand how the results are produced, and hence improve the physics validation. Geant4 is developed with a modular architecture and is the ideal framework where existing components are integrated and new models continue to be developed.”

Maria Grazia Pia, INFN Genova Domain decomposition hierarchical structure of sub-domains Geant4 architecture Uni-directional flow of dependencies Interface to external products w/o dependencies Software Engineering plays a fundamental role in Geant4 User Requirements formally collected systematically updated PSS-05 standard Software Process spiral iterative approach regular assessments and improvements (SPI process) monitored following the ISO model Quality Assurance commercial tools code inspections automatic checks of coding guidelines testing procedures at unit and integration level dedicated testing team Object Oriented methods OOAD use of CASE tools openness to extension and evolution contribute to the transparency of physics interface to external software without dependencies Use of Standards de jure and de facto

Maria Grazia Pia, INFN Genova Basic concepts (to be detailed in the following lectures) Overview of the functionalities Kernel System of units

Maria Grazia Pia, INFN Genova The kernel Run and event – multiple events possibility to handle the pile-up –multiple runs in the same job with different geometries, materials etc. –powerful stacking mechanism three levels by default: handle trigger studies, loopers etcTracking –decoupled from physics: all processes handled through the same abstract interface –tracking is independent from particle type –it is possible to add new physics processes without affecting the tracking

Maria Grazia Pia, INFN Genova Description of the experimental set-up Materials –Different kinds of materials can be defined Modeling the detectors –Geometry –Electric and magnetic field Detector response –Read-out geometry –Hits –Digits

Maria Grazia Pia, INFN Genova Physics Generating primary particles –Interface to Event Generators –Utilities provided within the Geant4 Toolkit Physics interactions –Processes –Electromagnetic physics standard, low energy, muons, optical –Hadronic physics parameterised and theoretical models Particles –all PDG data –and more, for specific Geant4 use, like ions

Maria Grazia Pia, INFN Genova User classes Initialization classes Invoked at the initialization G4VUserDetectorConstruction G4VUserPhysicsList Action classes Invoked during the execution loop G4VUserPrimaryGeneratorAction G4UserRunAction G4UserEventAction G4UserStackingAction G4UserTrackingAction G4UserSteppingAction Mandatory classes: G4VUserDetectorConstruction describe the experimental set-up G4VUserPhysicsList select the physics you want to activate G4VUserPrimaryGeneratorAction generate primary events

Maria Grazia Pia, INFN Genova Initialisation

Maria Grazia Pia, INFN Genova Beam On

Maria Grazia Pia, INFN Genova Event processing

Maria Grazia Pia, INFN Genova Interface to external tools in Geant4 Similar approach Visualisation (G)UI Persistency Analysis Anaphe

Maria Grazia Pia, INFN Genova Special modes Fast simulation –Geant4 allows to perform full and fast simulation in the same environment parameterisation process –The parameterisation process produces a direct detector response, from the knowledge of particle and volume properties Event biasing –Various variance reduction techniques available Will not be covered in the following lectures Documented in User Guide for Application Developers

Maria Grazia Pia, INFN Genova This week’s programme Morning –Monday-Thursday: Lectures on the basic features of Geant4 –Friday: usage of Geant4 Afternoon: hands-on exercises –Monday: Geant4 installation, how to run a novice example –Tuesday-Wednesday: Brachytherapy advanced example Exercise materials, geometry, primary generator, UI, hits, histogramming –Thursday-Friday: CSC exercise Build a simple detector by yourself