WIRED Detector Description in XML Mark Dönszelmann, Applications for Physics and Infrastructure, IT, CERN XML Detector Description Workshop CERN, 14 April,

Slides:



Advertisements
Similar presentations
J0 1 Marco Ronchetti - Web architectures – Laurea Specialistica in Informatica – Università di Trento Java XML parsing.
Advertisements

Introduction to the BinX Library eDIKT project team Ted Wen Robert Carroll
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
University of Jyväskylä/AHo & VLy Experiences of Document Transformations with XSLT and DOM Anne Honkaranta, Virpi Lyytikäinen, Pasi Tiitinen, University.
XML & Data Structures for the Internet Yingcai Xiao.
Multi-Model Digital Video Library Professor: Michael Lyu Member: Jacky Ma Joan Chung Multi-Model Digital Video Library LYU9904 Multi-Model Digital Video.
1 XML: Advanced Guide Holly A. Hyland, FSA Andrew Smalera, XML Framework Session 14.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
Xerces The Apache XML Project Yvonne Yao. Introduction Set of libraries that provides functionalities to parse XML documents Set of libraries that provides.
XML DOM and SAX Parsers By Omar RABI. Introduction to parsers  The word parser comes from compilers  In a compiler, a parser is the module that reads.
21-Jun-15 SAX (Abbreviated). 2 XML Parsers SAX and DOM are standards for XML parsers-- program APIs to read and interpret XML files DOM is a W3C standard.
Java API for XML Processing (JAXP) CSE 4/586: Distributed Systems Department of Computer Science and Engineering University at Buffalo, New York Jia Zhao.
29-Jun-15 JAXB Java Architecture for XML Binding.
CS 898N – Advanced World Wide Web Technologies Lecture 22: Applying XML Chin-Chih Chang
XML-Enabled Database System Mark Graves. This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall.
Victor Serbo, SLAC30 September 2004, Interlaken, Switzerland JASSimApp plugin for JAS3: Interactive Geant4 GUI Serbo, Victor (SLAC) - presenter Donszelmann,
By: Shawn Li. OUTLINE XML Definition HTML vs. XML Advantage of XML Facts Utilization SAX Definition DOM Definition History Comparison between SAX and.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
XML for E-commerce II Helena Ahonen-Myka. XML processing model n XML processor is used to read XML documents and provide access to their content and structure.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
XML and its applications: 4. Processing XML using PHP.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
Max Planck Institute for Psycholinguistics Tool development report H. Brugman MPI Nijmegen.
SAX Parsing Presented by Clifford Lemoine CSC 436 Compiler Design.
XML Parsers Overview  Types of parsers  Using XML parsers  SAX  DOM  DOM versus SAX  Products  Conclusion.
Intro to XML Originally Presented by Clifford Lemoine Modified by Box.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Scripting with the DOM Ellen Pearlman Eileen Mullin Programming the Web.
Sheet 1XML Technology in E-Commerce 2001Lecture 3 XML Technology in E-Commerce Lecture 3 DOM and SAX.
Writing Extension Modules (Plugins) for JAS 3 Mark Donszelmann Tony Johnson Victor Serbo Max Turri CHEP2004, 27 september-1 october 2004, Interlaken, Switzerland.
V. Serbo, SLAC ACAT03, 1-5 December 2003 Interactive GUI for Geant4 by Victor Serbo, SLAC.
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.
School of Computing and Information Systems CS 371 Web Application Programming XML and JSON Encoding Data.
Internet Technologies Review Week 1 How does Jigsaw differ from EchoServer.java? What abstractions are made available to the servlet writer (under.
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
XML eXtensible Markup Language. XML A method of defining a format for exchanging documents and data. –Allows one to define a dialect of XML –A library.
XML and SAX (A quick overview) ● What is XML? ● What are SAX and DOM? ● Using SAX.
Starlink VOTable software Author: Mark Taylor Open source Java software for table manipulation STIL:
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and XML Further JSP and integration with XML 17 th March.
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.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
XML and Object Serialization. Structure of an XML Document Header Root Element Start Tags / End Tags Element Contents – Child Elements – Text – Both (mixed.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
WIRED World-Wide Web Interactive Remote Event Display Mark Dönszelmann, IT/API, CERN CHEP 2000, 9 February 2000, Padova, Italy.
FreeHEP, JAS and WIRED Mark Dönszelmann, CERN/IT Charles Loomis, UC, Santa Cruz ATLAS Software Week, 30 November 2000.
WIRED for LCD Analysis Mark Dönszelmann Linear Collider Simulation Workshop May 19-22, 2003, SLAC.
XML Tools (Chapter 4 of XML Book). What tools are needed for a complete XML application? n Fundamental components n Web infrasructure n XML development.
LCD WIRED FutureLCD Workshop May Joseph Perl 1 Future Plans for the LCD WIRED Event Display Joseph Perl SLAC Computing Services
7-Mar-16 Simple API XML.  SAX and DOM are standards for XML parsers-- program APIs to read and interpret XML files  DOM is a W3C standard  SAX is an.
20 November 2002ApacheCon US - Las Vegas, Nevada 1 Xerces2: The Sequel With No Equal Andy Clark.
Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and XML Session V: Further JSP and integration with XML.
D Copyright © 2004, Oracle. All rights reserved. Using Oracle XML Developer’s Kit.
Java API for XML Processing
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
Week-9 (Lecture-1) XML DTD (Data Type Document): An XML document with correct syntax is called "Well Formed". An XML document validated against a DTD is.
Parsing with SAX using Java Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
XML Schema for WIRED XML Detector Description Workshop
Intro to XML.
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
Java API for XML Processing
Geometry checking tools
XML Problems and Solutions
Python and XML Styling and other issues XML
WIRED 4 Event Display Linear Collider Simulation Workshop
XML Parsers.
XML Programming in Java
XML and Web Services (II/2546)
Presentation transcript:

WIRED Detector Description in XML Mark Dönszelmann, Applications for Physics and Infrastructure, IT, CERN XML Detector Description Workshop CERN, 14 April, 2000

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group Contents XML Usage in WIRED Detector Description for WIRED GEANT3 to XML Conversion Example: WIRED Detector Description SAX and DOM Parsers Performance Solutions (now)

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group XML Usage in WIRED Now: Detector Description Event Description Planned: Menu and Toolbar Configuration User Configuration Persistency HEPRep Description (generic event description) JAS (Java Analysis Studio) Menu and Toolbar Configuration Particle Data Table (PDG)

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group Detector Description for WIRED Defined in November D Wire Frames specific for Event Display Primitives Polyline Polygon Arc Circle Text Coordinates expressed as x,y,z or rho,phi,z Part tag to group several primitives and groups Part tag can refer to different file (deferred loading)

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group GEANT3 to XML conversion 1. Run Interactive GEANT, show what is needed and produce script 2. Link Interactive GEANT with the WGEANT library 3. Run Interactive GEANT with the script 4. Run the G3GeometryConverter Interactive GEANT GEANT Script Link WGEANT Library Interactive GEANT G3GeometryConverter ASCII Geometry Files XML Geometry Files GEANT Library

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group Example: WIRED Detector Description <geometry type="detector" name="Detector Geometry" description="neutrino-physics experiment"> CHORUS M.Litmaath Apr-98 <part type="subdetector" name="TARG" description="Emulsion Target" href="TARG.xml.gz" load="true" /> <part type="subdetector" name="HEXA" description="Hexagonal Magnet" href="HEXA.xml.gz" load="true" /> <part type="subdetector" name="CALO" description="Calorimeter" href="CALO.xml.gz" load="true" /> <part type="subdetector" name="SPEC" description="Spectrometer" href="SPEC.xml.gz" load="true" /> Chorus Geant 3 Geometry Converter to XML 1.0 Jul 8,

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group SAX and DOM parsers SAX - Simple API for XML Developer implements the SAX interface Developer calls parse(String filename) on the XMLParser DOM - Document Object Model Parser builds an internal DOM tree in memory from the XML file Developer may create or modify a DOM tree Developer may write out a DOM tree into an XML file public void startElement(String tag, AttributeList list) throws SAXException; public void endElement(String tag) throws SAXException; public void charData( char ch[], int start, int length) throws SAXException;

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group WIRED Classes and DTD’s

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group Performance File Size: DELPHI 2 levels of detail: 5 Mbyte, compressed 500 kbyte BaBar: 1.5 Mbyte, compressed 150 kbyte Compression of average a factor 10 Memory Usage: SAX parsing only creates the WIRED Objects DOM parsing creates objects for every attribute. From these WIRED Objects are created. Too memory intensive. Parsing Speed: Reading compressed files or normal files does not differ if access is fast 10% read, 30% parse, 40% validation, 20% conversion of doubles XML versus Fixed format costs factor 2-3 in speed!

14 April 2000Mark Dönszelmann, CERN/IT Applications for Physics and Infrastructure Group Solutions (now) Split detector description into multiple files use the PART tag to link to different files files can be loaded on demand No easy way to split DTD trick used with entity to include generic Wired.DTD path to search for this file not very well defined in XML DOM parser creates too many Objects for Data use Use SAX parser and read without validations WIRED uses the Aelfred (24 kbyte bytecode) parser Aelfred is a non-validating pre-SAX parser For the future we should look at XML Schema