agata construction database
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 PresentationTRANSCRIPT
Agata Construction
DataBase
Agata Week, 08/07/08
C.Aufranc, O.Stezowski
208/07/08
Outlines
1) Introduction
2) Overview
3) Snapshots
4) Adaptation of BigBrother
5) Initialization of the DataBase
6) Actions=measures in the DB
7) Conclusion
1) Introduction
2) Overview
3) Snapshots
4) Adaptation of BigBrother
5) Initialization of the DataBase
6) Actions=measures in the DB
7) Conclusion
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
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
408/07/08
SelectSelect Select andSelect and
insertinsert
JDBC JDBC
Instant Client,
[GUI or Command
Line]
2) Overview
508/07/08
Structure of objects in the BD
08/07/08 6
Registration of an object
08/07/08 7
Assembly of a crystal in a capsule
08/07/08 8
Transfer of an object
08/07/08 9
Insertion of data via an XML file
08/07/08 10
Connection between 2 objects
08/07/08 11
History of a crystal
08/07/08 12
Report for a specific center
08/07/08 13
Actions available for a crystal
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
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
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?
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?
08/07/08 16
5) Initialization of the DataBaseDefinition of objects to insert in the DataBase:
=>=>name, type (specie), version, isacablename, type (specie), version, isacable
ex: 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
Definition of objects to insert in the DataBase:
=>=>name, type (specie), version, isacablename, type (specie), version, isacable
ex: 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
08/07/08 17
Common format for barcodes has been fixed:
=> 16 digits, xxx_xxx_xxx_xxxx:
group_type_specificity_numbering
ex: DET_TCL_ASY_0001
If stamps can’t be put: find another identification method (serial number…)
Becarefull to the confusion and mistakes between objects
Common format for barcodes has been fixed:
=> 16 digits, xxx_xxx_xxx_xxxx:
group_type_specificity_numbering
ex: 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
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
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
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)
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)
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
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
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
• 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
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
• 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