Steps Towards C++/OO Offline Software in STAR Valery Fine, Yuri Fisyak, Pavel Nevski, Victor Perevoztchikov, Torre Wenaus Brookhaven National Laboratory.

Slides:



Advertisements
Similar presentations
March 24-28, 2003Computing for High-Energy Physics Configuration Database for BaBar On-line Rainer Bartoldus, Gregory Dubois-Felsmann, Yury Kolomensky,
Advertisements

Maria Grazia Pia, INFN Genova 1 Part V The lesson learned Summary and conclusions.
23/04/2008VLVnT08, Toulon, FR, April 2008, M. Stavrianakou, NESTOR-NOA 1 First thoughts for KM3Net on-shore data storage and distribution Facilities VLV.
O. Stézowski IPN Lyon AGATA Week September 2003 Legnaro Data Analysis – Team #3 ROOT as a framework for AGATA.
DATA PRESERVATION IN ALICE FEDERICO CARMINATI. MOTIVATION ALICE is a 150 M CHF investment by a large scientific community The ALICE data is unique and.
Trigger and online software Simon George & Reiner Hauser T/DAQ Phase 1 IDR.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Advances in Technology and CRIS Nikos Houssos National Documentation Centre / National Hellenic Research Foundation, Greece euroCRIS Task Group Leader.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Zubanov Alexei, 2006 Aug 07 – Sep 28 QtROOT package extension with Coin3D lib.
Adapting Legacy Computational Software for XMSF 1 © 2003 White & Pullen, GMU03F-SIW-112 Adapting Legacy Computational Software for XMSF Elizabeth L. White.
STAR C OMPUTING Maker and I/O Model in STAR Victor Perevoztchikov.
DMSO Technical Exchange 3 Oct 03 1 Web Services Supporting Simulation to Global Information Grid Mark Pullen George Mason University with support from.
STAR C OMPUTING ROOT in STAR Torre Wenaus STAR Computing and Software Leader Brookhaven National Laboratory, USA ROOT 2000 Workshop, CERN February 3, 2000.
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.
Shuei MEG review meeting, 2 July MEG Software Status MEG Software Group Framework Large Prototype software updates Database ROME Monte Carlo.
Introduction to Hall-D Software February 27, 2009 David Lawrence - JLab.
Progress in Multi-platform Software Deployment (Linux and Windows) Tim Kwiatkowski Welcome Consortium Members November 29,
Introduzione al Software di CMS N. Amapane. Nicola AmapaneTorino, Aprile Outline CMS Software projects The framework: overview Finding more.
The GlueX Collaboration Meeting October 4-6, 2012 Jefferson Lab Curtis Meyer.
Windows Presentation Foundation. Goal The goal of Windows Presentation Foundation (WPF) is to provide these advances for Windows. Included in version.
SPACE TELESCOPE SCIENCE INSTITUTE Operated for NASA by AURA COS Pipeline Language(s) We plan to develop CALCOS using Python and C Another programming language?
Offline Coordinators  CMSSW_7_1_0 release: 17 June 2014  Usage:  Generation and Simulation samples for run 2 startup  Limited digitization and reconstruction.
4.2.1 Programming Models Technology drivers – Node count, scale of parallelism within the node – Heterogeneity – Complex memory hierarchies – Failure rates.
Learning to Use Root for STAR Gene Van Buren (UCLA) for the STAR Collaboration Accessing STAR Data Programming for STAR (Makers) Star => Computing => Tutorials.
ATLAS and GridPP GridPP Collaboration Meeting, Edinburgh, 5 th November 2001 RWL Jones, Lancaster University.
5 May 98 1 Jürgen Knobloch Computing Planning for ATLAS ATLAS Software Week 5 May 1998 Jürgen Knobloch Slides also on:
NOVA Networked Object-based EnVironment for Analysis P. Nevski, A. Vaniachine, T. Wenaus NOVA is a project to develop distributed object oriented physics.
MINER A Software The Goals Software being developed have to be portable maintainable over the expected lifetime of the experiment extensible accessible.
Acat OctoberRene Brun1 Future of Analysis Environments Personal views Rene Brun CERN.
Progress report on Muon Reconstruction based on Kalman filter Y. Fisyak, BNL.
Y.Fisyak, BNL - STAR Upgrade workshop, 12/2/ Integrated Tracker – STAR tracking framework of the future update on  status and  perspective IT(TF)
Virtual Monte Carlo and new geometry description in STAR Maxim Potekhin STAR Collaboration Meeting, BNL July 17, 2004 July 17, 2004.
STAR Event data storage and management in STAR V. Perevoztchikov Brookhaven National Laboratory,USA.
Siena Computational Crystallography School 2005
GDB Meeting - 10 June 2003 ATLAS Offline Software David R. Quarrie Lawrence Berkeley National Laboratory
STAR C OMPUTING STAR Analysis Operations and Issues Torre Wenaus BNL STAR PWG Videoconference BNL August 13, 1999.
NORDUnet Nordic Infrastructure for Research & Education Workshop Introduction - Finding the Match Lars Fischer LHCONE Workshop CERN, December 2012.
- Early Adopters (09mar00) May 2000 Prototype Framework Early Adopters Craig E. Tull HCG/NERSC/LBNL ATLAS Arch CERN March 9, 2000.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
1 1 Office of Science Jean-Luc Vay Accelerator Technology & Applied Physics Division Lawrence Berkeley National Laboratory HEP Software Foundation Workshop,
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.
LCIO A persistency framework and data model for the linear collider CHEP 04, Interlaken Core Software, Wednesday Frank Gaede, DESY -IT-
STAR C OMPUTING Plans for Production Use of Grand Challenge Software in STAR Torre Wenaus BNL Grand Challenge Meeting LBNL 10/23/98.
Linda R. Coney – 5 November 2009 Online Reconstruction Linda R. Coney 5 November 2009.
V.Fine ALICE-STAR Joint meeting April, 9, 2000 The STAR offline framework* V. Fine *) See also:
Computing R&D and Milestones LHCb Plenary June 18th, 1998 These slides are on WWW at:
STAR C OMPUTING Introduction Torre Wenaus BNL May ‘99 STAR Computing Meeting BNL May 24, 1999.
V.Fine for STAR collaboration The STAR offline framework and 3D visualization V. Fine, Y. Fisyak, V. Perevoztchikov, T.Wenaus.
General requirements for BES III offline & EF selection software Weidong Li.
Chapter – 8 Software Tools.
The MEG Offline Project General Architecture Offline Organization Responsibilities Milestones PSI 2/7/2004Corrado Gatto INFN.
V.Fine for STAR collaboration The STAR offline framework V. Fine, Y. Fisyak, V. Perevoztchikov, T.Wenaus.
1 Tracker Software Status M. Ellis MICE Collaboration Meeting 27 th June 2005.
GLAST 1 Event Display VRVS meeting Glast software collaboration Pisa experience with ROOT N Lumb and G Spandre INFN-Pisa.
David Adams ATLAS ATLAS Distributed Analysis (ADA) David Adams BNL December 5, 2003 ATLAS software workshop CERN.
Preservation of LEP Data There is still hope Is there? Marcello Maggi, Ulrich Schwickerath, Matthias Schröder, , DPHEP7 1.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
David Adams ATLAS ATLAS Distributed Analysis and proposal for ATLAS-LHCb system David Adams BNL March 22, 2004 ATLAS-LHCb-GANGA Meeting.
Next-Generation Navigational Infrastructure and the ATLAS Event Store Abstract: The ATLAS event store employs a persistence framework with extensive navigational.
Thomas Ruf, CERN EP Experience with C++ and ROOT used in the VX Beam Test Thomas Ruf, CERN, EP  Why? Event structure for VX-data rather complex: raw hits.
VI/ CERN Dec 4 CMS Software Architecture vs Hybrid Store Vincenzo Innocente CMS Week CERN, Dec
Barthélémy von Haller CERN PH/AID For the ALICE Collaboration The ALICE data quality monitoring system.
A Semi-Automated Digital Preservation System based on Semantic Web Services Jane Hunter Sharmin Choudhury DSTC PTY LTD, Brisbane, Australia Slides by Ananta.
Kai Li, Allen D. Malony, Sameer Shende, Robert Bell
CMS High Level Trigger Configuration Management
Tracker Software Status
OO-Design in PHENIX PHENIX, a BIG Collaboration A Liberal Data Model
Simulation and Physics
Presentation transcript:

Steps Towards C++/OO Offline Software in STAR Valery Fine, Yuri Fisyak, Pavel Nevski, Victor Perevoztchikov, Torre Wenaus Brookhaven National Laboratory Doug Olson, R. Jefferson Porter, Craig Tull, David Zimmerman Lawrence Berkeley National Laboratory Herbert Ward University of Texas, Austin (STAR software infrastructure group)

STAR Solenoidal Tracker At RHIC §An international collaboration of over 400 physicists located at 34 institutes §STAR will start taking data next summer (1999) §Expect to process over 300 TBytes of real and simulated data per year §STAR faces, on a short time, scale many of the same software and computing challenges that the next generation of high-energy physics experiments will be facing at the LHC.

STAR detector: - SVT - TPC - FTPC - EMC - TOF - Solenoid magnet -...

Present STAR software framework: StAF §The STAR offline software has been developed within the Standard Analysis Framework, StAF, which provides: l IDL-based CORBA-compliant encapsulation of data analysis algorithms, modules --- user-written function in C, C++, or FORTRAN l these components are controlled at run time by a high-level scripting language (KUIP) and/or by Graphical User Interfaces l tools for the manipulation of the basic components of the data model - -- StAF tables l organization of these tables in Data Set containers; l I/O for these containers via XDR library with support of schema evolution l built on top of PAW/CERNLIB l dynamical loading of modules

Present STAR software (cont.) l The system currently has 307 tables and 148 modules and ~14klocs of kumacs to control them. AGI stands for Advanced GEANT Interface

Present STAR software (cont.) §After several years of successful development we feel that the present framework has some problems: l E xtremely rapidly growing number of kumacs to control growing number of objects to handle --- tables and modules. This makes the offline system fragile and unstable.Thus the present STAR framework is facing a real problem of scalability. l The framework supports very important but only one kind of objects --- tables. It is not convenient to have only one kind of furniture in a house. In event reconstruction we lack simple ways of pointer handling. l The framework is heavily based on CERNLIB/PAW. These tools are no longer supported by CERN, do not scale to our data volumes, and are poorly matched to the C++/OO software environment we are moving towards.

To C++/OO Offline software §STAR software infrastructure group has been looking into how to replace CERNLIB and related software: l Possibility to replace KUIP with Tcl/Tk in StAF was considered, but poorly received because PAW histogramming could not be carried over into a Tcl/Tk environment l Commercial software was found to have promising presentation tools but did not offer the data analysis and fitting capabilities of PAW l We have followed the development of CERN's official PAW replacement in the LHC++ project but it was the common consensus that this software is not yet mature enough for our use, and the considerable expense its use would entail could NOT be justified. l After looking at the alternatives, and considering the limited manpower we have, which precludes significant in-house development, ROOT has emerged as the only comprehensive PAW replacement that might be usable on our time scale.

To C++/OO Offline software (cont.) §A potential problem with ROOT is the lack of official support. But l ROOT appears to be emerging as a de facto standard, in which case support within the community will inevitably follow. l Currently, with the high quality of support offered by ROOT's developers today, this is not a big problem. §The principal objective of the new effort: l is to achieve a full integration which would provide a ROOT command line and analysis environment with full access to STAR offline codes in the same way that the current StAF provides a KUIP command line and PAW environment. l An essential requirement is that code (modules) and data structures (tables) be supported without change in the ROOT environment, consistent with the STAR policy of migration to preserve existing investment rather than `revolution'. l Kumacs, of course, as KUIP-based scripts, are not supported in ROOT, and must be converted to C++ with essential semantic change.

StAF ROOT §The architecture of StAF makes the effort to build a ROOT-capable infrastructure practical. §The IDL-based definitions of modules and tables and the in- house IDL compiler, stic, made possible the automatic generation of ROOT C++ wrappers for modules and tables through the extension of stic. §The modularity and component-based design of modules make their invocation within ROOT reasonably straightforward. §The modularity and design for 'graceful retirement' of components of the StAF system code itself makes it possible to use components of it as needed together with ROOT.

Goals: l Automatically generated interface code for all modules and tables that makes it possible to access tables and invoke modules from within ROOT l Use of StAF system code to provide standard XDR I/O of data set hierarchies and tables into standard StAF data structures. ROOT access to these data structures is direct; data is not copied to ROOT objects l The same dynamic loading capability for modules in ROOT as in StAF l makefiles supporting both ROOT and StAF based use of the offline software l Direct histogramming access to tables from ROOT; the entire data model becomes effectively an Ntuple, rather than converting tables to Ntuples as in StAF l Automatically generated ROOT-style documentation for tables, their wrappers, module wrappers, and ROOT code implementing the StAF interface

§Implementation: To meet the above requirements the following C++ class library was developed which includes 10 base classes at four levels: "wrapper" level objects to wrap and describe StAF tables ( St_Table) objects to wrap and call modules ( St_Module) objects to wrap and execute kuip action ( St_Kuip) for GEANT3 "container" level objects to create the hierarchical structure of datasets( St_DataSet) objects to navigate the hierarchical structure of datasets ( St_DataSetIter) objects to create the hierarchical structure of datasets from the "native" file system structure ( St_FileSet) ``converter level'' table to/from ( St_DataSet) converter: reads and writes table with XDR format compatible with the current StAF framework ( St_XDFFile) GEANT3 geometry banks to ROOT geometry objects ( St_Geometry) C++ object level objects to describe a whole production chain (to replace the existing kumacs) ( StChain) object to describe a single step of the whole chain ( StMaker)

Implementation (cont.) § Wrapper, container and converter levels provide us the StAF functionality at least. They allow migration from the "flat table" data model to a tree-like representation with "structural" and "reference" links. §The classes of C++ object level open the window of a "real" object oriented approach (here we borrowed the idea of Chain/Maker classes developed for ATLFast project). §During the transition period this approach offer dual options of working in the ROOT environment or working in the StAF environment

Browser of GEANT3 geometry in ROOT

Forward TPC in ROOT

ROOT browser for data produced with Big Full Chain Further examples can be seen at our URL: /STAR/html/comp_l /root/index.html

Implementation (cont.) §Using Chain/Maker schema: l TPC Cosmic Ray and Laser Calibration analysis chain has been implemented in ROOT. l Big Full Chain --- data processing starting from simulation of detector response to reconstruction and DST production --- has been implemented in ROOT and is tested right now. §During coming Mock Data Challenge 1 (Sep. - Oct. 1998) we are planning to process about 2 Tbytes of data. §BFC based on both StAF and ROOT will be tested in parallel.

Work to do: §It is needed to understand at what scale we will use ROOT: l as a framework for everything or l as an analysis tool §What interface with Objectivity data base will be used ? §To develop a new STAR data model more suitable for new framework. The old data model has to be redesigned l based on experience of MDC1 during coming fall, and l tested during the MDC2 (Feb. 1999) and fixed §Education to use new framework

Conclusions §Thanks to the framework which we have (StAF) the approach has been developed in STAR l to allow graceful transition from FORTRAN/C environment to C++/OO world without breaking the system and l preserving all reliable FORTRAN/C software developed so far. §Our plan of migration from StAF to ROOT has been endorsed by the STAR collaboration. §The scale of ROOT usage in STAR software infrastructure depends on lessons learned during the coming Mock Data Challenge 1. §There is a chance to have a homogeneous software infrastructure environment for all components of the system: l starting from Data Acquisition l Online monitoring l Data production, and l analysis §and we would like to take it.