CHEP 2003 - 3/21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.

Slides:



Advertisements
Similar presentations
H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2004 Go4 v2.8 Analysis Design.
Advertisements

March 24-28, 2003Computing for High-Energy Physics Configuration Database for BaBar On-line Rainer Bartoldus, Gregory Dubois-Felsmann, Yury Kolomensky,
SoftLab Project Winter 2008 Supervisor: Victor Kulikov Students: Dmitry Kanevsky Nir Lev-Ari.
Reconstruction and Analysis on Demand: A Success Story Christopher D. Jones Cornell University, USA.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
ASP.NET Programming with C# and SQL Server First Edition
Witek Pokorski, Radovan Chytracek, Jeremy McCormick, Giovanni Santin
LHCb Simulation Tutorial CERN, 21 st -22 nd February B 00 l e How to pass a detector geometry to.
XML I/O in ROOT S. Linev, R. Brun, H.G. Essel CHEP 2004.
LHCb Simulation Tutorial CERN, 21 st -22 nd February B 00 l e Detector Simulation and Geant4.
Framework for track reconstruction and it’s implementation for the CMS tracker A.Khanov,T.Todorov,P.Vanlaer.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
Imperial College Tracker Slow Control & Monitoring.
Conditions DB in LHCb LCG Conditions DB Workshop 8-9 December 2003 P. Mato / CERN.
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,
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.
XML in Atlas: from generic to parametric detector description Stan Bentvelsen NIKHEF Amsterdam XML workshop, CERN, May 22.
ALICE, ATLAS, CMS & LHCb joint workshop on
Clara Gaspar, March 2005 LHCb Online & the Conditions DB.
The Persistency Patterns of Time Evolving Conditions for ATLAS and LCG António Amorim CFNUL- FCUL - Universidade de Lisboa A. António, Dinis.
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER Charles Leggett Interval of Validity Service IOVSvc ATLAS Software Week May Architecture.
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER Charles Leggett Interval of Validity Service IOVSvc EDM Workshop Detector Description Session.
The GeoModel Toolkit for Detector Description Joe Boudreau Vakho Tsulaia University of Pittsburgh CHEP’04 Interlaken.
JACO JACO - Java Access to C++ Objects Mark Dönszelmann and Tony Johnson 25 May 2000.
Using of XML for object store S. Linev, GSI Using of XML for object store. S.Linev2 Content XML and existing packages XML and existing packages.
Detector Description in LHCb (Extended Version) Detector Description Workshop 4 July 2002 S. Ponce - CERN.
LCIO A persistency framework and data model for the linear collider CHEP 04, Interlaken Core Software, Wednesday Frank Gaede, DESY -IT-
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.
23/2/2000Status of GAUDI 1 P. Mato / CERN Computing meeting, LHCb Week 23 February 2000.
Development of the CMS Databases and Interfaces for CMS Experiment: Current Status and Future Plans D.A Oleinik, A.Sh. Petrosyan, R.N.Semenov, I.A. Filozova,
Claudio Grandi INFN-Bologna CHEP 2000Abstract B 029 Object Oriented simulation of the Level 1 Trigger system of a CMS muon chamber Claudio Grandi INFN-Bologna.
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER Charles Leggett Interval of Validity Service IOVSvc ATLAS Software Week Architecture Session.
Overview of C/C++ DB APIs Dirk Düllmann, IT-ADC Database Workshop for LHC developers 27 January, 2005.
27 March 2003RD Schaffer & C. Arnault CHEP031 Use of a Generic Identification Scheme Connecting Events and Detector Description in Atlas  Authors: C.
Gloria Corti, CERN Credits to Chris Jones, Wouter Hulsbergen, Sajan Easo, Dima Popov Computing Workshop Online/Databases/Detector Description Session Paris.
25th Nov, 1999 LHCb Event Data Model Pavel Binko, LHCb / CERN 1 LHCb Software Week LHCb Event Data Model Pavel Binko LHCb / CERN.
9/29/ CMS Detector Description: New Developments Ad Aerts Eindhoven University of Technology, Eindhoven, The Netherlands Martin Liendl CERN, Geneva,
Marco Cattaneo, 6-Apr Issues identified in sub-detector OO software reviews Calorimeters:18th February Tracking:24th March Rich:31st March.
Detector Description (Overview) C.Cheshkov. 25/9/2006Detector Description (C.Cheshkov)OutlineTerminology Overview on: Detector geometry implementation.
Partially Populated for ADT Messages
Maria del Carmen Barandela Pazos CERN CHEP 2-7 Sep 2007 Victoria LHCb Online Interface to the Conditions Database.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
CERN, 7 November 2011 Anton Pytel Slovak Technical University TRIP FROM GENERATORS TO GEOMETRIES.
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.
DANA David Lawrence Oct. 21, D. Lawrence, JLab GlueX Software Workshop Oct Outline Requirements Philosophy Overview of Features Open Questions.
New Xml Converters General presentation of Xml converters The old way
(on behalf of the POOL team)
CMS High Level Trigger Configuration Management
Markus Frank CERN/LHCb CHEP2013, Amsterdam, October 14th–18th 2013
HEP detector description supporting the full experiment life cycle
XML in LHCb Detector Description Framework Radovan Chytracek CERN
SW Architecture SG meeting 22 July 1999 P. Mato, CERN
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Various News From Detector Description
Detector Description in LHCb
GAUSS - GEANT4 based simulation for LHCb
Simulation and Physics
Muon Group Software Report
G4 Workshop 2002 Detector Description Parallel Session
Detector Geometry Description
Detector description News
Event Storage GAUDI - Data access/storage Framework related issues
Andrea Valassi Pere Mato
Planning next release of GAUDI
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Calibration Infrastructure Design
Presentation transcript:

CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN

2/18CHEP /21/03Sébastien Ponce Topics ● Detector data overview ● Structure, Transient Store, XML backend ● Possible extensions ● Parameters, Full extension ● Condition Database ● Purpose, Implementation, Impact on user ● Tools ● Simulation, Geometry Checker, Visualization

3/18CHEP /21/03Sébastien Ponce Data Diagram Structure Material Geometry DetElem Geometry Info Calibration Condition Alignment Condition Readout Condition MuonStation EcalCluster Condition Conditions EcalClusterCondition MuonStationAlignment VeloReadout Lvolume Pvolume Solid Box Sphere * Points to Inherits from Resolved on demand Material IsotopeMixture Element

4/18CHEP /21/03Sébastien Ponce Transient Store ● Tree-like structure ● Items identified by a logical name ● Load/update on demand ● Automatic update when new event Geometry Lvolume Geometry Db Detector Data Service Persistency Service Algorithm Ask for Object Retrieve pointer Check presence Load Ask creation Cnv

5/18CHEP /21/03Sébastien Ponce XML Backend ● Easy to read and to parse ● Extensible ● Easy to convert ● Many tools ● Extended using references <box name="box3“ sizeX="1*m“ sizeY="1*m“ sizeZ="15*cm"/> <tubs name="tub2“ outerRadius="15*cm“ sizeZ="25*cm"/> protocol://hostname/path/file.xml#ObjectID

6/18CHEP /21/03Sébastien Ponce User Extensions ● Why ? ● In order to implement specific behavior (e.g. answering specific simulation questions) ● Add specific information to elements / conditions ● How ? ● By specializing the Detector Element / Condition ● 3 main possibilities : ● Usage of parameters in the XML code ● Specialization of the C ++ object only ● Full extension, including XML, DTD and C ++ converters

7/18CHEP /21/03Sébastien Ponce Parameter Extension *mm SmartDataPtr station (detSvc(), "/dd/Structure/LHCb/Muon/MStation01"); std::cout param("Al_thickness"); SmartDataPtr station (detSvc(), "/dd/Structure/LHCb/Muon/MStation01"); std::cout param("Al_thickness"); ● Definition of parameters (name, type and value) in the XML code ● Vectors of parameters also allowed ● Direct and easy access in C ++

8/18CHEP /21/03Sébastien Ponce C++ Class Extension ● New C ++ class inheriting from DetectorElement ● Any member or method may be added ● Its initialize method is called by the framework. ● A dummy converter is needed (2 lines) class MyDetElem : public DetectorElement { int getChannelNb() { return chNb; } StatusCode initialize() { chNb = paramAsInt (“ChNb”); return SUCCESS; } private : int chNb; } static CnvFactory > s_factory; const ICnvFactory& XmlMyDetElemCnvFactory = s_factory;

9/18CHEP /21/03Sébastien Ponce Full Extension ● Extension of the DTD to define new XML elements inside the element ● Parsing of the new XML code using dedicated converters ● Still specialized C ++ objects <channelSet name="Controls"> <channels name=”in” nb="20"/> <channels name=”out” nb="150"/> <channelSet name="Controls"> <channels name=”in” nb="20"/> <channels name=”out” nb="150"/> if ("channels" == elementName) { string name = childElement.getAttribute ("name"); int nb = xmlSvc()->eval(childElement.getAttribute("nb")); currentChannelSet->addChannel(name, nb); } if ("channels" == elementName) { string name = childElement.getAttribute ("name"); int nb = xmlSvc()->eval(childElement.getAttribute("nb")); currentChannelSet->addChannel(name, nb); }

10/18CHEP /21/03Sébastien Ponce CondDB Purpose Data Item Time Version ● To deal with time varying data like calibration, alignment, environment (temperatures)... ● Handle several versions of a given data ● Also deal with the geometry, which is also time dependent (longer period though)

11/18CHEP /21/03Sébastien Ponce CondDB Implementation Geometry Lvolume Detector Data Service Persistency Service Algorithm Ask for Object Retrieve pointer Check presence Ask creation Cnv Condition Db Condition Service Ask for data Retrieve them from Database Abstract interface ● Additional service of the framework ● Independent of the type of data contained (XML) ● Based on an abstract interface with several possible backends (Objectivity, ORACLE, MySQL)

12/18CHEP /21/03Sébastien Ponce Impact on End User ● No impact on the "raw" XML code ● Only references are changed by the usage of the "conddb" protocol in references ● No change at all in the C ++ code : the correct data are loaded depending on the event time <conditionref href="conddb:/CONDDB/SlowControl/Hcal/scHcal#scHcal"/> <conditionref href="conddb:/CONDDB/SlowControl/Hcal/scHcal#scHcal"/>

13/18CHEP /21/03Sébastien Ponce XmlEditor Tool ● Specialized XML Editor for Detector data ● Understanding cross file references ● Hides the complexity of XML from the end user ● Tree like structure a la explorer ● Easy drag & drop, cut & paste ● Insure that the XML is well-formed and valid ● Still writes human readable, indented XML

14/18CHEP /21/03Sébastien Ponce XmlEditor Tool

15/18CHEP /21/03Sébastien Ponce Geometry Checkers ● Visual checker : ● based on David : Dawn's Visual Intersection Debugger ● Uses GiGa : Gaudi interface to Geant4 applications ● Gaudi Transport Service : ● More precise ● More reliable

16/18CHEP /21/03Sébastien Ponce Visualization Tool ● Event and geometry viewer ● Interfaced with Gaudi via scripting services

17/18CHEP /21/03Sébastien Ponce Visualization (2)

18/18CHEP /21/03Sébastien Ponce Conclusion ● A fully functionnal and stable solution ● Many tools provided : ● For XML generation ● For geometry cheching ● For visualization ● Used successfully for simulation, reconstruction and analysis