Upload
daniel-joseph
View
215
Download
0
Embed Size (px)
Citation preview
A. Sandoval GSI TPC meeting June 2nd
Detector Databases
Andres Sandoval
A. Sandoval GSI TPC meeting June 2nd
Databases in ALICE
• detector construction db– Wiktor Peryt Warsaw
• calibration db– ROOT files in AliEn catalog
• cables db: Pierluigi Barberis Access
• INB database: Oracle?
• run, simulation and analysis catalog: AliEn catalog
A. Sandoval GSI TPC meeting June 2nd
Warsaw Group• central db CERN Oracle
• satellite db each project PostgreSQL or Oracle
• XML to exchange data
Dictionaries defining
Components and Processes,
processed in Central db.
Data of components and processes
entered by the user
Central database
Satellite databases
A. Sandoval GSI TPC meeting June 2nd
Satellite Database – data structuresDATA BASE# DATABASE CODE* NAME
COMPONENT TYPEDERIVATION* DERIVATION TYPEo DESCRIPTIONo QUANTITY
DETECTOR# DETECTOR CODE* NAMEo DESCRIPTION
ALLOWABLE VALUE# SEQUENTIAL NO* VALUEo HIGH VALUEo MEANINGo NUMERICAL VALUE
DATA TYPE# DATA TYPE CODE* NAME* ELEMENTARY TYPEo DESCRIPTION
BLOB TYPE# MIME TYPEo NAME
MANUFACTURER# MANUFACTURER CODE* NAME* IS LABo DESCRIPTION
PROCESS PARAMETERo VALUEo DESCRIPTION
BLOB# BLOB ID* BLOB VALUEo BLOB DATEo FILE NAMEo FILE PATHo FILE OWNERo DESCRIPTION
PROCESS# PROCESS DATEo DESCRIPTIONo X SIZEo Y SIZEo Z SIZEo VALUE TABLEo PROCESSED BY* IS SKELETON
PARAMETER# VALID FROMo VALID TOo VALUE
DEFINITION OF PROCESSPARAMETER# PARAMETER CODE* NAMEo SEQUENTIAL NOo UNITS OF MEASUREo DESCRIPTION* IS RESULT* IS ACTIVE
DEFINITION OF PROCESS# PROCESS CODE* NAME* TYPEo SEQUENTIAL NOo UNITS OF MEASUREo X LABELo Y LABELo Z LABELo DESCRIPTION* IS ACTIVE
DEFINITION OF PARAMETER# PARAMETER CODE* NAMEo SEQUENTIAL NOo UNITS OF MEASUREo DESCRIPTION* IS ACTIVE
COMPONENT STATE# VALID FROMo VALID TO* EXISTENCEo QUALITYo ACCEPTEDo IMPORT DATETIMEo EXPORT DATETIME
COMPONENT DERIVATION# VALID FROMo VALID TO* DERIVATION TYPEo LOCATIONo POSITION NOo DESCRIPTION
COMPONENT GROUP# GROUP CODE* NAMEo DESCRIPTION
COMPONENT TYPE# TYPE CODE* NAME* IS ACTIVEo DESCRIPTION
COMPONENT# COMPONENT IDo USER CODEo SERIAL NUMBERo DESCRIPTION* IS SKELETON* IS VIRTUAL* LAST MODIFIED
located in
site
coded by
creates cod
e
of component
has
in group
group of
derivative
derivative
source of
source of
belongs to
includes
belongs to
consists of
of type
.of type
.
of type
.
belongs to
constrained by
of type
defines
belongs to
consists of
belongs to
consists of
delivered by
delivers
manufactured b
y
creates
of
described by
defined by
defines
of test
has
for
tested by
defined by
defines
of
described by
defined by
defines
.has parameters
of type
processed by
of type
described by
describes
in
source of
source of
derivative
derivative
in group
consists of
of type
includes
A. Sandoval GSI TPC meeting June 2nd
DATA BASE# DATABASE CODE* NAME
COMPONENT TYPEDERIVATION* DERIVATION TYPEo DESCRIPTIONo QUANTITY
DETECTOR# DETECTOR CODE* NAMEo DESCRIPTION
ALLOWABLE VALUE# SEQUENTIAL NO* VALUEo HIGH VALUEo MEANINGo NUMERICAL VALUE
DATA TYPE# DATA TYPE CODE* NAME* ELEMENTARY TYPEo DESCRIPTION
BLOB TYPE# MIME TYPEo NAME
MANUFACTURER# MANUFACTURER CODE* NAME* IS LABo DESCRIPTION
PROCESS PARAMETERo VALUEo DESCRIPTION
BLOB# BLOB ID* BLOB VALUEo BLOB DATEo FILE NAMEo FILE PATHo FILE OWNERo DESCRIPTION
PROCESS# PROCESS DATEo DESCRIPTIONo X SIZEo Y SIZEo Z SIZEo VALUE TABLEo PROCESSED BY* IS SKELETON
PARAMETER# VALID FROMo VALID TOo VALUE
DEFINITION OF PROCESSPARAMETER# PARAMETER CODE* NAMEo SEQUENTIAL NOo UNITS OF MEASUREo DESCRIPTION* IS RESULT* IS ACTIVE
DEFINITION OF PROCESS# PROCESS CODE* NAME* TYPEo SEQUENTIAL NOo UNITS OF MEASUREo X LABELo Y LABELo Z LABELo DESCRIPTION* IS ACTIVE
DEFINITION OF PARAMETER# PARAMETER CODE* NAMEo SEQUENTIAL NOo UNITS OF MEASUREo DESCRIPTION* IS ACTIVE
COMPONENT STATE# VALID FROMo VALID TO* EXISTENCEo QUALITYo ACCEPTEDo IMPORT DATETIMEo EXPORT DATETIME
COMPONENT DERIVATION# VALID FROMo VALID TO* DERIVATION TYPEo LOCATIONo POSITION NOo DESCRIPTION
COMPONENT GROUP# GROUP CODE* NAMEo DESCRIPTION
COMPONENT TYPE# TYPE CODE* NAME* IS ACTIVEo DESCRIPTION
COMPONENT# COMPONENT IDo USER CODEo SERIAL NUMBERo DESCRIPTION* IS SKELETON* IS VIRTUAL* LAST MODIFIED
located in
site
coded by
creates cod
e
of component
has
in group
group of
derivative
derivative
source of
source of
belongs to
includes
belongs to
consists of
of type
.of type
.
of type
.
belongs to
constrained by
of type
defines
belongs to
consists of
belongs to
consists of
delivered by
delivers
manufactured b
y
creates
of
described by
defined by
defines
of test
has
for
tested by
defined by
defines
of
described by
defined by
defines
.has parameters
of type
processed by
of type
described by
describes
in
source of
source of
derivative
derivative
in group
consists of
of type
includes
Dictionaries Maintained in central repository Supplied from central database to labs Read-only in satellite databases
Satellite Database – data structures
A. Sandoval GSI TPC meeting June 2nd
DATA BASE# DATABASE CODE* NAME
COMPONENT TYPEDERIVATION* DERIVATION TYPEo DESCRIPTIONo QUANTITY
DETECTOR# DETECTOR CODE* NAMEo DESCRIPTION
ALLOWABLE VALUE# SEQUENTIAL NO* VALUEo HIGH VALUEo MEANINGo NUMERICAL VALUE
DATA TYPE# DATA TYPE CODE* NAME* ELEMENTARY TYPEo DESCRIPTION
BLOB TYPE# MIME TYPEo NAME
MANUFACTURER# MANUFACTURER CODE* NAME* IS LABo DESCRIPTION
PROCESS PARAMETERo VALUEo DESCRIPTION
BLOB# BLOB ID* BLOB VALUEo BLOB DATEo FILE NAMEo FILE PATHo FILE OWNERo DESCRIPTION
PROCESS# PROCESS DATEo DESCRIPTIONo X SIZEo Y SIZEo Z SIZEo VALUE TABLEo PROCESSED BY* IS SKELETON
PARAMETER# VALID FROMo VALID TOo VALUE
DEFINITION OF PROCESSPARAMETER# PARAMETER CODE* NAMEo SEQUENTIAL NOo UNITS OF MEASUREo DESCRIPTION* IS RESULT* IS ACTIVE
DEFINITION OF PROCESS# PROCESS CODE* NAME* TYPEo SEQUENTIAL NOo UNITS OF MEASUREo X LABELo Y LABELo Z LABELo DESCRIPTION* IS ACTIVE
DEFINITION OF PARAMETER# PARAMETER CODE* NAMEo SEQUENTIAL NOo UNITS OF MEASUREo DESCRIPTION* IS ACTIVE
COMPONENT STATE# VALID FROMo VALID TO* EXISTENCEo QUALITYo ACCEPTEDo IMPORT DATETIMEo EXPORT DATETIME
COMPONENT DERIVATION# VALID FROMo VALID TO* DERIVATION TYPEo LOCATIONo POSITION NOo DESCRIPTION
COMPONENT GROUP# GROUP CODE* NAMEo DESCRIPTION
COMPONENT TYPE# TYPE CODE* NAME* IS ACTIVEo DESCRIPTION
COMPONENT# COMPONENT IDo USER CODEo SERIAL NUMBERo DESCRIPTION* IS SKELETON* IS VIRTUAL* LAST MODIFIED
located in
site
coded by
creates cod
e
of component
has
in group
group of
derivative
derivative
source of
source of
belongs to
includes
belongs to
consists of
of type
.of type
.
of type
.
belongs to
constrained by
of type
defines
belongs to
consists of
belongs to
consists of
delivered by
delivers
manufactured b
y
creates
of
described by
defined by
defines
of test
has
for
tested by
defined by
defines
of
described by
defined by
defines
.has parameters
of type
processed by
of type
described by
describes
in
source of
source of
derivative
derivative
in group
consists of
of type
includes
Components’ data Created and updated in satellite
databases at labs Copied to central repository
Satellite Database – data structures
A. Sandoval GSI TPC meeting June 2nd
Dictionary wizard
• Example of TPC IROC– detector– TPC components– IROC– IROC long term test– IROC planarity measurement
A. Sandoval GSI TPC meeting June 2nd
OROC01: 127.8 119.3 118.4 OROC02: 155.4 115.3 OROC03: 149.5 112.8 117.7 OROC04: 147.9 110
131.3 118.4 118.7 151.4 117.8 147.6 114.1 118.5 142 112.9col.B :Anode 45.24 116.5 118.9 48.68 118.2 45.59 116 117 42.28 107.6
C : Cathode 45.74 115.6 118.4 47.08 114.5 46.42 116.9 116.5 43.28 112.2D : Gate 43.64 116.5 118.1 48.52 117.6 44.43 117.3 117.8 44.88 112.4
and so on 43.89 115.1 117.8 47.34 118.1 45.89 117.8 117.6 45.17 113.544.07 115.6 118.6 47.68 118.7 44.97 116.8 117.9 45.68 109.2
Wire numb. 45.98 114.8 118.5 47.99 118.3 45.59 119 117.9 44.53 113.4given by row 46.84 114.4 118.2 47.74 117.1 46.05 118.1 117.8 45.36 108.7
43.77 116.2 116.7 47.91 116 43.67 118.1 116.8 46.24 112.6values in cN 44.57 114.1 117.2 47.25 118.1 44.92 115.2 117.3 43.74 113
45.07 114.8 116.8 47.27 115.8 43 116.7 117.9 42.55 11343.7 114.9 116.6 47.92 117.4 45.22 116.4 116.9 43.45 110.5
41.89 115.1 116.2 48.08 119 44.13 116.8 117.2 43.9 113.145.78 114 116.8 47.43 117.6 45.75 119.2 116.5 45.97 113.3
45.31 114.1 117 47.68 117.7 46.46 116.1 115.5 47.13 113.244.12 114 117.9 48.81 117.6 49.35 116.2 116.8 46.11 112.1
43.83 113.8 117.2 48.55 117.9 46.51 115.2 115.7 47.3 113.845.39 114.8 116.5 49.44 117.5 47.52 114.7 116.6 48.18 113.9
45.08 113.8 117.3 48.14 118.1 47.47 114.6 116.1 48.31 113.743.29 114 116.4 47.96 118.2 46.38 113.4 115.8 46.1 113.7
42.03 112.9 116.8 46.78 118.6 45.95 114.7 115.1 47.17 113.545.86 114.2 117 46.85 116.7 45.51 114.2 115.5 49.19 111.8
43.42 114.9 116.3 47.91 118.5 118.5 45.69 113.9 115.6 46.39 11341.88 112.7 117.4 47.5 118.6 115.9 46.19 114.7 115.6 46.91 112.5
43.89 112.9 116.1 47.4 117.5 117.8 46.08 115.1 114.3 46.16 112.944.98 112.2 117 47.76 118.1 117.6 46.48 113.3 114.9 44.75 112
43.58 111.4 116.8 46.88 118.2 117.3 45.11 115.6 114.7 45.6 110.943.82 111.9 116.4 48.7 118 118.7 45.67 115.1 114.5 46.24 111.6
45.43 113.3 116.1 47.66 117.9 118.1 44.83 116.6 115 46.88 108.745.03 112.8 116 46.93 118.3 116.5 46.54 113.6 114.4 45.61 111.3
45.44 112.8 116.6 47.3 118.8 117.5 46.21 110.6 115.2 46.34 110.441.46 113.7 116.8 47.04 116.4 115.2 43.39 115.1 114.7 44.86 110.8
44.15 113.3 116.4 47.08 118.3 115.2 43.56 114.3 115.3 47.52 111.345.94 113 115.4 46.88 118.5 117.1 45.05 114.2 114.8 45.7 111.1
44.66 112.7 115.7 47.41 117.5 117.1 43.72 113.2 114.5 45.09 111.643.89 112.6 115.6 46.75 118.5 117 44.74 114.4 112.9 44.31 107.1
46.12 112 115.4 47.23 117.7 115.9 44.68 114 115.2 44.55 11044.25 111.5 115.2 47.49 118.4 115.9 43.71 113.9 114 44.92 110
44.26 111.1 115.9 47.53 118.6 115.8 44.16 113.7 115 43.7 108.843.65 111.9 114.9 47.02 118 115.8 44.91 114.6 113.5 45.54 108.7
45.18 113 114.6 46.8 118.4 114.8 43.21 115.4 113.9 45.26 106.344.1 112.4 115.4 47.09 117.7 115.1 44.3 114.2 113.8 44.85 104.5
44.91 112.3 114.8 47.84 117.8 114.8 43.56 115.5 114.9 44.69 107.444.04 111.2 116.4 45.59 118.3 113.5 44.29 109.5 114.2 45.08 105.9
44.92 110.8 115 45.99 116.8 114.4 44.72 114 115.1 47.84 105.843.83 111.7 110.8 45.65 118.2 114.6 44.39 112.9 114.5 44.22 106.6
43.5 110.9 111.4 46.92 117.9 114.2 44.42 115.1 113.9 45.77 107.443.42 111.2 112.7 48.32 118.6 113.9 44.71 114.3 112.6 45.41 106.7
46.87 111.2 111.6 47.92 117.4 116 40.38 92.02 112.8 45.1 104.345.97 111.6 112.9 47.72 118.5 114.5 43.72 113 114.3 46.54 106.2
43.62 111.4 109.7 46.35 117.5 113.8 43.29 108.3 115.1 45.2 109.138.51 109.7 113.1 46.95 119 113.8 44.76 114.1 114.6 45.65 106.1
42.76 110.5 112.1 46.86 117.7 113.9 42.19 113 114.6 46.08 105.443.85 110.7 112.1 47.27 118.1 113.4 42.89 112.5 113.3 43.1 107
43.63 109.7 112.2 47.52 117.8 113.5 43.42 112.2 112.6 42.48 10440.05 109.8 113.9 47.72 118.2 113.1 43.51 111.5 112.9 42.7 98.93
43.81 110.7 114 46.83 118 113.1 45.68 106.4 114 44.72 104.845.16 110.4 114.3 47.04 117.6 113.7 42.79 109.5 114 45.33 103.6
43.54 112.7 114.1 47.39 118.3 114.1 42.97 113.1 111.3 47.26 103.645.02 110.7 111.1 46.75 117.8 113.5 43.35 110.5 113.7 47.01 103.2
45.45 110.4 113.4 46.36 117.9 112.7 43.12 108.6 113.1 46.36 105.245.97 111.1 111.5 46.65 118.1 113.8 43.37 111 112.3 45.99 102.3
46.19 109.7 109.9 46.88 118.6 112.7 41.07 109 113.5 45.27 101.744.01 110.8 109.2 47.18 118.3 112.3 42.35 107.5 113.9 44.77 102.1
46.6 110.4 111.4 45.79 118.6 114 41.67 104.2 113.4 45.3 107.344.74 110.5 110.7 45.96 117.3 112.3 40.18 108.9 113.4 44.69 105.6
43.08 109.9 112 46.96 117.4 111.9 43.65 111.3 113.3 45.5 10741.32 110.9 111.1 46.59 117.9 112.2 40.51 108.2 112.9 45.23 102.5
43.87 110 111.3 46.39 117.2 112.7 42.17 105.9 114.5 45.64 102.743.64 109.4 110.5 46.83 117.7 113.6 41.95 105.1 113.5 45.53 101.5
46.77 109.8 109.3 46.56 117.4 112 44.85 105.3 113.5 44.92 106.4
Detector Lab has the IROC and OROC data in excel tables
A. Sandoval GSI TPC meeting June 2nd
electron microscope pictures of wires
A. Sandoval GSI TPC meeting June 2nd
How to move test data from existing files into a satellite database
Jacek WojcieszukJacek Wojcieszuk
Warsaw University of Technology
A. Sandoval GSI TPC meeting June 2nd
Step by step - parameters
Data to transform
Parameter1:
Component’s user_code =„ HAL25_TEST_UC”
Parameter’s name = „WAFERNO”
Component’s type name = „SDDAMBRA”
Parameter’s valid_from attribute =
„2002-10-10 23:21:54+00”
Parameter’s value = 34
Parameter2:
Component’s user_code =„ HAL25_TEST_UC”
Parameter’s name = „Location”
Component’s type name = „SDDAMBRA”
Parameter’s valid_from attribute =
„2002-10-10 23:21:54+00”
Parameter’s valid_to attribute =
„2003-02-10 23:21:54+00”
Parameter’s value = „Int_lab”
Result of the transformation<subordinate_table name="PARAMETERS">
<srow>
<lookup name="COMPONENT_ID" source_table="COMPONENTS"
connect_by="USER_CODE">HAL25_TEST_UC</lookup>
<lookup name="PARAMETER_CODE"
source_table="DEFINITION_OF_PARAMETERS"
connect_by="NAME">WAFERNO</lookup>
<lookup name="TYPE_CODE"
source_table="COMPONENT_TYPES"
connect_by="NAME">SDDAMBRA</lookup>
<column name="VALID_FROM">
2002-10-10 23:21:54+00</column>
<column name="VALUE">34</column>
</srow>
<srow>
<lookup name="COMPONENT_ID" source_table="COMPONENTS"
connect_by="USER_CODE">HAL25_TEST_UC</lookup>
<lookup name="PARAMETER_CODE”
source_table="DEFINITION_OF_PARAMETERS"
connect_by="NAME">Location</lookup>
<lookup name="TYPE_CODE"
source_table="COMPONENT_TYPES"
connect_by="NAME">SDDAMBRA</lookup>
<column name="VALID_FROM">
2002-10-10 23:21:54+00</column>
<column name="VALID_TO">
2003-02-13 23:21:54+00</column>
<column name="VALUE">Int_lab</column>
</srow>
</subordinate_table>
A. Sandoval GSI TPC meeting June 2nd
Application
• home page
• IROC
• So far we have not managed to get the dictionary of the TPC with the IROC and FEE processed and implemented in an Oracle test database to be able to load data
A. Sandoval GSI TPC meeting June 2nd
Parallel Approach• Last month with Michael Dahlinger and Holger Brandt
from the GSI computer center started to develop an Oracle db like they did for Hades.– Thomas Lehmann and Rainer Schicker (TRD ROC) main
focus on Labview to Oracle data transfer– Marc Stockmeier DCS construction db tables– Antoine Lebrun (TRD) learn TOAD and Oracle to create
ROC tables for TPC and TRD– Rainer Renfordt same for FEE– Killian Schwarz installed Oracle and TOAD tools in his
PC, licenses at GSI
A. Sandoval GSI TPC meeting June 2nd
Labview
• Holger and Thomas created in an afternoon a Labview - Oracle client readout prototype
Labview
SQL toolset
ODBC
Oracle client
Oracle database
server
Test PC
A. Sandoval GSI TPC meeting June 2nd
Bigger Things
• Dahlinger pointed out that more important than designing tables we need to:
• Agree on an unique detector decomposition
• Agree on naming conventions
• Agree on rules for numbering pieces
• Document coordinate systems and their transformations
• strategy to place physical objects into geometrical objects (FEC138 into InnerSector16Slot6)
A. Sandoval GSI TPC meeting June 2nd
From Hades
• example
A. Sandoval GSI TPC meeting June 2nd
A. Sandoval GSI TPC meeting June 2nd
A. Sandoval GSI TPC meeting June 2nd
TPC -1
• FC field cage
• ROC read-out chambers
• FEE front-end electronics
• GAS gas system
• COO cooling system
• HV high voltage system
• LV low voltage system
• DCS detector control system
A. Sandoval GSI TPC meeting June 2nd
TPC - 2
• LSRS laser system
• CBL cables and busbars
• REE read-out electronics
• HLT high level trigger
• CLB calibration
• SML simulation
A. Sandoval GSI TPC meeting June 2nd
• ICV inner containment vessel
• OCV outer containment vessel
• IFC inner field cage
• OFC outer field cage
• CMBcentral membrane
• ECP end caps
• ROD rods
backFC
A. Sandoval GSI TPC meeting June 2nd
ROC
• IRC inner readout chamber• ORC outer readout chamber
– ALB aluminum body• SVP survey points
– PDP pad plane– AWP anode wire plane
• AW anode wire– W wire
– CWP cathode wire plane– GGP gating grid plane
back
A. Sandoval GSI TPC meeting June 2nd
LSRS
• LSRD laser rods
• MMB micro mirror bundle
• SPL beam splitters
• LSR laser
back
A. Sandoval GSI TPC meeting June 2nd
TPC TRD Detector Database meeting on Thursday
• Worms: Sebastian Bablok, Christian Kofler
• Dahlinger, Killian, Lefebre, Stockmeier, Lehmann, Renfordt,
• Lennart Jirden: TB global naming and numbering scheme in Alice