“Primary Numbers” Database for ATLAS Detector Description Parameters March 24, 2003 S. Eckmann, D. Malon, A. Vaniachine (ANL) P. Nevski, T. Wenaus (BNL)

Slides:



Advertisements
Similar presentations
Database System Concepts and Architecture
Advertisements

Athena/POOL integration
25 th March 2003 V.Fine, H.Ma CHEP 2003, San Diego 1 Root Based Persistency in Athena (ATLAS) by Valeri Fine and Hong Ma.
1 Databases in ALICE L.Betev LCG Database Deployment and Persistency Workshop Geneva, October 17, 2005.
David Adams ATLAS DIAL Distributed Interactive Analysis of Large datasets David Adams BNL March 25, 2003 CHEP 2003 Data Analysis Environment and Visualization.
ATLAS Analysis Model. Introduction On Feb 11, 2008 the Analysis Model Forum published a report (D. Costanzo, I. Hinchliffe, S. Menke, ATL- GEN-INT )
Chapter 8: I/O Streams and Data Files. In this chapter, you will learn about: – I/O file stream objects and functions – Reading and writing character-based.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Design 1.
Web-based Portal for Discovery, Retrieval and Visualization of Earth Science Datasets in Grid Environment Zhenping (Jane) Liu.
A Metadata Catalog Service for Data Intensive Applications Presented by Chin-Yi Tsai.
2. Database System Concepts and Architecture
Conditions DB in LHCb LCG Conditions DB Workshop 8-9 December 2003 P. Mato / CERN.
1 Another group of Patterns Architectural Patterns.
Alignment Strategy for ATLAS: Detector Description and Database Issues
ANL/BNL Virtual Data Technologies in ATLAS Alexandre Vaniachine Pavel Nevski US-ATLAS Core/GRID software workshop Brookhaven National Laboratory May 6-7,
Software Solutions for Variable ATLAS Detector Description J. Boudreau, V. Tsulaia University of Pittsburgh R. Hawkings, A. Valassi CERN A. Schaffer LAL,
Databases E. Leonardi, P. Valente. Conditions DB Conditions=Dynamic parameters non-event time-varying Conditions database (CondDB) General definition:
Event Data History David Adams BNL Atlas Software Week December 2001.
NOVA Networked Object-based EnVironment for Analysis P. Nevski, A. Vaniachine, T. Wenaus NOVA is a project to develop distributed object oriented physics.
The History and Future of ATLAS Data Management Architecture D. Malon, S. Eckmann, A. Vaniachine (ANL), J. Hrivnac, A. Schaffer (LAL), D. Adams (BNL) CHEP’03.
CHEP 2003 March 22-28, 2003 POOL Data Storage, Cache and Conversion Mechanism Motivation Data access Generic model Experience & Conclusions D.Düllmann,
ATLAS Detector Description Database Vakho Tsulaia University of Pittsburgh 3D workshop, CERN 14-Dec-2004.
ATLAS Grid Data Processing: system evolution and scalability D Golubkov, B Kersevan, A Klimentov, A Minaenko, P Nevski, A Vaniachine and R Walker for the.
NA-MIC National Alliance for Medical Image Computing UCSD: Engineering Core 2 Portal and Grid Infrastructure.
INFSO-RI Enabling Grids for E-sciencE OGSA DAI Data Access and Integration Marek Ciglan Institute of Informatics, Slovac Academy.
ATLAS Data Challenges US ATLAS Physics & Computing ANL October 30th 2001 Gilbert Poulard CERN EP-ATC.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
ATLAS Offline Database Architecture for Time-varying Data, with Requirements for the Common Project David M. Malon LCG Conditions Database Workshop CERN,
The GeoModel Toolkit for Detector Description Joe Boudreau Vakho Tsulaia University of Pittsburgh CHEP’04 Interlaken.
GDB Meeting - 10 June 2003 ATLAS Offline Software David R. Quarrie Lawrence Berkeley National Laboratory
Issues in Ontology-based Information integration By Zhan Cui, Dean Jones and Paul O’Brien.
NOVA A Networked Object-Based EnVironment for Analysis “Framework Components for Distributed Computing” Pavel Nevski, Sasha Vanyashin, Torre Wenaus US.
Mantid Stakeholder Review Nick Draper 01/11/2007.
Alexandre Vaniachine (ANL) LCG PEB Applications Area Meeting November 20, 2002 Alexandre Vaniachine (ANL) MySQL Service Plans and Needs in ATLAS.
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.
Slide 1 Service-centric Software Engineering. Slide 2 Objectives To explain the notion of a reusable service, based on web service standards, that provides.
David Adams ATLAS ATLAS Distributed Analysis: Overview David Adams BNL December 8, 2004 Distributed Analysis working group ATLAS software workshop.
ATLAS Database Access Library Local Area LCG3D Meeting Fermilab, Batavia, USA October 21, 2004 Alexandre Vaniachine (ANL)
Magda Distributed Data Manager Prototype Torre Wenaus BNL September 2001.
- GMA Athena (24mar03 - CHEP La Jolla, CA) GMA Instrumentation of the Athena Framework using NetLogger Dan Gunter, Wim Lavrijsen,
CSC 480 Software Engineering Lecture 17 Nov 4, 2002.
Pavel Nevski DDM Workshop BNL, September 27, 2006 JOB DEFINITION as a part of Production.
27 March 2003RD Schaffer & C. Arnault CHEP031 Use of a Generic Identification Scheme Connecting Events and Detector Description in Atlas  Authors: C.
1 A Scalable Distributed Data Management System for ATLAS David Cameron CERN CHEP 2006 Mumbai, India.
ATLAS Data Dictionary A. Bazan, T. Bouedo, P. Ghez, T. Le Flour, S. Lieunard M. Marino, C. Tull.
David Adams ATLAS ATLAS Distributed Analysis and proposal for ATLAS-LHCb system David Adams BNL March 22, 2004 ATLAS-LHCb-GANGA Meeting.
Pavel Nevski STAR simulations GSTAR framework OO geometry/event model NOVA components.
ATLAS The ConditionDB is accessed by the offline reconstruction framework (ATHENA). COOLCOnditions Objects for LHC The interface is provided by COOL (COnditions.
Magda Distributed Data Manager Torre Wenaus BNL October 2001.
David Adams ATLAS Hybrid Event Store Integration with Athena/StoreGate David Adams BNL March 5, 2002 ATLAS Software Week Event Data Model and Detector.
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
Database Replication and Monitoring
(on behalf of the POOL team)
Database System Concepts and Architecture
File System Implementation
POOL persistency framework for LHC
CSC 480 Software Engineering
Dirk Düllmann CERN Openlab storage workshop 17th March 2003
CHAPTER 3 Architectures for Distributed Systems
Conditions Data access using FroNTier Squid cache Server
CHAPTER 2 CREATING AN ARCHITECTURAL DESIGN.
Service-centric Software Engineering
Software Design CMSC 345, Version 1/11.
Detector Description in LHCb
Analysis models and design models
Simulation and Physics
Event Storage GAUDI - Data access/storage Framework related issues
Lecture 13 Teamwork Bryan Burlingame 1 May 2019.
Presentation transcript:

“Primary Numbers” Database for ATLAS Detector Description Parameters March 24, 2003 S. Eckmann, D. Malon, A. Vaniachine (ANL) P. Nevski, T. Wenaus (BNL)

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Scale of the Problem A state-of-the-art detector is comprised of many elements: 29 M distinct volume copies 23 K different volume objects 4,673 volume types

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Detailed description of ATLAS detector geometry in simulations is unprecedented

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Primary Numbers The Detector Description task in ATLAS is accomplished through the use of “Primary Numbers" – parameters defining In simulations detector geometry digitization In reconstruction same detector geometry parameters of the reconstruction algorithms alignment parameters

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Virtual Data Aspect Virtual Data concepts from the GriPhyN project ( introduced a generic aspect of the problem across the science domainswww.griphyn.org The Detector Description parameters – “Primary Numbers” – can be considered as Virtual Data provided to control the applications performing the data transformations

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Parametrized simulation of the detector response Playing Central Role Raw Data … Simulated Raw Data … Reconstructed Event Objects Data Simulated Particle Event Data Event reconstruction data transformation Geant3 simulation of the detector response “Primary Numbers” for Detector Description Geant4 simulation of the detector response

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) XML Name-Value Pairs Indeed the Detector Description parameters – “Primary Numbers” providing control of applications simulating the detector response or performing the event reconstruction transformation in the first approximation fit well into the XML name- value pairs that can be arbitrarily structured to support content management

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Primary Numbers Parameters for Geant geometry e.g. ATLAS Mother Volume NameValueComment Version22001 VERSION WITH ENDCAP SHIFTED B Rmin.0 Inner Radius Rmax Outer Radius Zmax2350.0Maximum Z

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) More than XML Pairs A more detailed view of the Detector Description parameters provides Name of the parameter Value of the parameter Primitive type of the parameter (int, float,…) Textual comment describing the parameter Scope of the parameter (representing the structural container that this parameter belongs to) Additional information parameter unit of measurement parameter version structural container information

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Valuable Knowledge Verification of the “Primary Numbers“ requires considerable efforts Checking the engineering drawings Consulting with experts Our collaborator, Claire Bourdarios, reported that detailed analysis of LAr calorimeter barrel accordeon geometry parameters took about one month In total the barrel accordeon “Primary Numbers“ count was below one hundred Since the detailed ATLAS detector description needs more than 10K of such parameters, a preferred solution is to have a single verified source for all these data

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Knowledge Management Data Warehousing

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Binary Data Some of Detector Description parameters are better handled in the binary format Example of binary data stored in the “Primary Numbers” database are For simulations Magnetic field maps For reconstruction Identifier maps of the detector elements Typically these data are “secondary” - resulting from some computer calculations

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Heterogeneity: Organizing the “Chaos” The same “Primary Numbers" are served to many different clients accessing the database: ATLAS software framework Athena Geant4 developers' framework FADS/Goofy Geant3 legacy framework atlsim XML output generator for the detector description Interactive end-user browsing and navigation: Netscape IExplorer ROOT

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) S chema Evolution Evolution of data structures is challenging: Relational Databases is the technology of choice to address this problem Relational approach solution: Internal data representation in the database is not a one-to-one copy of the data user wants to use (transient representation) This is an opposite to the baseline OO DB approach When the structure of user data changes – the internal structure of the data in DB is not supposed to be changed If achieved, this is considered as a good design Transient data structures are, in essence, the “views” of the persistent data representation Effectively, database stores the persistent data dictionary for each parameter collection object, providing the schema evolution support for the object-based retrieval of parameters

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Layered Interface Database files: ISAM OS Level: disk storage Logical Data Model Structured Data Views Conversion Services Transient Detector Store Persistent Dictionary is stored together with the data Structured Data Persistent Dictionary Transient Dictionary Transient Objects Application Framework Persistent Media structuresparametersrelations

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Database Technology The relational database technology for storing the “Primary Numbers" was introduced earlier NOVA Data Model

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Primary Numbers Access Database Server Conversion Service Client Algorithms Transient DataObject Persistent DataObject Persistent Dictionary Transient Dictionary Parameters Collection Object Request Broker On-the-fly conversion G4 model by Adele Rimoldi

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Architecture Evolution An earlier approach when all the work was done in the object request broker base class is now evolved to support the new grid services architecture where the services discovery requests and the persistent-transient data conversions are now functionally separate This new approach fit best within the Gaudi/Athena architecture separating the transient and persistent data representations

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Nova Conversion Service To deliver this functionality we developed and deployed the Nova Conversion Service providing access to “Primary Numbers” within the mainstream ATLAS software framework Athena A novaClassGen utility automatically generates converters and the C++ headers Service registers “Primary Number” objects with the transient detector store Objects can be accessed in the usual StoreGate manner (retrieve) For more information see follow the link for “NOVA MySQL access ”

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) In MyAlg.h include NovaConverters header file #include "NovaConverters/NovaConverters.h” declare data member of needed types private: MintgeoBari* m_bari; In MyAlg.cxx declare DataHandle in MyAlg :: initialize() const DataHandle bari; sc = myStore->retrieve(bari); m_bari = bari; iterate over data in MyAlg :: execute() MintgeoBari::BARI* bari = m_bari->m_d; for (i=0; i size(); i++, bari++) { log ok = " ok << endreq; for (j = 0; j < 10; j++) { log type[" type[j] <<endreq; }

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Together with our collaborators we demonstrated that IOV database can provide validity- interval-based access to data that has been stored using an existing NOVA Conversion Service IOV/ConditionsDB Interface

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) NOVA Integration IOV database associates a folder name (e.g., “Tile/Pedestals”), an interval of validity [ti, tj), and a tag to a string String will contain an externalized IOpaqueAddress IOV integration with NOVA requires that NOVA: Stores multiple object instances of the same type Assign unique IOpaqueAddresses (instance names) Externalize IOpaqueAddresses as strings, “internalize” strings to create IOpaqueAddresses This capability would ideally be added to base classes for all conversion services

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Happy Users View Clients reading data do not need to know which conversion service (e.g. NOVA) is delivering the data StoreGate retrieve will typically use a key that is the folder name (e.g., “Tile/Pedestals”); timestamp information will come from the current event without user intervention (transient IOV service) Internally, this will be enough (along with a tag set in jobOptions) to retrieve the correct string; string will be changed to IOpaqueAddress; usual Athena/Gaudi conversion service mechanisms will be triggered to build an object in the transient store—all of this is hidden from the user Intent is to do nothing that will break or change current NOVA use that does not require intervals of validity: IOV database provides additional capabilities, but does not replace current mode of access to data in NOVA

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) MySQL Implementation Benefits Choice of the MySQL database for initial implementation added extra benefits: “Primary Numbers" database can be used on the developers' laptop when disconnected (using the MySQL embedded server technology), data can be updated when laptop is connected (using the MySQL database replication) MySQL support binary data transfers Cost-free scalability for content delivery: few writers thousands of readers Grid certificate authorization technologies

CHEP 2003, March 24-28, La Jolla Alexandre Vaniachine (ANL) Roadmap to Success Future directions: LCG Detector Description Project coming soon XML input implementation though the Athena framework dictionary services incorporating SEAL project deliverables Grid integration – “Primary Numbers” Service based on OGSA – DAI database services implementation including the needed XML binary extensions support from DAI