Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI, 28.4.2008.

Slides:



Advertisements
Similar presentations
Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Spring 2004.
Advertisements

© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Lecture 2:Basic Concepts
Advanced Manufacturing Laboratory Department of Industrial Engineering Sharif University of Technology Session # 8.
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
Vertices and Fragments I CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
IMA Tutorial, Instantaneous Motions - Applications to Problems in Reverse Engineering and 3D Inspection H. Pottmann.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-4 Computer Graphics- CAD Software Dr. Abdulrahman M. Al-Ahmari Industrial Engineering.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-4 Computer Graphics- CAD Software Industrial Engineering Program King Saud University.
Process Modeling and Data Flow Diagrams
© Siemens Product Lifecycle Management Software Inc. All rights reserved Siemens PLM Software Solid Edge ST6 Training XpresRoute (tubing)
CATIAv5 : EUCLID3 Data migrationYann BONCOMPAGNI CERN TS-CSE-CAECATIAv5CATIAv5 Euclid3 data migration.
V part 2 Obtained from a Guildford County workshop- Summer, 2014.
Interface between Root and CAD Peter Biryukov
Parametric & 3-D Solid Modeling
MCAD Mechanical Computed Aided Design. Many different types of CAD software Depends on purpose MCAD for mechanical design ECAD for electronic design –
COMP 175: Computer Graphics March 24, 2015
Framework for track reconstruction and it’s implementation for the CMS tracker A.Khanov,T.Todorov,P.Vanlaer.
Virtual reality. Tasks 3D digital model from planes 3D digital model of existing objects Office work Field observations Solid modeling Photogrammetry.
VRML Dr. Alun Moon What is VRML The Virtual Reality Modeling Language (VRML) is a file format for describing interactive 3D objects.
© Siemens Product Lifecycle Management Software Inc. All rights reserved Siemens PLM Software Solid Edge ST5 Training Inspecting assemblies.
Reseller Training Miscellaneous Revision Manager Revision Manager Weldments Weldments Tubing Tubing Sensors Sensors Simply Motion Simply Motion Engineering.
CATIA-G4/Root Geometry Builder. S. Belogurov 1,2, * Yu. Berchun 2, A. Chernogorov 1, *, P. Malzacher 3, E. Ovcharenko 1,2, *, A. Semennikov.
SDC PUBLICATIONS © 2012 Chapter 8 Constructive Solid Geometry Concepts Learning Objectives:  Understand Constructive Solid Geometry Concepts  Create.
In the G4/ROOT hierarchy there are three conceptual layers: - G4VSolid: shape, size - G4VSolid: shape, size - G4LogicalVolume: material, MF, sensitivity,
COMPUTER AIDED DESIGN -(CAD)-3
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Geometry Detector geometry A detector geometry in Geant4 is made of a number of volumes. The largest volume is called the World volume. It must contain.
DMU: Kinematics Workbench By: Michael Johnson Kyle Pflueger Paul Sowiniski.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Solid Modelling Graphics Systems / Computer.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Segmentation support in Slicer Csaba Pinter Laboratory for Percutaneous Surgery, Queen’s University, Canada.
FAIR Simulation & Analysis Framework FairRoot M. Al-Turany, D. Bertini, F. Uhlig GSI-IT.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
STAR STAR VMC tracker V. Perevoztchikov Brookhaven National Laboratory,USA.
STAR Event data storage and management in STAR V. Perevoztchikov Brookhaven National Laboratory,USA.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
BREPS & STEP what's up and coming... Gabriele Cosmo CERN - IT/ASD GEANT4 Workshop September, 20th 1999 ESTEC, Noordwijk, The Netherlands.
Geometrically Bounded Wireframe AIC (Part 510) Grouping of curves relevant for 3-dimensional wireframe modeling without topological constructs Elementary.
IT / API 1 CERN 1-Feb-16 GBLIB: classes to deal with geometrical data Evgueni Tcherniaev IT / API CLHEP workshop, January.
Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
GDML “Geometry Description Markup Language” by Daniele Francesco Kruse University of Rome “Tor Vergata” European Organization for Nuclear Research.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
1 Berger Jean-Baptiste
Computer – Aided Design Terminology You must have a generic understanding of commands and techniques which are used in a number of packages (YOU CANNOT.
PIXEL ladder alignment Hidemitsu ASANO. Photo analysis & survey beam data (with zero magnetic field) ① SVX standalone tracking Global Tracking Strategy.
Lesson Plan: Drafting and Design J6-2. What is 3D solid modeling? How do 3D solid modeling programs work?
Simulation: Editing Non-Native Geometry. © 2016 Autodesk Design Academy Editing Non-Native Geometry How to edit CAD models using Autodesk® SimStudio Tools.
GenFit and RAVE in sPHENIX under Fun4All
Chapter 6 Working with CAD
Huagen Xu IKP: T. Randriamalala, J. Ritman and T. Stockmanns
European Organization for Nuclear Research
Finalizing the CBM-MVD Geometry: CAD and Simulation
SOLID MODELLING.
Bonn Test Station data analysis with PandaRoot
Licensed Electrical & Mechanical Engineer
Digital Media Dr. Jim Rowan ITEC 2110.
Chapter 3 Constructive Solid Geometry Concepts
Create 3D Solid Objects. Create 3D Solid Objects.
Model data and exchange between different models. ISO
MATH THS – Standard Geometry
Marc Verderi GEANT4 collaboration meeting 01/10/2002
WIRED 4 Event Display Linear Collider Simulation Workshop
Presentation transcript:

Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI, Motivation From CAD to GEANT Results Summary and Outlook

Tobias Stockmanns, FZ Jülich2 Motivation The design of a complex detector is usually done in CAD programs by engineers in a Windows environment while the simulation of the geometry is performed by physicists in a linux environment with GEANT as particle propagation tool The way both handle geometries is fundamentally different and there is no (as far as I know) working converter between both environments This implies that the design of the geometry of a detector has to be done twice, often from different people with all kind of problems connected with this For me the first and most important (and most complicated) step was to write a program which would help me to translate a CAD file into a geometry for simulation. As an input file format STEP was chosen because it is the de facto standard for the exchange of CAD files between different CAD programs Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich3 General structure CAD GEANT Top assembly World volume Assembly Logical volume PartSolid Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich4 Example: Module Pixel module Sensor Flex Front-ends active dead copper capton MCC FE Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich5 CAD Parts  Geant Solids Geant Solids are represented by their boundaries (BREPS) The object itself does not know what type of geometrical body it is. For example: a box is described as an object consisting of six surfaces which are planes. Each plane consists of four edges which are lines and each line has a start and stop vector. CAD Bodies are created by basic solids like torus, box, cylinder, sphere and a few more. More complex solids can be created by boolean combination of basic objects Find Geant object which fits to the bunch of surfaces of the CAD program and extract the parameters Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich6 CAD Parts  Geant Solids The origin and the orientation of the solid within its local coordinate system is not defined by construction For example: CAD The origin of the box is not in the center No edge is parallel to the axes of the coordinate system Geant With the creation of the solid the origin and the orientation are given For example: With the creation of a tube the origin is in the center of the tube and the z-axis is parallel to the symmetry axis of the tube Calculate the transformation matrix which transforms the CAD coordinate system into the Geant coordinate system. Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich7 Program structure Done by OpenCascade Converts files into OpenCascade Objects STEP file does not contain material information  external file with name of solid and material replacement file covered later Transformation from OpenCascade objects to GEANT objects Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich8 Conversion OpenCascadeGeant BREPSGeant solids Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich9 Program structure Analyzes the BREPS to find the matching Geant solid Recursive construction of Geant like volumes Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich10 Program structure Extracts the parameters of the solid and calculates the transformation matrix Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich11 Program structure Output of the data into a root file Other output formats possible Darmstadt, 15. November 2015

Tobias Stockmanns, FZ Jülich12 What is the status? supports now: box tube cone trap subtraction-solid Arb8 Xtru DDL output CBM output Root output Darmstadt, 15. November 2015

MVD-Geometry Tobias Stockmanns, FZ Jülich13 Darmstadt, 15. November 2015

MVD Geometry in ROOT Tobias Stockmanns, FZ Jülich14 Darmstadt, 15. November 2015

Output files Three output files: –Root_Output.root: the root file with the geometry (with or without geometry manager) –Unknown_Parts.dat: list of solids which could not be recognized by the analyze part class –Missing_Materials.dat list of solids were no material information was provided. This parts are nevertheless created inside root  could cause problems in particle tracking Tobias Stockmanns, FZ Jülich15 Darmstadt, 15. November 2015

Solenoid Tobias Stockmanns, FZ Jülich16 Solenoid much more complex. Many special geometries without corresponding root geometries Darmstadt, 15. November 2015

Solenoid Tobias Stockmanns, FZ Jülich17 Darmstadt, 15. November 2015

Extension of CadConverter Tobias Stockmanns, FZ Jülich18 Some geometries are too complex for an automatic conversion Others are too complex for fast tracking in simulation  Possibility implemented to replace any assembly within the tree of a geometry by a new one Darmstadt, 15. November 2015

Replacement File Instructions for the replacement of assemblies within the main STEP file are given in an additional ASCII file General structure of the file: –Name of the assembly which should be replaced –The method used to create the new assembly (see later) –The necessary informations –A line „EndPartDescription“ Three methods supported: –„StringPart“ –„StepPart“ –„RootBooleanPart“ Tobias Stockmanns, FZ Jülich19 Darmstadt, 15. November 2015

String Part Tobias Stockmanns, FZ Jülich20 PixelDisk StringPart BOX x 10 y 20 z 12 EndPartValues EndPartDescription  Name of the original assembly  Method  Part name  parameters (any order)  transformation matrix Darmstadt, 15. November 2015

StepPart Tobias Stockmanns, FZ Jülich21 PixelDisk2 StepPart /home/stockman/OpenCascade/OpenCascade6.2/sa mples/standard/ts/dat/Module_8FE.stp EndPartDescription  Name of the original assembly  Method  Path to STEP file Darmstadt, 15. November 2015

RootBooleanPart Tobias Stockmanns, FZ Jülich22 PixelDiskMixed RootBooleanPart /home/stockman/OpenCascade/OpenCascade6.2/ samples/standard/ts/dat/BoxInSpace.stp /home/stockman/OpenCascade/OpenCascade6.2/ samples/standard/ts/dat/PixelDiskRing.stp EndFileList PixelDiskRing – BoxInSpace EndPartDescription  Name of the original assembly  Method  Path to STEP files (as many as necessary)  File list ended by „EndFileList“  Operation (+,-,/,(,)) Transformation matrizies are added automatically Supports assemblies Darmstadt, 15. November 2015

Barrel Yoke Tobias Stockmanns, FZ Jülich23 Darmstadt, 15. November 2015

RootBooleanPart Tobias Stockmanns, FZ Jülich24 - BarrelYoke710NewoAdd - BarrelYoke710NewoSub (BarrelYoke710NewoEndPlate:BarrelYoke710NewoEndPlateoTrans1+BarrelYoke710NewoRing1:BarrelYoke710NewoRing1oTrans1+BarrelYoke710NewoRing2:BarrelYoke710NewoRi ng2oTrans1+BarrelYoke710NewoRing3:BarrelYoke710NewoRing3oTrans1+BarrelYoke710NewoRing4:BarrelYoke710NewoRing4oTrans1+BarrelYoke710NewoRing5:BarrelYoke710Ne woRing5oTrans1+BarrelYoke710NewoRing6:BarrelYoke710NewoRing6oTrans1+BarrelYoke710NewoRing7:BarrelYoke710NewoRing7oTrans1+BarrelYoke710NewoRing8:BarrelYoke7 10NewoRing8oTrans1+BarrelYoke710NewoRing9:BarrelYoke710NewoRing9oTrans1+BarrelYoke710NewoRing10:BarrelYoke710NewoRing10oTrans1) - (BarrelYoke710NewoHoleBack:BarrelYoke710NewoHoleBackoTrans1+BarrelYoke710NewoHoleBack:BarrelYoke710NewoHoleBackoTrans2+BarrelYoke710NewoHoleBack:BarrelYoke 710NewoHoleBackoTrans3+BarrelYoke710NewoHoleBack:BarrelYoke710NewoHoleBackoTrans4+BarrelYoke710NewoHoleFront:BarrelYoke710NewoHoleFrontoTrans1+BarrelYoke71 0NewoHoleFront:BarrelYoke710NewoHoleFrontoTrans2+BarrelYoke710NewoHoleFront:BarrelYoke710NewoHoleFrontoTrans3+BarrelYoke710NewoHoleFront:BarrelYoke710NewoHol eFrontoTrans4+BarrelYoke710NewoCryoHole:BarrelYoke710NewoCryoHoleoTrans1+BarrelYoke710oTarget:BarrelYoke710oTargetoTrans1+BarrelYoke710oTarget:BarrelYoke710oTar getoTrans2+BarrelYoke710NewoTrap:BarrelYoke710NewoTrapoTrans1) Darmstadt, 15. November 2015

Root Drawings Tobias Stockmanns, FZ Jülich25 Darmstadt, 15. November 2015

Summary CAD converter is able to convert STEP files into “GEANT like” geometries Works best for ROOT geometries because ROOT is able to have assemblies without a predefined bounding box (or volume) It Is in use for the PANDA Micro-Vertex-Detector and the PANDA solenoid magnet within the PandaRoot framework Remarks: –It only works for simple geometries –For more complex ones a replacement mechanism exists –It has some problems with CATIA STEP files  Solution: load them into Autodesk Inventor run a small macro and save them as new STEP files Tobias Stockmanns, FZ Jülich26 Darmstadt, 15. November 2015

Outlook Add support for: –more boolean objects (add the moment only a subtraction of a volume in a plane is supported) –cables and tubes –handling of B-splines –loading of the media information Tobias Stockmanns, FZ Jülich27 Darmstadt, 15. November 2015