New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations Marek Gayer, John Apostolakis, Gabriele.

Slides:



Advertisements
Similar presentations
Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Advertisements

Software & Services Group, Developer Products Division Copyright© 2010, Intel Corporation. All rights reserved. *Other brands and names are the property.
Advanced Manufacturing Laboratory Department of Industrial Engineering Sharif University of Technology Session # 8.
Two Methods for Fast Ray-Cast Ambient Occlusion Samuli Laine and Tero Karras NVIDIA Research.
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
Analyzing the Results of a Simulation and Estimating Errors Jason Cooper.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
CS 326A: Motion Planning ai.stanford.edu/~latombe/cs326/2007/index.htm Collision Detection and Distance Computation.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
1//hw Cherniak Software Development Corporation ARM Features Presentation Alacrity Results Management (ARM) Major Feature Description.
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
ROOT: A Data Mining Tool from CERN Arun Tripathi and Ravi Kumar 2008 CAS Ratemaking Seminar on Ratemaking 17 March 2008 Cambridge, Massachusetts.
Sean Grullon with Gary Hill Maximum likelihood reconstruction of events using waveforms.
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
Pattern Matching in DAME using AURA technology Jim Austin, Robert Davis, Bojian Liang, Andy Pasley University of York.
COMPUTER AIDED DESIGN -(CAD)-3
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 23, 2000 William H. Hsu Department.
Unified Solids Marek Gayer, John Apostolakis, Gabriele Cosmo, Andrei Gheata, Jean-Marie Guyader, Tatiana Nikitina CERN PH/SFT The 17 th Geant4 Collaboration.
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
Nick Draper 05/11/2008 Mantid Manipulation and Analysis Toolkit for ISIS data.
Pavel Slavík, Marek Gayer, Frantisek Hrdlicka, Ondrej Kubelka Czech Technical University in Prague Czech Republic 2003 Winter Simulation Conference December.
Detector Simulation on Modern Processors Vectorization of Physics Models Philippe Canal, Soon Yung Jun (FNAL) John Apostolakis, Mihaly Novak, Sandro Wenzel.
Andreas Morsch, CERN EP/AIP CHEP 2003 Simulation in ALICE Andreas Morsch For the ALICE Offline Project 2003 Conference for Computing in High Energy and.
The ALICE Simulation Strategy Andreas Morsch For the ALICE Offline Group Joint STAR/ALICE Offline Meeting Brookhaven National Laboratory, Upton, NY April.
Real-time Graphics for VR Chapter 23. What is it about? In this part of the course we will look at how to render images given the constrains of VR: –we.
Visual Computing Geometric Modelling 1 INFO410 & INFO350 S2 2015
Abstract ESOLID is a computational geometry system that performs boundary evaluation using exact computation. Boundary Evaluation Exact computation Problem.
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
Jump to first page The new ROOT geometry package Andrei Gheata - ALICE Institute of Space Sciences, Bucharest.
Parallelization of likelihood functions for data analysis Alfio Lazzaro CERN openlab Forum on Concurrent Programming Models and Frameworks.
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.
Real-time Simulation and Visualization using Pre-calculated Fluid Simulator States Marek Gayer, Pavel Slavík and František Hrdlička Computer Graphics Group.
CASE (Computer-Aided Software Engineering) Tools Software that is used to support software process activities. Provides software process support by:- –
BREPS & STEP what's up and coming... Gabriele Cosmo CERN - IT/ASD GEANT4 Workshop September, 20th 1999 ESTEC, Noordwijk, The Netherlands.
Mantid Stakeholder Review Nick Draper 01/11/2007.
Shape Tester. What we need? 1) Tests: a)Test individual shapes Correctness and consistency(like original SBT test, OpticalEscape, ShapeChecker) Accuracy(precision.
STATUS OF THE UNIFIED SOLIDS LIBRARY Gabriele Cosmo/CERN Tatiana Nikitina/CERN.
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
In the name of God Computer Graphics. Introduction Modeling techniques modeling techniques managements Some renderings.
Outline  Developments/fixes in the last year  Introduced in release 9.6 and patches  Planned for release 10.0 and ongoing …  Currently under development.
Pre-calculated Fluid Simulator States Tree Marek Gayer and Pavel Slavík C omputer G raphics G roup Department of Computer Science and Engineering Faculty.
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
Modeling and Visualization of Combustion Using Fluid Simulator and Particle Systems Ing. Marek Gayer (supervised by prof. Pavel Slavík) Computer Graphics.
DOSRAD V4 presentation Web:
Current status of the development of the Unified Solids library Marek Gayer CERN PH/SFT.
CERN IT Department CH-1211 Genève 23 Switzerland t CERN Agile Infrastructure Monitoring Pedro Andrade CERN – IT/GT HEPiX Spring 2012.
Solid Modeling Dr. Scott Schaefer.
Meeting with University of Malta| CERN, May 18, 2015 | Predrag Buncic ALICE Computing in Run 2+ P. Buncic 1.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Status of the development of the Unified Solids library Marek Gayer, CERN PH/SFT 2 nd AIDA Annual Meeting, Frascati 2013.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
New features in ROOT geometrical modeller for representing non-ideal geometries René Brun, Federico Carminati, Andrei Gheata, Mihaela Gheata CHEP’06,
A Short Course on Geant4 Simulation Toolkit Introduction
Update on USolids/VecGeom integration in Geant4 Gabriele Cosmo, CERN EP/SFT.
Common Geometry Primitives library WP3 – date
Paul P.H. Wilson UW-Madison Fusion Technology Institute
European Organization for Nuclear Research
Markus Frank CERN/LHCb CHEP2013, Amsterdam, October 14th–18th 2013
HEP detector description supporting the full experiment life cycle
Introduction Goal: Can we reconstruct the energy depositions of the proton in the brain if we are able to reconstruct the photons produced during this.
3D Object Representations
Geometry checking tools
Linear Collider Simulation Tools
A Short Course on Geant4 Simulation Toolkit Introduction
Hierarchical Modeling & Constructive Solid Geometry
Linear Collider Simulation Tools
Presentation transcript:

New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations Marek Gayer, John Apostolakis, Gabriele Cosmo, Andrei Gheata, Jean-Marie Guyader, Tatiana Nikitina CERN PH/SFT The International Conference on Computing in High Energy and Nuclear Physics (CHEP), New York, May 21-25, 2012

Motivations for a common solids library Optimize and guarantee better long-term maintenance of Root and Gean4 solids libraries o A rough estimation indicates that about 70-80% of code investment for the geometry modeler concerns solids, to guarantee the required precision and efficiency in a huge variety of combinations Create a single library of high quality implementations o Starting from what exists today in Geant4 and Root o Adopt a single type for each shape o Create a new Multi-Union solid o Aims to replace solid libraries in Geant4 and Root o Allowing to reach complete conformance to GDML solids schema Create extensive testing suite 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Navigation functionality and library services for each solid Performance critical methods: o Location of point either inside, outside or on surface o Shortest distance to surface for outside points o Shortest distance to surface for inside points o Distance to surface for inside points with given direction o Distance to surface for outside points with given direction o Normal vector for closest surface from given point Additional methods: Bounding Box, Capacity, Volume, Generating points on surface/edge/inside of solid, creating mesh / polyhedra for visualization Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations 5/24/2012

Topics presented next: Testing suite New Multi Union Solid 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Testing Suite Solid Batch Test Optical Escape Data analysis and performance (SBT DAP) Specialized tests (e.g. quick performance scalability test for multi-union) 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Optical Escape Test Optical photons are generated inside a solid Repeatedly bounce on the reflecting inner surface Particles must not escape the solid 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Solids Batch Test (SBT) Points and vectors test o Generating groups of inside, outside and surface points o Testing all distance methods with numerous checks E.g. for each inside random point p, SafetyFromInside(p) must be > 0 Voxels tests o Randomly sized voxels with random inside points Scriptable application, creates logs Extendible C++ framework o Allowing easy addition of new tests 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Data Analysis and Performance (DAP) 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

DAP features Extension of the SBT framework Centred around testing USolids together with existing Geant4 and Root solids Values and their differences from different codes can be compared Constrain: aim to reach similar or better performance in each method The core part of USolids testing Portable: Windows, Linux, Mac Two phases o Sampling phase (generation of data sets, implemented as C++ app.) o Analysis phase (data post-processing, implemented as MATLAB scripts) 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

DAP - DAP - Sampling phase Tests with solids from three libraries: Geant4, Root and USolids Tests with pre-calculated, randomly generated sets of points and vectors Storing of results data sets to disk Measurement of performance Support for batch scripting o Detailed configuration of conditions in the tests o Invoking several tests sequentially Rich debugging possibilities in Visual Studio 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

DAP - DAP - Sampling phase 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

DAP - A DAP - Analysis phase Visualization of scalar and vector data sets and shapes Visual analysis of differences Graphs with comparison of performance and scalability Inspection of values and differences of data sets 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Visualization of scalar and vector data sets 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

3D plots allowing to overview data sets 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

3D visualization of investigated shapes 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Support for regions of data, focusing on sub-parts 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Visual analysis of differences 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Visual analysis of differences in 3D 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Graphs with comparison of performance 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Visualization of scalability performance for specific solids Visualization of scalability performance for specific solids 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Inspection of values and differences of scalar and vector data sets 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

New Multi-Union solid 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Boolean Union solids 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations Existing CSG Boolean solids (Root and Geant4) represented as binary trees o To solve navigation requests, most of the solids composing a complex one have to be checked o Scalability is typically linear => low performance for solids composed of many parts Boolean Union solid: is composite of two solids, either primitive or Boolean [The pictures were produced by users of Wikipedia “Captain Sprite” and “Zottie” and are available under Creative Commons Attribution-Share Alike 3.0 Unported license ]

Multi-Union solid We implemented a new solid as a union of many solids using voxelization technique to optimize the speed o 3D space partition for fast localization of components o Aiming for a log(n) scalability Useful also for several complex composites made of many solids with regular patterns 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

1. Create voxel space (2D simplification) 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations x y

2. Usage of bit masks for storing voxels 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Scaling of Multi-Union vs. Boolean solid 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Test union solids for scalability measurements 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Test union solids for scalability measurements 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Test union solids for scalability measurements 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

The most performance critical methods 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Status of work Types and USolid interface are defined Bridge classes defined and implemented for both Geant4 and Root Testing suite defined and deployed Implementation of Multi-Union solid completed and performance optimized Started implementation of primitives: First implementation of Box, Orb (simple full sphere) and Trd (simple trapezoid) 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

Future work Give priority to the most critical solids and those where room for improvement can be easily identified Systematically analyze and implement remaining solids in the new library 5/24/2012 Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations

5/24/2012 Thank you for your attention. ?????? Questions ? Marek Gayer - New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations