XML in Atlas: from generic to parametric detector description Stan Bentvelsen NIKHEF Amsterdam XML workshop, CERN, May 22.

Slides:



Advertisements
Similar presentations
METS: An Introduction Structuring Digital Content.
Advertisements

Programming Languages Marjan Sirjani 2 2. Language Design Issues Design to Run efficiently : early languages Easy to write correctly : new languages.
Archil Surmava Georgian Technical University SCSWT Oct 23, 2012.
An AGDD “XmlFileBuilder”
VB in Context Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh Pittsburgh, Pa 15260
 2006 Pearson Education, Inc. All rights reserved. Templates (again)CS-2303, C-Term Templates (again) CS-2303 System Programming Concepts (Slides.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Identifiers for Everyone J. Bogart Core Software Workshop April
Introduction to BIM BIM Curriculum 01.
System Analysis Overview Document functional requirements by creating models Two concepts help identify functional requirements in the traditional approach.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Parametric & 3-D Solid Modeling
IS 320 Notes for Chapter 8. ClassX Problems: Low-Tech Fix Use last year's videos on ClassX  Select "Semesters" tab  Select IS 320  Select the week/lecture.
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
Lecture 6 XML DTD Content of.xml fileContent of.dtd file.
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
Gaudi Framework Tutorial, XML The persistent world.
Software Solutions for Variable ATLAS Detector Description J. Boudreau, V. Tsulaia University of Pittsburgh R. Hawkings, A. Valassi CERN A. Schaffer LAL,
1 Schema Registries Steven Hughes, Lou Reich, Dan Crichton NASA 21 October 2015.
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
The european ITM Task Force data structure F. Imbeaux.
The Glance Project ATLAS Management January 2012.
W. Pokorski - EP/SFT Simulation Project1 GDML - recent developments Witek Pokorski
Sheet 1XML Technology in E-Commerce 2001Lecture 2 XML Technology in E-Commerce Lecture 2 Logical and Physical Structure, Validity, DTD, XML Schema.
Visual Computing Geometric Modelling 1 INFO410 & INFO350 S2 2015
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
The GeoModel Toolkit for Detector Description Joe Boudreau Vakho Tsulaia University of Pittsburgh CHEP’04 Interlaken.
David Adams ATLAS DIAL/ADA JDL and catalogs David Adams BNL December 4, 2003 ATLAS software workshop Production session CERN.
Connect. Communicate. Collaborate PerfsonarUI plug-in tutorial Nina Jeliazkova ISTF, Bulgaria.
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,
Hands on AGDD*: Atlas Generic Detector Description in XML
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
In the name of God Computer Graphics.
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.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Status of the ATLAS Detector description Stan Bentvelsen Berkeley software week May 2000.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
ECAL software development Yuri Kharlov IHEP Protvino.
Advanced Component Models ULCM & HLCM Julien Bigot, Hinde Bouziane, Christian Perez COOP Project Lyon, 9-10 mars 2010.
STAR VMC project Maxim Potekhin for the STAR Collaboration VMC workshop at CERN Nov
Update G4builder issues Talk written almost entirely by Stan Bentvelsen with a few updates from Christopher Lester ATLAS G4 Workshop December 2000 CAMBRIDGE.
Java Script. introduction Today’s web sites need to go much beyond HTML. browsing through a web site, to actually interact with the web site. The web.
27 March 2003RD Schaffer & C. Arnault CHEP031 Use of a Generic Identification Scheme Connecting Events and Detector Description in Atlas  Authors: C.
XML CORE CSC1310 Fall XML DOCUMENT XML document XML document is a convenient way for parsers to archive data. In other words, it is a way to describe.
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.
9/29/ CMS Detector Description: New Developments Ad Aerts Eindhoven University of Technology, Eindhoven, The Netherlands Martin Liendl CERN, Geneva,
1 Configuration Database David Forrest University of Glasgow RAL :: 31 May 2009.
Xml News Slide 1 S. Ponce, 21 June 2001 Detector description language news.
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.
CLASSIFICATION OF DESIGN PATTERNS Hladchuk Maksym.
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.
In the name of God Computer Graphics.
A C++ generic model for the GLAST Geometric Description
Object-Oriented Databases
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Detector Description in LHCb
From C++ to Java Java history: Oak, toaster-ovens, internet language, panacea What it is O-O language, not a hybrid (cf. C++) compiled to byte-code, executed.
Simulation and Physics
G4 Workshop 2002 Detector Description Parallel Session
Detector Geometry Description
Detector description News
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Presentation transcript:

XML in Atlas: from generic to parametric detector description Stan Bentvelsen NIKHEF Amsterdam XML workshop, CERN, May 22

May 22, 2001Stan Bentvelsen Detector Description Goals Description of an ideal, static detector Two basic approaches –Generic and explicit description No explicit mentioning of `ATLAS’ LEGO-like building stones to create complex geometries –Parametric and compact description Explicit notion of each detector Parameters interpreted by an algorithm to create complex geometries Both methods advantages/disadvantages –Have we arrived at a marriage between them?

May 22, 2001Stan Bentvelsen Generic approach: Architecture XML syntax defined in AGDD.dtd XML file-parsing using Xerces SAX2 Customized C++ model reflecting XML information Client programs communicate with transient objects AGDD XML file Generic Model Transient C++ Client programs AGDD.dtd Syntax def AGDD.dtd Syntax def visitorfactory

May 22, 2001Stan Bentvelsen Generic Approach: geometry Creation of ‘Volumes’ –Generic and descriptive Elementary Solids –Basic building blocks, described by shape, dimensions and material »box »tube, etc... Boolean Solids –Boolean operations »union »subtraction, etc... Logical grouping of Volumes –Create composite volumes »composition »stack, etc... Positioning of ‘Volumes’ –Description of the instantiation of the volumes Absolute or relative, single or multiple positioners – Define the translation and rotation matrix of a volume wrt the origin of the constituents, through parameterized algorithms » posXYZ » mposPhi » axisPos, etc...

May 22, 2001Stan Bentvelsen Transient model: volume hierarchy AGDD_Volume AGDD_SolidAGDD_CompositionAGDD_BooleanAGDD_Stack AGDD_BoxAGDD_TrapezoidAGDD_TubesAGDD_Cons AGDD_UnionAGDD_SubtractionAGDD_Intersection AGDD_StackXAGDD_StackYAGDD_StackZ Logical grouping of volumes

May 22, 2001Stan Bentvelsen Creation of Volumes Documentation Volume specific name ID, units, parameters Solid specific material IDREF Definition box Definition ‘box’ in DTD: Mimic hierarchy in XML using entities

May 22, 2001Stan Bentvelsen Transient model positioning hierarchy AGDD_AbsolutePosition AGDD_SinglePositionAGDD_MultiplePosition AGDD_PosXYZ AGDD_RelativePosition AGDD_AxisPosAGDD_AxisMPos AGDD_MPosPhiAGDD_MPosR AGDD_MPosXAGDD_MPosZAGDD_MPosY AGDD_PosRPhiZ Used in Stack Volumes Used in Composition Volumes

May 22, 2001Stan Bentvelsen Generic Approach: an example Creation solid: tube Section: sub-detector + author + version Various positioning of volumes Nice, but becomes quite cumbersome to describe the whole of ATLAS

May 22, 2001Stan Bentvelsen Number Redundancy Numbers vs Algorithms. –problem of many redundant numbers in explicit XML description. 1Arithmetic. –allow ‘arithmetic’ in attribute value (LHCb). External library interpret value attributes. 2Compactification. –Invent specialised syntax for specialised geometry. New specialised syntax to describe detector pieces. Supply C++ algorithms to ‘expand’ these to basic volumes. 3pre-XML. –let C++ or JAVA programs produce XML. using basic set of parameters. Algorithms outside scope of XML source Numbersalgorithm Y=“r*sin(2*phi_mod)” int main(){…}

May 22, 2001Stan Bentvelsen Compactification Compactification in XML Definition (DTD) of MyNewElement described in ACDD.dtd –Mechanism to chain DTD files using external entities The MyNewElement corresponds to a volume and can be used as such in the rest of the AGDD description –Compact element represents a detailed view of a region in space –Function of a set of basic parameters as given by the attributes of the content element (MyNewElement)

May 22, 2001Stan Bentvelsen Example: parametric description <section name = "CompactTest" version = "1.1" date = "Fri Jan 14, 2001" author = "Stan Bentvelsen" top_volume = "ATLAS" DTD_version= "v4" > Example of a compact XML file, with element that contains the parameters to describe the geometry C++ code connected to

May 22, 2001Stan Bentvelsen Generic versus parametric approach Generic (explicit) –Limited set of syntax –Automatic visualization –Straightforward interpretation –Easy start-up –Self-contained –Many redundant numbers –Difficult to maintain –No room for optimization of client software Parametric (compact) –Unlimited syntax –External algorithm needed to interpret the parameters –Initial start-up hurdle to define the syntax –No redundant numbers –Once syntax is defined, its easy to maintain –Optimization possible in client software

May 22, 2001Stan Bentvelsen Generic model: Volume hierarchy AGDD_Volume AGDD_SolidAGDD_BooleanAGDD_CompositionAGDD_Compact AGDD_Cone AGDD_Tube AGDD_Box AGDD_Intersection AGDD_Union AGDD_Subtraction Pure AGDD Compact AGDD Basic, explicit description In numbers Algorithmic Description In terms of parameters MyNewElement

May 22, 2001Stan Bentvelsen Registration ‘MyCompact’ elements are associated to C++ type The C++ type is associated to corresponding factory The factory is registered in a FactoryTable The FactoryTable is known by the AGDD parser Macro: REGISTER_FACTORY(type,”XMLname”) XML element C++ type MyCompact AGDD_Compact Factory MyCompactFactory AGDD_CompactFactory FactoryTableAGDD_Parser Xerces parser register

May 22, 2001Stan Bentvelsen Class MyCompactExample XML information available via AGDD_Compact string getElementName(); int getNrAttributes(); string getAttName(int index); double getDoubleAttValue(string name); int getIntAttValue(string name); Interface to other volumes available AGDD_Volume* getVolumeAttValue(string name); Expand to ‘pure AGDD’ (boxes, tubes, compositions) Expand(); (user written; required) Create new AGDD objects Store all AGDD objects in a container Automatic registration in the Generic Model User is required to provide the ‘expand()’ method Fill vector m_expandedVolumes The expanded AGDD should correspond to valid XML

May 22, 2001Stan Bentvelsen Architecture Compact AGDD XML ASCII file Generic Model Transient C++ ‘expanded’ C++ Algorithms compact C++ Algorithms compact AGDD_Printer ACDD/AGDD clients Pure AGDD XML ASCII file ACDD/AGDD Syntax def ACDD/AGDD Syntax def Detector description visitor visualisation factory

May 22, 2001Stan Bentvelsen The Developer Interface AGDD_Muon.dtd

May 22, 2001Stan Bentvelsen The Developer Interface MDT_Tube.xml

May 22, 2001Stan Bentvelsen The Application Interface Expanded_Station.xml

May 22, 2001Stan Bentvelsen The simulation client Two ‘routes’ to a representation of the geometry in G4 –Via ‘pure’ AGDD to an automatic G4 representations Development only –Via ‘compact’ AGDD to an optimized G4 representation Production code Study difference in G4 performance AGDD ACDD syntax Compact XML Pure XML Expand() Optimized code Geant4 representation Geant4 representation Compare? Automatic building Syntax check Syntax check

May 22, 2001Stan Bentvelsen Status Initiative to use XML started 1 1/2 years ago Core group –Christian Arnault, Stan Bentvelsen, Steven Goldfarb, Julius Hrivnac, Jean-François Laporte, Christopher Lester, RD Schaffer, Marc Virchaux Acceptance around ATLAS –(some) description available for most parts of the detector –Moving toward ‘compact’ description Hope to have G4 simulation based on AGDD/ACDD by 2002