STAR VMC project Maxim Potekhin for the STAR Collaboration VMC workshop at CERN Nov. 29-30 2004.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

March 24-28, 2003Computing for High-Energy Physics Configuration Database for BaBar On-line Rainer Bartoldus, Gregory Dubois-Felsmann, Yury Kolomensky,
Key-word Driven Automation Framework Shiva Kumar Soumya Dalvi May 25, 2007.
The XML-based geometry description for the STAR experiment Maxim Potekhin BNL CHEP 2003.
Case Tools Trisha Cummings. Our Definition of CASE  CASE is the use of computer-based support in the software development process.  A CASE tool is a.
Introduction To System Analysis and Design
© Copyright Eliyahu Brutman Programming Techniques Course.
Automated Tests in NICOS Nightly Control System Alexander Undrus Brookhaven National Laboratory, Upton, NY Software testing is a difficult, time-consuming.
Simulation Project Organization update & review of recommendations Gabriele Cosmo, CERN/PH-SFT Application Area Internal.
MDC Open Information Model West Virginia University CS486 Presentation Feb 18, 2000 Lijian Liu (OIM:
Adapting Legacy Computational Software for XMSF 1 © 2003 White & Pullen, GMU03F-SIW-112 Adapting Legacy Computational Software for XMSF Elizabeth L. White.
Implementation Yaodong Bi. Introduction to Implementation Purposes of Implementation – Plan the system integrations required in each iteration – Distribute.
REVIEW OF NA61 SOFTWRE UPGRADE PROPOSAL. Mandate The NA61 experiment is contemplating to rewrite its fortran software in modern technology and are requesting.
Quality Attributes of Web Software Applications – Jeff Offutt By Julia Erdman SE 510 October 8, 2003.
An Introduction to Software Architecture
Architecture-Based Runtime Software Evolution Peyman Oreizy, Nenad Medvidovic & Richard N. Taylor.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
STAR Simulation Overview Maxim Potekhin STAR Collaboration Meeting BNL February 28, 2003 February 28, 2003.
Introduction to MDA (Model Driven Architecture) CYT.
Introduction To System Analysis and Design
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
1 Planning for Reuse (based on some ideas currently being discussed in LHCb ) m Obstacles to reuse m Process for reuse m Project organisation for reuse.
MINER A Software The Goals Software being developed have to be portable maintainable over the expected lifetime of the experiment extensible accessible.
XML in Atlas: from generic to parametric detector description Stan Bentvelsen NIKHEF Amsterdam XML workshop, CERN, May 22.
Mumbai - India 1 Using XML for Detector Geometry Description in the Virtual Monte Carlo Framework V.Fine, J.Lauret, M.Potekhin STAR Collaboration, Brookhaven.
R.T. Jones, Newport News, May The GlueX Simulation Framework GEANT4 Tutorial Workshop Newport News, May 22-26, 2006 R.T. Jones, UConn Monte Carlo.
ModelPedia Model Driven Engineering Graphical User Interfaces for Web 2.0 Sites Centro de Informática – CIn/UFPe ORCAS Group Eclipse GMF Fábio M. Pereira.
Virtual Monte Carlo and new geometry description in STAR Maxim Potekhin STAR Collaboration Meeting, BNL July 17, 2004 July 17, 2004.
The GeoModel Toolkit for Detector Description Joe Boudreau Vakho Tsulaia University of Pittsburgh CHEP’04 Interlaken.
ECE450 - Software Engineering II1 ECE450 – Software Engineering II Today: Introduction to Software Architecture.
GDB Meeting - 10 June 2003 ATLAS Offline Software David R. Quarrie Lawrence Berkeley National Laboratory
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
- 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.
CASE (Computer-Aided Software Engineering) Tools Software that is used to support software process activities. Provides software process support by:- –
VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05.
NOVA A Networked Object-Based EnVironment for Analysis “Framework Components for Distributed Computing” Pavel Nevski, Sasha Vanyashin, Torre Wenaus US.
Firmware - 1 CMS Upgrade Workshop October SLHC CMS Firmware SLHC CMS Firmware Organization, Validation, and Commissioning M. Schulte, University.
Doing a CIM Project. 22 CIM Design Center  A rule I learned about applying technology:  Understand the design center of the technology.  Use extreme.
Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.
Topic 4 - Database Design Unit 1 – Database Analysis and Design Advanced Higher Information Systems St Kentigern’s Academy.
Software Reuse Course: # The Johns-Hopkins University Montgomery County Campus Fall 2000 Session 4 Lecture # 3 - September 28, 2004.
LCG – AA review 1 Simulation LCG/AA review Sept 2006.
1 Here are some quotations to get an overview of the kinds of issues of interest.
GlueX Computing GlueX Collaboration Meeting – JLab Edward Brash – University of Regina December 11 th -13th, 2003.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
The V-Atlas Event Visualization Program J. Boudreau, L. Hines, V. Tsulaia University of Pittsburgh A. Abdesselam University of Oxford T. Cornelissen NIKHEF.
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.
Chapter 10 Software quality. This chapter discusses n Some important properties we want our system to have, specifically correctness and maintainability.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
CERN, 7 November 2011 Anton Pytel Slovak Technical University TRIP FROM GENERATORS TO GEOMETRIES.
Case Study of Agile Development Ronald J. Leach Copyright Ronald J. Leach, 1997, 2009, 2014,
European Organization for Nuclear Research
A C++ generic model for the GLAST Geometric Description
Complexity Time: 2 Hours.
Markus Frank CERN/LHCb CHEP2013, Amsterdam, October 14th–18th 2013
HEP detector description supporting the full experiment life cycle
API Documentation Guidelines
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Use of Geant4 in experiment interactive frameworks AliRoot
Simulation Framework Subproject cern
G4 Workshop 2002 Detector Description Parallel Session
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Building a “System” Moving from writing a program to building a system. What’s the difference?! Complexity, size, complexity, size complexity Breadth.
Presentation transcript:

STAR VMC project Maxim Potekhin for the STAR Collaboration VMC workshop at CERN Nov

Overview of the STAR VMC effort Motivations for the transition from the current legacy system to VMC have been presented at CHEP’03 and 04. –STAR as a running experiment has an estimated lifetime of approximately 10 years, hence an urgent need to address the maintainability issue –Reliable production is a priority, for both experimental data and Monte Carlo. There is an extensive body of reconstruction software that must be interfaced with by any new simulation system, and the issue of shared components must be resolved –There are, and will be, ongoing upgrades that require simulation and geometrical modeling. New tools and approaches are needed to make the upgrades successful Evolution of the STAR simulation software is a necessity rather than a choice

Overview of the STAR VMC effort We maintain focus on the creation of a single source, unified geometry model for simulation and reconstruction We are borrowing from the Alice VMC experience In addition, attention is being paid to –Interface with the existing reconstruction software in STAR (how do we pass the data?) –Tools for the Detector Description –Hit structure declaration (sensitive detector description) –Visualization (work by V.Fine) –User-prescribed volume enumeration

Overview of the STAR VMC effort What do we bring to the VMC table? –as a running experiment, we are in the position to fully test VMC in all its aspects, including the geometry model and integration with reconstruction software –will test ROOT geometry as applied in reconstruction –we are interested in the development of the Detector Description and visualization tools, and have resources to do work in that direction –we would like to continue collaboration and exchange of ideas with the VMC developers and users, and believe that this would be beneficial for everyone In the following, we will consider just two aspects of the VMC: –code base –geometry model and Detector Description

VMC Code Base We are using the TGeant3 class, which currently includes the GEANT 3.21 library Obviously, TGeant3 depends on ROOT There are other critical applications (such as the main reco engine named root4star) that have dependencies on ROOT and GEANT, and which do not necessarily run the DEV version of ROOT There are other critical applications (such as the main simu engine named starsim) that depend on GEANT but not ROOT  root4star sometimes needs to load GEANT but not always TGeant3  starsim needs to load GEANT and never needs ROOT  we would like to use the same version of GEANT in both  can’t have a ROOT dependency in strarsim Solution: factoring out the GEANT 3.21 library? Why not? Makes a lot of sense from the software engineering point of view as it improves modularity and allows STAR to run its software in a sensible way

VMC Code Base Decoupling TGeant3 and GEANT 3.21: –The main idea is to use a simple bridge class to fully decouple those. This new class is called G3BridgeApp, and it contains wrappers for TGeant3 functions that were previously called from geant3. This is accomplished by having function pointers to those, and storing them in the container class G3Bridge, which is used in G3BridgeApp. –If a pointer is loaded, the corresponding callback is done, as in this example: void gukine_() {if (gBrd.m_gukine) (*(Sub0)gBrd.m_gukine)();} –A few minor functions moved to GEANT 3.21 as there is no dependency on them in TGeant3

Geometry We plan to employ the ROOT geometry in the STAR detector model for the following reasons: ROOT already being a critical components of the STAR software ROOT geometry is feature-rich and suitable for complex systems proven in GEANT-like applications such as VMC can be used in event displays and potentially offers sophisticated graphic functionality can be considered “platform neutral” as it is not really tied to any particular application such as GEANT, and can be productively used to navigate geometry in STAR reconstruction can provide a consistent geometry interface with reconstruction more flexible, and portable, geometry description: geometry persistent in ROOT files, XML, etc

Geometry We will pursue a structured solution for the STAR Detector Description, and try to avoid, if possible, using C++ code as primary source for the following reasons: –Based on our experience, we believe that having a formal geometry description in a declarative language (similar in idea to what we have now), will facilitate the transition to the new platform –Formally structured document is superior in terms of maintenance (can use formal editing and structure visualization tools) – see examples below –Having the geometry source outside ROOT opens other possibilities such as interfacing other detector visualization systems not necessarily tied to ROOT

XML-based solution? Using XML-based solution can facilitate the geometry development cycle, as a broad array of tools is available to edit, validate and visualize the structure of XML documents. The developers and users are not tied to a particular framework such as G4 or TGeo, and via XML transforms, can benefit from geometry visualization and other tools. Experience with XML so far: –we don’t care what particular schema is used as long as it’s adequate –coming from the ROOT angle, what does GDML have to offer? –observe that XML was used in CMS and LHCb experiments, etc –observe that XML detector description was discontinued at ATLAS

XML-based solution? <array name="zs" values=" ; ; ; ; ; ; ; ; ;-855.0; ; ; ; ;-711.0; ; ; ; ;-621.0; ; ; ; ; ; ; ; ; ; "/>

XML? XML is presentable in a variety of clients including the IE. Emphasizing the structure via the layout can make editing and maintenance easier: ← expanded nodes

C++? for (i = 0; i < (nLayers-1); i++ ) { label = "XU" ; label += i ; Float_t tseg ; tseg = geom->GetECScintThick()+geom->GetECPbRadThick(); envelopA[5] = envelopA[6] ; // rmin at z1 envelopA[4] = geom->ZFromEtaR(envelopA[5] + tseg, geom->GetArm1EtaMin()); // z coordinate 1 envelopA[7] = geom->ZFromEtaR(envelopA[5] + tseg, geom->GetArm1EtaMax()); // z coordinate 2 envelopA[6] = envelopA[5] + tseg ; // rmax at z1 envelopA[8] = envelopA[5] ; // radii are the same. envelopA[9] = envelopA[6] ; // radii are the same. gMC->Gsvolu(label.Data(), "PGON", idtmed[1599], envelopA, 10); // Position XUi in XEN1 gMC->Gspos(label.Data(), 1, "XEN1", 0.0, 0.0, 0.0, idrotm, "ONLY") ;

Geometry Successful XML implementation is characterized by the following set of parameters: A sufficient assortment of primitives (solids), allowing the user to describe complex geometries. In addition, a straightforward mapping to the solids that exist in the popular simulations engines such as GEANT 3 (further referred to as G3), GEANT 4 (G4) and the Root geometry (TGeo), is preferred. It is sometimes called solids compatibility Self-contained, single source detector description, i.e. the XML geometry specification should be self contained and not involve significant pieces of structural information coded separately and in a different language. Support for the inherent symmetry in the structure being described, i.e. being able to describe identical entities being positioned multiple times, while only describing the underlying volume once and positioning the copies implicitly, according to a rule. Volume parameterization Facilities that support arithmetic expressions A possibility to separate the structural component (such as the topology of volume hierarchy) from the numerical data component (such as volume positions and sizes). For the purposes of “primary source”, static XML code is not adequate as the “conditions” data will typically be maintained in an external database

Geometry Is GDML the right tool for us? It is instructive to compare GDML and some other XML implementation of the Detector Description system, such as AGDD Let us follow criteria listed on the previous page: Solids compatibility: by and large, both are adequate for the task Self-contained source: yes in both (version 6 of AGDD) Volume parameterization: different approach, similar capability Facilities that support arithmetic expressions: “yes” in both Numerical data component: currently “no” in both Differences - the following are unique in AGDD, in the area of symmetry: Arrays Iterators Multiple positioning operators GDML is not suited to be a “primary source” geometry description medium as is lacks in the area of symmetry and database interface. It is currently considered an “exchange” format and presents a serialized and static code. What’s the next step?

Conclusions STAR is working on a transition from a legacy simulation software to a modern platform which is likely to be VMC based Being an active (and busy) experiment creates a set of requirements and conditions –interface with existing reconstruction software –ease of writing up and maintaining the Detector Description: users should be available to start work on the new description right away, using visualization tools available (and not necessarily ROOT-based) –STAR a motivated collaborator in the VMC effort, willing to contribute resources to development, testing, and performance enhancement ROOT geometry a likely candidate for the geometry model in both simulation and reconstruction Detector Description is on the critical path (see above), hence our interest in a structured geometry description, possibly XML based – still looking for the right schema