agata construction database

22
Agata Construction DataBase Agata Week, 08/07/08 C.Aufranc, O.Stezowski

Upload: kiril

Post on 25-Feb-2016

56 views

Category:

Documents


0 download

DESCRIPTION

Agata Construction DataBase. Agata Week, 08/07/08 C.Aufranc, O.Stezowski. Outlines. Introduction Overview Snapshots Adaptation of BigBrother Initialization of the DataBase Actions=measures in the DB Conclusion. Introduction. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Agata Construction DataBase

Agata Construction

DataBase

Agata Week, 08/07/08C.Aufranc, O.Stezowski

Page 2: Agata Construction DataBase

208/07/08

Outlines

1) Introduction2) Overview3) Snapshots4) Adaptation of BigBrother5) Initialization of the DataBase6) Actions=measures in the DB7) Conclusion

Page 3: Agata Construction DataBase

308/07/08

1) Introduction Oracle DataBase (the server) and a graphical

interface BigBrowser (java client) conceived and developed by the CMS Team Tracker

This tool has been accepted by the «Agata Management Board = the official Agata the official Agata construction DataBaseconstruction DataBase

The Computer Center of the IN2P3: hosts the database part: a test DB and a production DB have been created

The Infrastructure group began to work with us to define the structure of the database

Page 4: Agata Construction DataBase

408/07/08

SelectSelect Select andSelect and insertinsert

JDBC JDBCInstant Client,

[GUI or Command Line]

2) Overview

Page 5: Agata Construction DataBase

508/07/08

Structure of objects in the BD

Page 6: Agata Construction DataBase

08/07/08 6

Registration of an object

Page 7: Agata Construction DataBase

08/07/08 7

Assembly of a crystal in a capsule

Page 8: Agata Construction DataBase

08/07/08 8

Transfer of an object

Page 9: Agata Construction DataBase

08/07/08 9

Insertion of data via an XML file

Page 10: Agata Construction DataBase

08/07/08 10

Connection between 2 objects

Page 11: Agata Construction DataBase

08/07/08 11

History of a crystal

Page 12: Agata Construction DataBase

08/07/08 12

Report for a specific center

Page 13: Agata Construction DataBase

08/07/08 13

Actions available for a crystal

Page 14: Agata Construction DataBase

4) Adaptation of BigBrother

08/07/08 14

BigBrother=portable application: few modifications for Agata purpose (DataBase access, CMS specific vocabulary)Conversion of numerical barcodes to alphanumerical ones: not a difficult work but modifications everywhere in the code. Development is finished and tested, but bugs can remain: report me any problem ([email protected])Construction DataBase Agata Web Site: http://agata.in2p3.fr/DB/BigBrowser download: ftp://lyoftp.in2p3.fr/AGATA/AgataDB

Page 15: Agata Construction DataBase

08/07/08 15

5) Initialization of the DataBase We must define a structure for the objects to insert

in the DB: which objects, with which hierarchy?which objects, with which hierarchy? Fondamental questions:1. What is meaningfull to put in the DataBase?

=>must we put the beam line, the chambers which are specific to each laboratory and not belong to AGATA?...

2. With which degree of details?=> must we put the racks in the DB, the heat exchangers?...

3. And we must be as homogeneous as possible!=>the TCluster corresponds in the DB to the support, to the cryostat, to an abstract component?...must we create it?

Page 16: Agata Construction DataBase

08/07/08 16

5) Initialization of the DataBaseDefinition of objects to insert in the DataBase:

=>=>name, type (specie), version, isacablename, type (specie), version, isacableex: TCluster, Assymetric TC, version 1, not a cable

Definition of the assembly rules between those objects:=>Father/son and number of max sons in the Father/son and number of max sons in the father…father…ex: father: Asym TC=>son: Asym Cryostat=>1 Asym TC is composed of only one Asym Cryostat

I’ve sent a more precise documentation to each team leader and working group leader

Page 17: Agata Construction DataBase

08/07/08 17

Common format for barcodes has been fixed:

=> 16 digits, xxx_xxx_xxx_xxxx: group_type_specificity_numberingex: DET_TCL_ASY_0001

If stamps can’t be put: find another identification method (serial number…)

Becarefull to the confusion and mistakes between objects

5) Policy of barcodes

Page 18: Agata Construction DataBase

08/07/08 18

6) Actions in the DataBase

Actions in the DB = measures on objects=> the resolution at 122keV: => the resolution at 122keV: Resolution122keVResolution122keV

Composite actions (on single objects or on composite objects)

=> the => the ResolutionResolution which is composed of 2 which is composed of 2 base actions: the base actions: the Resolution122keVResolution122keV and the and the Resolution1MeVResolution1MeVThe objects have a status (reference, valid, notvalid), and actions can invalidate some objectsConsequences: a «faulty» object can’t be assembled for instance/ but this object can be repaired by ordinary actions or special actions

Page 19: Agata Construction DataBase

08/07/08 19

6) Actions

Examples:An « Initialization » action can be necessary: serial number, producer, purchaser… Some specificationsMeasures of resolutionsScannings of crystalsNB: the binary files can’t be inserted in the BD, but you can create links on files stored on an external media (ex: at the CCIN2P3, storage under HPSS of big files and automatized access via SRB)

Page 20: Agata Construction DataBase

08/07/08 20

7) Conclusion

The urgency: to fix the structure of the database

After that: define actions on those objects

See you at the Detector parameter DB meeting Thursday at 16:00

Page 21: Agata Construction DataBase

08/07/08 21

Necessary information to define an action

• Action: name, version• Object: name• Description : a short description of the action• Results on the action: name, type, unity• Composite Action? Yes/No• Input values for the test: value, unity,

description• Tool : tool used for a specific center• Operator: name of the operator

Page 22: Agata Construction DataBase

08/07/08 22

Exemple• Action: RESOLUTION122kev, 1• Object: CRYSTAL• Description: Give the resolution of a crystal and its 36

segments for 122keV• Results: resCrystal float, resSegments Array of 36

floats • Composite Action? No• Input: 122, keV, Energy• Tool: test• Operator: Cecile

=>ex of composite action: Resolution which contains 2 base actions: Resolution122keV and Resolution1MeV