The HADES Oracle database and its interfaces for experimentalists Ilse Koenig, GSI Darmstadt for the HADES collaboration.

Slides:



Advertisements
Similar presentations
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification.
Advertisements

Technical BI Project Lifecycle
Archive Systems What you always wanted to know but were afraid to ask: What’s available? Who’s doing what? PAL EPICS Meeting Oct
1 Databases in ALICE L.Betev LCG Database Deployment and Persistency Workshop Geneva, October 17, 2005.
Reconstruction and Analysis on Demand: A Success Story Christopher D. Jones Cornell University, USA.
EventStore Managing Event Versioning and Data Partitioning using Legacy Data Formats Chris Jones Valentin Kuznetsov Dan Riley Greg Sharp CLEO Collaboration.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
Database Systems More SQL Database Design -- More SQL1.
First year experience with the ATLAS online monitoring framework Alina Corso-Radu University of California Irvine on behalf of ATLAS TDAQ Collaboration.
2/10/2000 CHEP2000 Padova Italy The BaBar Online Databases George Zioulas SLAC For the BaBar Computing Group.
Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008.
Chapter 7: Arrays. In this chapter, you will learn about: One-dimensional arrays Array initialization Declaring and processing two-dimensional arrays.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 11 Database Performance Tuning and Query Optimization.
May 14, 2001E. Gallas/Trigger Database1 Status of the Trigger Database Elizabeth Gallas, Rich Wellner, Vicky White Fermilab - Computing Division See my.
THE SIMULATION- AND ANALYSIS-FRAMEWORK FAIRROOT CHEP 2012, New York.
Shuei MEG review meeting, 2 July MEG Software Status MEG Software Group Framework Large Prototype software updates Database ROME Monte Carlo.
Irina Sourikova Brookhaven National Laboratory for the PHENIX collaboration Migrating PHENIX databases from object to relational model.
HPS Online Software Discussion Jeremy McCormick, SLAC Status and Plans.
Java Root IO Part of the FreeHEP Java Library Tony Johnson Mark Dönszelmann
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Framework for Raw Data Thomas Kuhr Offline Week 29/06/2004.
Stanford Linear Accelerator Center R. D. Hall1 EPICS Collaboration Mtg Oct , 2007 Oracle Archiver Past Experience Lessons Learned for Future EPICS.
Large-scale Incremental Processing Using Distributed Transactions and Notifications Daniel Peng and Frank Dabek Google, Inc. OSDI Feb 2012 Presentation.
Bookkeeping Tutorial. Bookkeeping & Monitoring Tutorial2 Bookkeeping content  Contains records of all “jobs” and all “files” that are created by production.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
The european ITM Task Force data structure F. Imbeaux.
PI Data Archive Server COM Points Richard Beeson.
ALICE, ATLAS, CMS & LHCb joint workshop on
Agilent Technologies Copyright 1999 H7211A+221 v Capture Filters, Logging, and Subnets: Module Objectives Create capture filters that control whether.
Clara Gaspar, March 2005 LHCb Online & the Conditions DB.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
Databases in CMS Conditions DB workshop 8 th /9 th December 2003 Frank Glege.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 9 Database Triggers.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
CHEP 2013, Amsterdam Reading ROOT files in a browser ROOT I/O IN JAVASCRIPT B. Bellenot, CERN, PH-SFT B. Linev, GSI, CS-EE.
H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2003 GSI Online Offline Object Oriented Go4.
Transportation: Refreshing Warehouse Data Chapter 13.
David Adams ATLAS DIAL: Distributed Interactive Analysis of Large datasets David Adams BNL August 5, 2002 BNL OMEGA talk.
Jan 28, 2005Elizabeth_Gallas D0_Trigger_Database 1 D0 Trigger Database Status Elizabeth Gallas Fermilab CD/D0CA Margherita Vittone, Vijay Murthi, and Steve.
Why A Software Review? Now have experience of real data and first major analysis results –What have we learned? –How should that change what we do next.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
Session 1 Module 1: Introduction to Data Integrity
Bookkeeping Tutorial. 2 Bookkeeping content  Contains records of all “jobs” and all “files” that are produced by production jobs  Job:  In fact technically.
MICE CM28 Oct 2010Jean-Sebastien GraulichSlide 1 Detector DAQ o Achievements Since CM27 o DAQ Upgrade o CAM/DAQ integration o Online Software o Trigger.
Nov 1, 2002D0 DB Taking Stock1 Trigger Database Status and Plans Elizabeth Gallas – FNAL CD (with recent help from Jeremy Simmons, John Weigand, and Adam.
Online Monitoring System at KLOE Alessandra Doria INFN - Napoli for the KLOE collaboration CHEP 2000 Padova, 7-11 February 2000 NAPOLI.
WFC3 PIPELINE CDR Jim Rose October 16, 2001OPUS Science Data Processing Space Telescope Science Institute 1 of 13 Science Data Processing
Andrea Valassi (CERN IT-DB)CHEP 2004 Poster Session (Thursday, 30 September 2004) 1 HARP DATA AND SOFTWARE MIGRATION FROM TO ORACLE Authors: A.Valassi,
Oct HPS Collaboration Meeting Jeremy McCormick (SLAC) HPS Web 2.0 OR Web Apps and Databases (Oh My!) Jeremy McCormick (SLAC)
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
Channel Archiver Overview Jan Channel Archiver Channel Access client Stores samples in disk files Design target: handle values/sec Documentation,
Towards new Graphical User Interfaces for nTOF experiment Collaboration meeting, Bologna 28 th Nov 2013 Towards new Graphical User Interfaces for nTOF.
Level 1-2 Trigger Data Base development Current status and overview Myron Campbell, Alexei Varganov, Stephen Miller University of Michigan August 17, 2000.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
The ALICE data quality monitoring Barthélémy von Haller CERN PH/AID For the ALICE Collaboration.
ATLAS The ConditionDB is accessed by the offline reconstruction framework (ATHENA). COOLCOnditions Objects for LHC The interface is provided by COOL (COnditions.
Software framework and batch computing Jochen Markert.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
1 Agenda TMA02 M876 Block 4. 2 Model of database development data requirements conceptual data model logical schema schema and database establishing requirements.
Barthélémy von Haller CERN PH/AID For the ALICE Collaboration The ALICE data quality monitoring system.
1 GlueX Software Oct. 21, 2004 D. Lawrence, JLab.
Tracking, Computing & other Stuff. Correlation of detector hits The track segments of inner and outer MDCs are matched on Cluster level The track segments.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
More SQL: Complex Queries, Triggers, Views, and Schema Modification
CMS High Level Trigger Configuration Management
TriggerDB copy in TriggerTool
History Database - Typical historical query requirements
Working with HADES WebDB HADES analysis workshop, Darmstadt, Germany, 31 January - 1 February 2012 Ilse Koenig, GSI Darmstadt Outline: Version management.
Presentation transcript:

The HADES Oracle database and its interfaces for experimentalists Ilse Koenig, GSI Darmstadt for the HADES collaboration

CHEP 2009 The HADES Oracle Database Ilse Koenig 2 The HADES GSI A High-Acceptance Di-Electron Spectrometer Expanded view ~ readout channels first production beam time Nov 2002 one prod. beam time each year ~ 500 – 800 files/day (~0.8 TB/day) (10 times more expected in 2010) actually ~ 90 analysis parameter containers (analysis of real and simulation data, ~ 40 MB for single file analysis) Expanded view

CHEP 2009 The HADES Oracle Database Ilse Koenig 3 Main usage of the HADES database DAQEPICS users Oracle related to runs by time stamps online analysis offline analysis simulation file catalog slow control databeam time logbook parameters run validation geometry electronics setup ROOT macros Run: smallest data set individually treated several files, one per event builder web interface

CHEP 2009 The HADES Oracle Database Ilse Koenig 4 Analysis initialization concept HYDRA Designed for automatic initialization  Parameters (numbers, arrays, ROOT classes,…) are stored in parameter containers, automatically created by the analysis tasks and managed by the runtime database classes.  User chooses one or two parameter sources.  The analyzed files define the parameter versions. separate shared libraries Oracle Precompiler ROOT TGeoManager Oracle ASCII FilesASCII, ROOT Files Web GUI Geometry InterfaceRuntime Database HGEANT HYDRA Version management Oracle: complete history of all parameters since 2002 ROOT file: local version management parameter file for local access snapshots of versions in Oracle Storage of parameters in Oracle: 1. Insert of parameters with a ROOT macro 2. Validation with web GUI

CHEP 2009 The HADES Oracle Database Ilse Koenig 5 Version management in Oracle 1. Parameters are not stable, but may change from run to run 2. They may change for the same run over time (history) 3. They may come in different flavors (depending e.g. on an algorithm) 3-dimensional version management history runs valid_sincevalid_until (default year 4000) date_create invalid_since (year 4000 for actual version) version 2 different flavors (contexts) defined by user automatically defined

CHEP 2009 The HADES Oracle Database Ilse Koenig 6 Version 1 Parameter versions runs history year 4000 valid_since v1 During a beam time the user inserts a version 1. Each new run is initialized with version 1. date_create v1 real time valid_until v1 valid_since v2 invalid_since v1 date_create v2 Later he adds a version 2. New runs are then initialized with version 2. run start The crossing point of run start and history date defines the parameter version version 1 version 2 history date Later new versions 3 and 4 replace the old ones Before a DST production we do a beam time specific parameter release “history date with name” Old versions can be retrieved with an old history date version 4version 3 parameter release

CHEP 2009 The HADES Oracle Database Ilse Koenig 7 Layout of parameter containers Basically two groups of parameter containers: 1.Array of objects each containing the same list of parameters  Data are stored in one or more individual tables in Oracle.  Each parameter corresponds to a table column.  Many records together form a version set of the parameter container. Example: Lookup table for an unpacker (maps readout channels to detector cells) Constraints guarantee for each parameter container version that one readout channel maps to only one detector cell and both are unique. Advantage: enforcement of data consistency via constraints and triggers Disadvantage: lack of flexibility Adding or discarding parameters needs changes in the tables and interfaces have to be done by an expert Suitable only for stable code Used for low-level analysis parameters

CHEP 2009 The HADES Oracle Database Ilse Koenig 8 Generic parameter container 2. All parameters are stored as name – object pairs in the same set of tables parameter container parameterobject allows to add or discard (invalidate) a parameter makes it (almost) code independent different versions name type: Int_t, Float_t, Double_t, Char_t, Text_t, UChar_t, class type stored as byte array (RAW or BLOB) number of values (single value or array) class version streamer info, root version for ROOT classes own version management any class derived from TObject decoded in the analysis interface by ROOT streamer

CHEP 2009 The HADES Oracle Database Ilse Koenig 9 Implementation and interfaces for generic parameter containers  Requires only a few lines of dedicated C++ code in the container class  Generic read and write interfaces for Oracle, ROOT and ASCII files implemented in base classes  The Oracle interface stores a snapshot of parameters in a ROOT TList. The parameter container copies only parameters defined in the actual code version.  The user stores the parameter in Oracle by a ROOT macro. At validation, new parameters are added automatically. Old parameters no longer needed stay valid until explicitly set invalid.  No database expert needed!  Web-based graphical interface to Oracle for validation, searches and comparisons Suitable also for non-stable code Used for conditions and high-level analysis parameters

CHEP 2009 The HADES Oracle Database Ilse Koenig 10 Web Interface more than 100 dedicated applications in tree-organized folders written in PL/SQL, uses Oracle application server access to parameter sets in a beam time

CHEP 2009 The HADES Oracle Database Ilse Koenig 11 HYDRA parameter containers all parameter containers grouped by shared libraries

CHEP 2009 The HADES Oracle Database Ilse Koenig 12 Parameter data Although stored as binary, C-type values and arrays are converted. Classes are decoded only by the analysis interface

CHEP 2009 The HADES Oracle Database Ilse Koenig 13 Online storage of EPICS slow control data Program developed at SLAC by Lee Ann Yasuhawa and Bob Hall extension of the Channel Archiver, slightly modified streaming with OCI Direct Loader EPICS Oracle 10 min partitions, not indexed 1 day partitions local index (timestamp, channel) once per day (Oracle scheduler jobs) data moved, old partitions dropped, new partitions created Online storage of ~ 3000 channels, total rate ~100 Hz, GB per beam time Problem: not performing for fast scans on a single channel over a long time range Generation of run based summaries For each run and channel: mean, min, max value, sigma, number of data, timestamp of first entry,... Interfaces: Web interface  filtering  graphics with JAVA applet Analysis interface  ROOT graphics  Run validation  Parameter containers to be used in the event loop

CHEP 2009 The HADES Oracle Database Ilse Koenig 14 Run based summary Displayed by analysis interface Example: RICH HV summaries for one day of beam time Blue points: mean HV value for one run Error bars: sigma of mean value Large error bars indicate a HV trip. The summaries allow to scan the data of a whole beam time within seconds. index of run summary HV[V] data for one run

CHEP 2009 The HADES Oracle Database Ilse Koenig 15Summary Since start-up HADES successfully employs an Oracle database. Our overall design has been proven to be flexible enough to adapt to new requirements with small modifications and to be manageable with very restricted manpower. The HADES initialization concept and its interfaces are also implemented in FAIRROOT, the analysis and simulation framework used by the FAIR experiments CBM and PANDA. The HADES collaboration More than 100 scientists from 17 institutions in 9 European countries Special thanks to M. Dahlinger from GSI IT department for providing us a very stable server.