Maria Grazia Pia, INFN Genova New techniques in Monte Carlo simulation: experience with a prototype of generic programming application to Geant4 physics.

Slides:



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

Maria Grazia Pia, INFN Genova and CERN1 An OO model for intra-nuclear transport Maria Grazia Pia L. Bellagamba, A. Brunengo, E. Di Salvo for the Geant4.
Maria Grazia Pia, INFN Genova Test & Analysis Project Maria Grazia Pia, INFN Genova on behalf of the T&A team
Maria Grazia Pia, INFN Genova Epistemic and systematic uncertainties in Monte Carlo simulation: Epistemic and systematic uncertainties in Monte Carlo simulation:
Maria Grazia Pia, INFN Genova Conceptual challenges and computational progress in X-ray simulation Maria Grazia Pia INFN Genova, Italy Maria Grazia Pia.
Maria Grazia Pia, INFN Genova 1 Publication patterns in HEP computing M. G. Pia 1, T. Basaglia 2, Z. W. Bell 3, P. V. Dressendorfer 4 1 INFN Genova, Genova,
1 COMPARISON BETWEEN PLATO ISODOSE DISTRIBUTION OF A 192 IR SOURCE AND THOSE SIMULATED WITH GEANT4 TOOLKIT F. Foppiano 1, S. Agostinelli 1, S. Garelli.
Precision validation of Geant4 electromagnetic physics Katsuya Amako, Susanna Guatelli, Vladimir Ivanchenko, Michel Maire, Barbara Mascialino, Koichi Murakami,
Maria Grazia Pia IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst.
Maria Grazia Pia, INFN Genova Maria Grazia Pia INFN Genova, Italy Advanced software engineering in simulation development and.
Maria Grazia Pia, INFN Genova PhysicsLists in Geant4 Advanced Examples Geant4.
Maria Grazia Pia, INFN Genova Design and performance evaluation of generic programming techniques in a R&D prototype of Geant4 physics CHEP 2009 Prague,
Maria Grazia Pia, INFN Genova Atomic Relaxation Models A. Mantero, B. Mascialino, Maria Grazia Pia INFN Genova, Italy P. Nieminen ESA/ESTEC
Hee Seo, Chan-Hyeung Kim, Lorenzo Moneta, Maria Grazia Pia Hanyang Univ. (Korea), INFN Genova (Italy), CERN (Switzerland) 18 October 2010 Design, development.
Maria Grazia Pia, INFN Genova 1 Part V The lesson learned Summary and conclusions.
Geant4-Genova Group Validation of Susanna Guatelli, Alfonso Mantero, Barbara Mascialino, Maria Grazia Pia, Valentina Zampichelli INFN Genova, Italy IEEE.
Max-Planck-Institut für extraterrestrische Physik and Halbleiterlabor, Germany Space Sciences Lab., UC Berkeley, USA CNES, Toulouse, France INFN Genova.
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
Maria Grazia Pia, INFN Genova Low Energy Electromagnetic Physics Maria Grazia Pia INFN Genova
Maria Grazia Pia, INFN Genova – CHEP 2001 ow Energy Electromagnetic Physics ow Energy Electromagnetic Physics S. Chauvie,G. Depaola, F. Longo, V. Ivanchenko,
Validation of the Bremsstrahlung models Susanna Guatelli, Barbara Mascialino, Luciano Pandola, Maria Grazia Pia, Pedro Rodrigues, Andreia Trindade IEEE.
Maria Grazia Pia Systematic validation of Geant4 electromagnetic and hadronic models against proton data Systematic validation of Geant4 electromagnetic.
Budker Inst. of Physics IHEP Protvino MEPHI Moscow Pittsburg University.
Maria Grazia Pia, INFN Genova and CERN1 Geant4 Hadron Kinetic Model for intra-nuclear transport Maria Grazia Pia CERN/IT and INFN, Sezione di Genova L.Bellagamba.
Geant4-DNA Physics models
Physics data management tools: computational evolutions and benchmarks Mincheol Han 1, Chan-Hyeung Kim 1, Lorenzo Moneta 2, Maria Grazia Pia 3, Hee Seo.
Maria Grazia Pia, INFN Genova Software Process: Physics Maria Grazia Pia INFN Genova on behalf of the Geant4 Collaboration Budker Inst. of Physics IHEP.
P. Saracco, M.G. Pia, INFN Genova An exact framework for Uncertainty Quantification in Monte Carlo simulation CHEP 2013 Amsterdam, October 2013 Paolo.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
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
Maria Grazia Pia, INFN Genova 1 Publication patterns in HEP computing M. G. Pia 1, T. Basaglia 2, Z. W. Bell 3, P. V. Dressendorfer 4 1 INFN Genova, Genova,
Riccardo Capra 1, Stéphane Chauvie 2, Ziad Francis 3, Sebastien Incerti 4, Barbara Mascialino 1, Gerard Montarou 3, Philippe Moretto 4, Petteri Nieminen.
Maria Grazia Pia, INFN Genova Statistical Toolkit Recent updates M.G. Pia B. Mascialino, A. Pfeiffer, M.G. Pia, A. Ribon, P. Viarengo
Maria Grazia Pia, INFN Genova New Physics Data Libraries for Monte Carlo Transport Maria Grazia Pia 1, Lina Quintieri 2, Mauro Augelli 3, Steffen Hauf.
Susanna Guatelli & Barbara Mascialino G.A.P. Cirrone (INFN LNS), G. Cuttone (INFN LNS), S. Donadio (INFN,Genova), S. Guatelli (INFN Genova), M. Maire (LAPP),
Geant4 Space User Workshop 2004 Maria Grazia Pia, INFN Genova Proposal of a Space Radiation Environment Generator interfaced to Geant4 S. Guatelli 1, P.
Maria Grazia Pia, INFN Genova Introduction to medical physics applications Maria Grazia Pia, INFN Genova Geant4 Workshop,
Maria Grazia Pia, INFN Genova 1 New models for PIXE simulation with Geant4 CHEP 2009 Prague, March 2009 Maria Grazia Pia INFN Genova G. Weidenspointner,
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
Maria Grazia Pia, INFN Genova New rchitectural design for vel experimental domains New architectural design for novel experimental domains R&D on simulation.
Precision Validation of Geant4 Electromagnetic Physics Geant4 DNA Project Meeting 26 July 2004, CERN Michela.
Precision analysis of Geant4 condensed transport effects on energy deposition in detectors M. Batič 1,2, G. Hoff 1,3, M. G. Pia 1 1 INFN Sezione di Genova,
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.
Physics Data Libraries: Content and Algorithms for Improved Monte Carlo Simulation Physics data libraries play an important role in Monte Carlo simulation:
NANO5 – Geant4 related R&D for new particle transport methods M. Augelli, M. Begalli, T. Evans, E. Gargioni, B. Grosswendt, S. Hauf, C. H. Kim, M. Kuster,
John Apostolakis & Makoto Asai for the Geant4 Collaboration 1(Draft) SNA-MC 2010.
Maria Grazia Pia, INFN Genova 1 Part I The motivations for Geant4.
Validation of the bremssrahlung process IV Workshop on Geant4 physics validation Susanna Guatelli, Luciano Pandola, Maria Grazia Pia, Valentina Zampichelli.
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.
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.
Data libraries as a collaborative tool across Monte Carlo codes
Workshop: La radiobiologia dell’INFN Trieste, 7 February 2008
Introduction to medical physics applications
Introductory Course PTB, Braunschweig, June 2009
Hadronic physics validation of Geant4
Short Course Siena, 5-6 October 2006
Introductory Course ORNL, May 2008
Short Course IEEE NSS/MIC 2003 Katsuya Amako (KEK) Makoto Asai (SLAC)
Precision validation of Geant4 electromagnetic physics
G. A. P. Cirrone1, G. Cuttone1, F. Di Rosa1, S. Guatelli1, A
Radiation damage at cellular and DNA level
AN ORIGINAL MODEL FOR THE SIMULATION OF LOW ENERGY ANTIPROTONS
The Geant4 Hadrontherapy Advanced Example
Presentation transcript:

Maria Grazia Pia, INFN Genova New techniques in Monte Carlo simulation: experience with a prototype of generic programming application to Geant4 physics processes SNA + MC 2010 Joint International Conference on Supercomputing in Nuclear Applications + Monte Carlo 2010 Maria Grazia Pia INFN Genova, Italy Maria Grazia Pia 1, Mauro Augelli 2, Marcia Begalli 3, Lina Quintieri 4, Paolo Saracco 1, Manju Sudhakar 1, Georg Weidenspointner 5, Andreas Zoglauer 6 1 INFN Sezione di Genova, Italy – 2 CNES, France 3 State University Rio de Janeiro, Brazil – 4 INFN Laboratori Nazionali di Frascati, Italy 5 MPE and MPI Halbleiterlabor, Germany – 6 University of California at Berkeley, USA

Maria Grazia Pia, INFN Genova Acknowledgments The physics models and original implementations of the physics processes mentioned in this talk derive from Geant4 Standard and Low Energy Electromagnetic packages as in Geant4 9.1 (9.2) Thanks to Sergio Bertolucci (INFN and CERN) Tom Evans (ORNL) Simone Giani (CERN) Alessandro Montanari (INFN Bologna) Andreas Pfeiffer (CERN) for helpful discussions and advice The performance results concerning Compton scattering in Geant4 are published in IEEE NSS 2008 proceedings (F. Longo, L. Pandola and M.G. Pia)

Maria Grazia Pia, INFN Genova Courtesy Borexino Courtesy H. Araujo and A. Howard, IC London ZEPLIN III Courtesy CMS Collaboration Courtesy ATLAS Collaboration Courtesy GATE Collaboration Courtesy R. Nartallo et al.,ESA Widely used also in Space science and astronomy Medical physics, nuclear medicine Radiation protection Accelerator physics Humanitarian projects, security etc. Technology transfer to industry, hospitals… Born from the requirements of large scale HEP experiments Most cited Nuclear Science and Technology publication! > papers since nd most cited CERN/INFN paper Modern classic S. Agostinelli et al. GEANT4 - a simulation toolkit NIM A 506 (2003) GEANT4 - a simulation toolkit

Maria Grazia Pia, INFN Genova Geant4 is a mature Monte Carlo system nowadays Widely used in a variety of experimental applications LHC has entered production phase 1994 – 1998 Pioneering project in HEP environment Cutting-edge technology Rigorous software development methodologies πάντα ε New software technologies have emerged since then Could Geant4 profit from them? New software technologies have emerged since then Could Geant4 profit from them? More than one decades growth since RD44 Could Geant4 be rejuvenated by pruning ? More than one decades growth since RD44 Could Geant4 be rejuvenated by pruning ?

Maria Grazia Pia, INFN Genova Generic programming Powerful paradigm Bringing aspects of generic programming into the mainstream is most likely C++s greatest contribution to the software development community during this period. B. Stroustrup, Proc. 3 rd ACM SIGPLAN Conf. on History of programming languages, 2007 Drawbacks code bloat compiler support poor error messages, cumbersome debugging Explore pro and contra by means of a prototype Small enough to require relatively limited investment Large enough for the exercise to be meaningful Quantitative metrics

Maria Grazia Pia, INFN Genova A policy defines a class or class template interface Policy host classes are parameterised classes Advantages Policies are not required to inherit from a base class The code is bound at compile time No need of virtual methods, resulting in faster execution Policy-based design Syntax-oriented rather than signature-oriented Weak dependency of the policy and the policy based class on the policy interface Highly customizable design First introduced in Geant4 S. Chauvie et al., Geant4 physics processes for microdosimetry simulation: design foundation and implementation of the first set of models IEEE Trans. Nucl. Sci., vol. 54, no. 6, , 2007 R&D! C++ is capable of a Turing machine at two levels Exploit both Mix and match

Maria Grazia Pia, INFN Genova 1 st cycle: propaedeutic exploration R&D on generic programming techniques in Geant4 physics Problem domain analysis Dismount Geant4 physics processes Identify objects subject to mutability Dismount Geant4 physics processes Identify objects subject to mutability Added complexity Deterioration of performance? Side requirements Agility of configuration Transparency Easy verification & validation Agility of configuration Transparency Easy verification & validation Technology Support to requirements UP: iterative and incremental software process

Maria Grazia Pia, INFN Genova Vision 1 st prototype: photon interactions Metrics Software development process Software performance Extension to charged particle interactions Metrics I2: Low Energy Electrons and Photons Design, development and validation of electron ionisation models for nano-scale simulation Evaluation on satellite domains Metrics G3: Information Technology and its Applications Physics data management tools: computational evolutions and benchmarks -testing in concrete use cases Metrics Some of these processes are concurrent

Maria Grazia Pia, INFN Genova

A condition of complete simplicity (Costing not less than everything) T.S. Eliot, Four Quartets (Little Gidding) typedef G4PhotonProcess G4ComptonStandard> Interface: only mandatory inherited pure virtual functions Preliminary Refinements in further design iterations (based on metrics)

Maria Grazia Pia, INFN Genova Minimalism… G4VEMProcess G4VEMModel

Maria Grazia Pia, INFN Genova Compton cross section % difference 2 test NIST Phys. Ref. Data p-value Library Penelope < excluding 1 keV Standard Library-Penelope Si, Z=14 Different scale! Library-Standard Si, Z=14 Different scale! Penelope-Standard Si, Z=14 Different scale! Example: Compton in Si 1 keV – 100 GeV Agility

Maria Grazia Pia, INFN Genova Doppler broadening in Compton scattering Library Penelope Standard final state Generators Si, 40 keV Cs, 400 keV Yes, physics does make sense. And is transparently exposed. Validation on experimental data by Namito et al. There is only the fight to recover what has been lost And found and lost again and again: and now, under conditions That seem unpropitious. T.S. Eliot, Four Quartets (East Coker)

Maria Grazia Pia, INFN Genova Performance improvement (where no improvement is expected) Policy-based designGeant4 9.1Gain C % Si % Cu % W % Move lowenergy-Penelope to Standard package design: ~10% gain, including implementation improvements Source: L. Pandola, Penelope Compton Example: Penelope Compton NO ATTEMPT [yet] TO IMPROVE THE IMPLEMENTATION 40 keV, 10 6 events, Intel Core2 Duo Processor E6420, 2.13 GZ, 4 GB RAM Low Energy – Library: 28% gain with policy-based design Preliminary

Maria Grazia Pia, INFN Genova Metrics Old G4-NIST comparison test 4134 LoC* O(months) CPU+human time Photon cross sections test Test with new design <50 LoC*, O(human minutes) K. Amako et al., Comparison of Geant4 electromagnetic physics models against the NIST reference data IEEE Trans. Nucl. Sci., vol. 52, no. 4, pp , Aug. 2005

Maria Grazia Pia, INFN Genova Adopt best practices, build on existing body of knowledge

Maria Grazia Pia, INFN Genova Physics on a diet The design exposes the physics at very fine granularity Unprecedented opportunity for thorough validation Identification of epistemic uncertainties Similarities and differences among Geant4 models Accuracy Accuracy Computational performance Computational performance Toolkit nature of Geant4: provide a variety of models Replicas of the same physics functionality? Often result of evolution: initially they were different Pruning keeps trees healthier! Cost of maintenance of a complex software system Long time scale of LHC operation (various developers will be retired) Only a fraction of Geant4 physics has documented validation in the literature Strive for simplicity, transparency, agility

Maria Grazia Pia, INFN Genova No charged photons

Maria Grazia Pia, INFN Genova No nostalgia of FORTRAN common block… Encapsulation robustness, transparency G4VEMProcess G4VEMModel

Maria Grazia Pia, INFN Genova src/G4BetheBlochModel.cc: fParticleChange = reinterpret_cast src/G4BetheHeitlerModel.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4BraggIonModel.cc: reinterpret_cast (pParticleChange); src/G4BraggModel.cc: reinterpret_cast (pParticleChange); src/G4eBremsstrahlungModel.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4eBremsstrahlungRelModel.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4eCoulombScatteringModel.cc: reinterpret_cast (pParticleChange); src/G4KleinNishinaCompton.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4MollerBhabhaModel.cc: fParticleChange = reinterpret_cast src/G4MscModel71.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4MultipleScattering71.cc: model = dynamic_cast (SelectModel(e)); src/G4PEEffectModel.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4UrbanMscModel2.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4UrbanMscModel90.cc: fParticleChange = reinterpret_cast (pParticleChange); src/G4UrbanMscModel.cc: fParticleChange = reinterpret_cast (pParticleChange); Design, design, design…

Maria Grazia Pia, INFN Genova The only wisdom we can hope to acquire Is the wisdom of humility: humility is endless. T.S. Eliot, Four Quartets (East Coker) First considerations The technology looks promising for application to a large, complex, computationally intensive physics simulation domain Enormous gain in Transparency Agility Easy verification and validation Maintenance effort Significant performance improvement At a very early stage of the project, still room for further improvement But there is still a long way to go…