AliRoot Classes for access to Calibration and Alignment objects Magali Gruwé CERN PH/AIP ALICE Offline Meeting February 17 th 2005 To be presented to detector.

Slides:



Advertisements
Similar presentations
ILDG File Format Chip Watson, for Middleware & MetaData Working Groups.
Advertisements

1 Databases in ALICE L.Betev LCG Database Deployment and Persistency Workshop Geneva, October 17, 2005.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
Chiara Zampolli in collaboration with C. Cheshkov, A. Dainese ALICE Offline Week Feb 2009C. Zampolli 1.
Agenda Journalling More Embedded SQL. Journalling.
® IBM Software Group © 2009 IBM Corporation Rational Publishing Engine RQM Multi Level Report Tutorial David Rennie, IBM Rational Services A/NZ
ALICE Offline week, CERN 21 February 2005 I. Hrivnacova 1 New geometry framework in MUON I.Hrivnacova IPN, Orsay ALICE Offline week, CERN 21 February 2005.
Alice off-line meeting Alberto Colla Cern, October 3, 2005 AliEn How-To Alice off-line meeting Cern, October 3, 2005 Alberto Colla (Alice off-line Calibration.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice SISP Training Documentation Template.
HPS Online Software Discussion Jeremy McCormick, SLAC Status and Plans.
Conditions DB in LHCb LCG Conditions DB Workshop 8-9 December 2003 P. Mato / CERN.
ALMA Integrated Computing Team Coordination & Planning Meeting #1 Santiago, April 2013 Relational APDM & Relational ASDM models effort done in online.
Exceptions Handling Exceptionally Sticky Problems.
Framework for Raw Data Thomas Kuhr Offline Week 29/06/2004.
Software Solutions for Variable ATLAS Detector Description J. Boudreau, V. Tsulaia University of Pittsburgh R. Hawkings, A. Valassi CERN A. Schaffer LAL,
Defining New Types Lecture 21 Hartmut Kaiser
ILDG Middleware Status Chip Watson ILDG-6 Workshop May 12, 2005.
1 Recitation 8. 2 Outline Goals of this recitation: 1.Learn about loading files 2.Learn about command line arguments 3.Review of Exceptions.
Chapter 14 Generics and the ArrayList Class Slides prepared by Rose Williams, Binghamton University Copyright © 2008 Pearson Addison-Wesley. All rights.
Copyright 2004 Scott/Jones Publishing Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 7 Structured Data and Classes.
UNIX Files File organization and a few primitives.
Calibration API in JANA David Lawrence, Jlab July 17, 2007.
Configuration Database David Forrest 15th January 2009 CM23, HIT, Harbin.
Infrastructure for QA and automatic trending F. Bellini, M. Germain ALICE Offline Week, 19 th November 2014.
ALICE Condition DataBase Magali Gruwé CERN PH/AIP Alice Offline week May 31 st 2005.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
4 Oct 2005 / Offline week Shuttle program for gathering conditions data from external DB Boyko Yordanov 4 October 2005 ALICE Offline week.
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 5 Creating Classes.
Copyright © 2002 W. A. Tucker1 Chapter 10 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Collaboration Meeting in Pisa Presented by Matthias Schneebeli.
Methods Methods are how we implement actions – actions that objects can do, or actions that can be done to objects. In Alice, we have methods such as move,
1 Outline: Update on muon/dimuon AOD production (R. Arnaldi/E. Scomparin) Other ongoing activities: MUON correction framework (X. Lopez) MUON productions.
More about Java Classes Writing your own Java Classes More about constructors and creating objects.
ITS Calibration Database Requirements Updated By Bjørn S. Nilsen On behalf of the ALICE ITS Sub-detector Group.
New Classes for Debug, Info and Error Messages Thomas Kuhr Offline Week 15/09/2004.
Alberto Colla - CERN ALICE off-line week 1 Alberto Colla ALICE off-line week Cern, May 31, 2005 Table of contents: ● Summary of requirements ● Description.
Computing for Alice at GSI (Proposal) (Marian Ivanov)
A. Gheata, ALICE offline week March 09 Status of the analysis framework.
M. Oldenburg GridPP Metadata Workshop — July 4–7 2006, Oxford University 1 Markus Oldenburg GridPP Metadata Workshop July 4–7 2006, Oxford University ALICE.
Summary of User Requirements for Calibration and Alignment Database Magali Gruwé CERN PH/AIP ALICE Offline Week Alignment and Calibration Workshop February.
Summary of Workshop on Calibration and Alignment Database Magali Gruwé CERN PH/AIP ALICE Computing Day February 28 th 2005.
Module 9. Dealing with Generalization Course: Refactoring.
Presented By:. What is JavaHelp: Most software developers do not look forward to spending time documenting and explaining their product. JavaSoft has.
I. BelikovALICE Offline Week, CERN, 12 June ESD Classes and the Combined Reconstruction What is the ESD ? Two new classes AliESD and AliESDtrack.
15 – PHP(5) Informatics Department Parahyangan Catholic University.
Analysis train M.Gheata ALICE offline week, 17 March '09.
Go4 Workshop J.Adamczewski-Musch, S.Linev Go4 advanced features.
AliRoot survey: Reconstruction P.Hristov 11/06/2013.
Java Generics. Lecture Objectives To understand the objective of generic programming To be able to implement generic classes and methods To know the limitations.
Some topics for discussion 31/03/2016 P. Hristov 1.
AliRoot survey: Calibration P.Hristov 11/06/2013.
I.BelikovWeekly Offline Meeting, CERN, 14 Sep Common track parameterization for the barrel detectors.
Monthly video-conference, 18/12/2003 P.Hristov1 Preparation for physics data challenge'04 P.Hristov Alice monthly off-line video-conference December 18,
CT-PPS DB Info (Preliminary) DB design will be the same as currently used for CMS Pixels, HCAL, GEM, HGCAL databases DB is Oracle based A DB for a sub-detector.
DANA David Lawrence Oct. 21, D. Lawrence, JLab GlueX Software Workshop Oct Outline Requirements Philosophy Overview of Features Open Questions.
DB and Information Flow Issues ● Selecting types of run ● L1Calo databases ● Archiving run parameters ● Tools Murrough Landon 28 April 2009.
V4-18-Release P. Hristov 21/06/2010.
Installation of the ALICE Software
Handling Exceptionally Sticky Problems
News on the CDB Framework
fields of possible improvement
The new AliRoot DB access classes
Off-line weekly meeting
Conditions Data access using FroNTier Squid cache Server
Analysis framework - status
Use of Multiple Devices
Coding Concepts (Basics)
Use of Geant4 in experiment interactive frameworks AliRoot
Handling Exceptionally Sticky Problems
Offline framework for conditions data
Presentation transcript:

AliRoot Classes for access to Calibration and Alignment objects Magali Gruwé CERN PH/AIP ALICE Offline Meeting February 17 th 2005 To be presented to detector representatives during Alignment and Calibration Workshop (February 23 rd )

2 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Layout  Wish list  Functionalities  Usage  AliRoot classes  AliRunData  AliMetaData  AliRunDataStorage  AliRunDataFile  AliRunDataAlien  In practice (what does a user have to do?)  In the macros  In the reconstruction code

3 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Wish list/Functionalities  Simple user interface  Identification of data by strings  Automatically get the right object that is valid for the current run  Same interface for different types of data sources (Simple file, AliEn, something else?…)

4 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Example of usage  Detector person would like to retrieve some parameter of its sub-detector:  In a macro, specify where the data is stored (local file?, AliEn?)  In the macro, specify metadata:  Which data to get (specified by a string)?  Specific version of the data?  Other characteristics?  The required data is retrieved:  Valid for current run  Closest to specified version or most recent version  Possibility to store the retrieved data into a local file for later usage

5 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Layout  Wish list  Functionalities  Usage  AliRoot classes  AliRunData  AliMetaData  AliRunDataStorage  AliRunDataFile  AliRunDataAlien  In practice (what does a user have to do?)  In the macros  In the reconstruction code

6 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Schema AliRunDataAlien AliRunDataFile AliRunDataCombination AliRunDataStorageAliRunData AliRunLoader AliDETReconstructor GetRunObject(“string”) Get(“string”,run number) AliMetaData TObject* AliRunDataAliMetaData AliRunDataAliMetaData

7 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (I)  AliRunData:  Contains an object of the database and knows about its validity range  Constructor:  AliRunData::AliRunData(TObject* object, const AliMetaData& metaData)  Contains:  The run dependent data:  Calibration, alignment, geometry, field map,… data  Entirely defined by detector people:  Data such as gains, histograms, pedestals…  The metadata (AliMetaData):  Describes the “validity” of the data  See later…

8 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (II)  AliMetaData:  Metadata of the run dependent data:  Describes the “validity” of the data  Name (any regular expression)  Range of runs for which it is valid  Cycle (Reconstruction pass, etc…)  What else?…  Metadata is attached to AliRunData objects

9 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (III)  AliRunDataStorage:  Provides a simple interface to all run dependent data objects  Virtual interface to the database  Only one AliRunDataStorage instance at a time  Could be an  AliRunDataFile (for a local file)  AliRunDataAlien (for an AliEn file)  What else?…  Probably need for an AliRunDataCombination?  The user does not have to care about the details of where and how the data are stored: this is encapsulated in the implementation of the AliRunDataStorage subclasses:  The user can easily switch between different sources of data (local file for testing, or master database)

10 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (IV)  AliRunDataStorage:  Methods:  void Select(const AliMetaData& metaData)  Specify one or adds a metadata selection criterion  const TObject* Get(const char* name, Int_t runNumber)  Gets an object from the database according to specified selection criteria  Bool_t Put(const TObject* object, const AliMetaData& metaData)  Puts a given object into the database, together with associated metadata  Bool_t RecordToFile(const char* fileName)  Prepares for recording into a local file the entries (AliRunData objects) retrieved from the database

11 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (V)  AliRunDataFile:  Access class for a database in a (local) file  Methods:  GetEntry(AliMetaData& metaData, Int_t runNumber)  Gets an object from the database  PutEntry(AliRunData* entry)  Puts an object into the database  File is specified by a name (including path). Data objects with appropriate metadata are looked for in all cycles of the specified filename, till found.

12 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (VI)  AliRunDataAlien:  Access class for a database in an AliEn file  No implementation yet  Note that in this case, the AliEn file catalogue needs metadata knowledge: metadata is associated to files (as well as to objects). There is some redundancy.

13 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 AliRoot Classes (VII)  Obviously still to be done:  Implementation of AliRunDataAlien  Continue implementation of AliRunDataStorage (Put method)  More thinking about AliMetaData  We probably also need:  An AliRunDataCombination  To deal with cases where some calibration data comes from a local file and the rest comes from AliEn, for example  Yet another AliRunDataStorage type  To deal with the case where we want to load all data stored in a given file, regardless of metadata (whether metadata are present or not)

14 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Layout  Wish list  Functionalities  Usage  AliRoot classes  AliRunData  AliMetaData  AliRunDataStorage  AliRunDataFile  AliRunDataAlien  In practice (what does a user have to do?)  In the macros  In the reconstruction code

15 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 In a User Macro  Create an instance of the desired database access class:  AliRunDataFile, AliRunDataAlien, … is created  And configured (location, file name, …)  Perform the metadata selection by using the Select method of the AliRunDataStorage class.  May be called several times to specify several selection criteria  If no selection criterion is given, then the (matching) object with the highest version number is returned  The selection criteria are specified via meta data objects

16 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Selection of Data Objects  Example:  // Select version 2 for all TPC objects  AliMetaData metaData(^TPC/*”);  metaData.SetVersion(2);  AliRunDataStorage::Instance()->Select(metaData);  // But version 3 for TPC/Calibration/Param  metaData.SetName(“TPC/Calibration/Param”);  metaData.SetVersion(3);  AliRunDataStorage::Instance()->Select(metaData);

17 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 In the reconstruction code  Access the data per run via the run loader  runLoader->GetRunObject(“TPC/Calibration/Param”)  The runLoader knows the run number  Other meta data selections were done in users macros  The getRunObject is used in the reconstruction (simulation/analysis) code without any metadata selection (except for the name)  The metadata selection is not done in the compiled code, but rather in the users macros

18 Magali Gruwé CERN PH/AIP ALICE Offline Meeting, February 17 th, 2005 Comments  The name of the metadata can be any regular expression  The data itself is identified via a string which can contain a path  The matching of the name to (alien files), directories, catalogues,… is subject to the implementation: the user should not have to care about it  There is redundancy:  Metadata associated to data objects  Metadata associated to files