Hands on AGDD*: Atlas Generic Detector Description in XML

Slides:



Advertisements
Similar presentations
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
Advertisements

XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
An AGDD “XmlFileBuilder”
SCT Geometry Status: December 2000
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
(C) 2013 Logrus International Practical Visualization of ITS 2.0 Categories for Real World Localization Process Part of the Multilingual Web-LT Program.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
Starting Chapter 4 Starting. 1 Course Outline* Covered in first half until Dr. Li takes over. JAVA and OO: Review what is Object Oriented Programming.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
WIKI IN EDUCATION Giti Javidi. W HAT IS WIKI ? A Wiki can be thought of as a combination of a Web site and a Word document. At its simplest, it can be.
Array.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
Mokka and integration of the geometry AIDA kick-off meeting WP2 session: Common software tools 17 February 2011 – CERN Paulo Mora de Freitas and Gabriel.
ALICE Offline week, CERN 21 February 2005 I. Hrivnacova 1 New geometry framework in MUON I.Hrivnacova IPN, Orsay ALICE Offline week, CERN 21 February 2005.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
Database structure for the European Integrated Tokamak Modelling Task Force F. Imbeaux On behalf of the Data Coordination Project.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
Copyrighted material John Tullis 10/17/2015 page 1 04/15/00 XML Part 3 John Tullis DePaul Instructor
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
Gaudi Framework Tutorial, XML The persistent world.
XML in Atlas: from generic to parametric detector description Stan Bentvelsen NIKHEF Amsterdam XML workshop, CERN, May 22.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
Fabiola Gianotti, 31/8/’99 PHYSICS and SOFTWARE ATLAS Software Week 31/8/’99 Fabiola Gianotti Software requirements of physics groups What should Detector.
R.T. Jones, Newport News, May The GlueX Simulation Framework GEANT4 Tutorial Workshop Newport News, May 22-26, 2006 R.T. Jones, UConn Monte Carlo.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI,
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
Jump to first page The new ROOT geometry package Andrei Gheata - ALICE Institute of Space Sciences, Bucharest.
WIRED Detector Description in XML Mark Dönszelmann, Applications for Physics and Infrastructure, IT, CERN XML Detector Description Workshop CERN, 14 April,
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
Status of the ATLAS Detector description Stan Bentvelsen Berkeley software week May 2000.
Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
Update G4builder issues Talk written almost entirely by Stan Bentvelsen with a few updates from Christopher Lester ATLAS G4 Workshop December 2000 CAMBRIDGE.
Prospects for Integrating Veloroot into GAUDI D. Steele - 24/11/1999.
Overview Methodology Design Architecture Outline of future work Ideas for discussion.
GDML “Geometry Description Markup Language” by Daniele Francesco Kruse University of Rome “Tor Vergata” European Organization for Nuclear Research.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
1 Configuration Database David Forrest University of Glasgow RAL :: 31 May 2009.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER Charles Leggett Prototype GEANT4 Service for ATHENA framework ATLAS Software Workshop Dec 3.
Detector SimOOlation activities in ATLAS A.Dell’Acqua CERN-EP/ATC May 19th, 1999.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
LHCb Software Week 25/11/99 Gonzalo Gracia Abril 1 r Status of Geant4 in LHCb. r Ideas on how to populate the LHCb Detector Description Data Base (LHCb.
Complex Geometry Visualization TOol
A C++ generic model for the GLAST Geometric Description
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
What is XML?.
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
CSE591: Data Mining by H. Liu
Use of GEANT4 in CMS The OSCAR Project
Java Analysis Studio and the hep.lcd classes
WIRED 4 Event Display Linear Collider Simulation Workshop
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Presentation transcript:

Hands on AGDD*: Atlas Generic Detector Description in XML Stan Bentvelsen workshop, Oct 99 *:An initiative from SB & Marc Virchaux

(building the barrel SCT) contents Basic XML and AGDD AGDD philosophy Quick tutorial AGDD (building the barrel SCT) Examples AGDD history ~ few weeks Can be improved Comments / feedback welcome!

Motivation: So far, Atlas did not decide on ‘final’ database. Many applications depend on the Atlas geometry. Decision (September): Store Atlas geometry in ascii-files later in data-base Ascii files: easy human readable/editable temporary proposal: BAFF format; very flexible + extendible. G4builder available Industry standard: XML benefit from all available (free) software well defined standard maintained outside XML allows to define syntax yourself. Tailor to specific needs

XML basics XML (Extended Mark-up Language). Extension of HTML, ‘tags’ are defined, and xml file comply to these definitions: syntax definition file (dtd-file) implementation file (xml file) Tools available to check the compliance of the xml files (xml4c, xml4j) Standard tools to edit, view and parse the XML files Standard Atlas software to parse XML in C++ classes (Expat / ExpatInterface)

AGDD basics Structure from Geant4! AGDD: XML definition file to store (generic): Solids shape dimensions material Boolean solids subtraction, ... Positioning of volumes single positioning multiple positioning Materials elements composite materials Free format information innerstruct Additional ‘overhead’ for administration ‘section’ element using ‘IDREF’ Identifiers

provider + client Provider: AMDB: ascii based database for muon system. Should be easily translated to AGDD Each sub-detector provides a AGDD file with their geometry I.e. you! Very low threshold to define your geometry! Client Visualisation PERSINT Java, ... Geant 4 simulation package Tracking ATLAS simulation Reconstruction Any reconstruction that needs the geometry ….

Use of AGDD Persistency (Objectivety) Generic Model AGDD C++ xml-files Geant4 builder visualisation PERSINT visualisation JAVA VRML visualisation Reconstruction

Quick tutorial AGDD Since you’re here

Solid: definition Definition in dtd file ‘Solid’ element is empty, it has only attributes attribute list define the solid completely #REQUIRED: obligatory #IMPLIED: not obligatory, no default ID: defines XML identifier IDREF: reference to a XML identifier %units: refer to predefined entity ‘units’ (compare to ‘alias’)

Solid: implementation Three equivalent ways to define the same solid in a implementation AGDD.xml file XML parser reads these formats attribute values free format! E.g. no checking for 4 real numbers in ‘dim’ Need to create an additional tool for strong type-checking

SCT module Position a board and an electronics board to create a module: XML comment <composition> has elements inside that are positioned. The coordinate system is defined by the resulting volume. No rotation in this example the ‘SCT_module’ itself can be positioned

Module Interactive display In this example, I’ve used PERSINT Nothing much to say: it’s a very simple module not a very realistic piece!

Composition definition Definition of a composition: placing volumes posXYZ is single placement: translation + rotation

A step back: Volumes Volume: generic name for a geometric object ‘Solid’ and ‘Composition’ are both ‘volumes’ 5 volume-types: Solid Composition Boolean volumes: Union Intersection Subtraction Volume has name units Solids: shape dimensions material (innerstruct) Composition list of positionings Boolean volumes reference volume

Positionings Placement of a volume inside another volume thereby creating the ‘mother volume’ ‘Mother’ volume defined as the union of all its daughters no explicit shape or dimensions! Envelope may, but does not need, to be given. Single positioning posXYZ posRPhiZ Multiple positioning mposPhi ‘ncopy‘ daughter volumes along phi, fixed (R,Z) mposR along R, fixed (phi,Z) mposZ along Z, fixed (R,phi)

Loose ends Unit system: default to “mm” and “deg” Innerstruct: Each volume may point to a innerstruct. This is a reference to a free fromat to store detector specific information (strip-pitch, nr of channels/crystal etc..) Index: (first version: needs to be iterated? Better?) system to identify each solid useful when solid is placed many times currently foresee 3-dimensional indexing (I_r, I_phi, I_z)

SCT ski Create a ski as a ‘mposZ’ of 12 modules: Give n-copy, Z-start, Z-step Index: “0 0 1” I_r=0 ; I_phi = 0 ; I_Z=(1-12) Each copy gets its own index: “0 0 1” towards “0 0 12” First two 0’s not used Index-step default to 1.

Ski: visualisation Visualisation with PERSINT

SCT barrel Create SCT_barrel: 4 ‘mposPhi’ elements, with 32, 40, 48 and 56 copies, respectively Rotation needed! Index: “1 (1-ncopy) 0” to “4 (1-ncopy) 0” for ring 1-4. I_Z remain (1,12) from ski definition I_phi runs between (1,ncopy) for each ‘mposPhi’ I_R given explicit for each ring (larger R value)

Barrel: visualisation Visualisation using PERSINT

Sections Place a geometry inside a ‘section’ (all attributes are required) Name Short descriptive name; each volume is prepend with this name (to resolv name-space problem in XML) Version, date, author To keep track of the geometry version Top_volume Envelope volume name corresponding to the section

Putting it together Extremely easy-to-make geometry files Direct visualisation with various tools (persint, JAVA, G4builder)

Materials Separate XML tags for definition of materials Whole idea stolen from del’Acqua’s G4 material-manager (but implementation needs iterations!)

ToDo list Divide the ATLAS detector in components. Each sub-detector has its own ‘envelope’ Define ‘envelopes’ in separate file refer to those envelopes in the ‘section’ Each sub-detector can fill their envelope as they please Who is volunteering for this? ‘Translate’ the AMDB database to this AGDD XML format automatic translation? Couple detector construction database to AGDD? Simple ascii output; should be possible direct link construction vs simulation vs reconstruction

The story of the barrel SCT AGDD is only few weeks old. Before that, there was BAFF + G4-BAFF builder Christopher Lester created SCT barrel DICE geometry in BAFF format He noticed that many numbers in XML file depend on each other create his ‘own’, private XML syntax no dependencies in this preXML. create a small C++ program that output either BAFF or AGDD format He handed me a AGDD file that he couldn’t visualise with AGDD himself (no G4builder yet!) AGDD BAFF preXML G4-BAFF

SCT DICE geometry AGDD file provided by Lester PERSINT visualisa-tion Who follows??

Stan Bentvelsen workshop, Oct 99 A Geant4 builder Stan Bentvelsen workshop, Oct 99

Why a G4-builder The whole AGDD syntax is rather close to Geant-4 Geant-4 simulation is one of the ‘important’ clients of XML Build a ‘generic’ detector independent Geant-4 builder Clearly not the ‘end of the story’ First attempt to create a generic G4 builder Use Geant-4 visualisation: ‘DAWN’ No attempt to track particles yet!

G4builder Interface to C++ Generic Model Del’Acqua algorithm G4builder Interface to C++ Generic Model pick-up the ‘visit_solid’ and ‘visit_composition’ so far ‘Root’ volume ‘ATLAS’ is visualised No (re-) compilation when XML files are changed! Problem of mother-volumes: in XML no specific mother volume defined when a new volume is positioned in mother: create a union of the current mother and the new volume position mother in the union position volume in the union call union the ‘new mother’

G4builder Materials: Status: Interface between ‘visit_material’ and MaterialManager (A. del’Acqua) All elements available, composite materials need to be worked on Do not know all the details for ‘materials’; need to be discussed further Status: Current version extremely preliminary written in a couple of days only it works use private version of Geant-4 (with STL) ‘Linux’ version of Geant4 has problem: need to modify a g++ include file not possible on afs?

Test Geant-4 display of the Test_AGDD xml file

DICE Christopher Lester SCT barrel geometry Show ring 4 only