2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil -...

14
2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM 1 NISP, NI-SCS Test Readiness Review IPNL, October 2016

Transcript of 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil -...

Page 1: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

2. Test Facility2.5 NI-SCS Database

Christian Curtil - CPPM

1NISP, NI-SCS Test Readiness Review IPNL, October 2016

Page 2: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

On menu today…

NISP, NI-SCS Test Readiness Review IPNL, October 2016 2

• Database ? To do What ?• Database Structure• Database access• HDF5 to Database (Processing)• Database Structure (in detail)

• Data Acquisition Part• User Part• Analysis Part• Elog Part

• Summary

Page 3: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Why made DataBase for Euclid’s Data

NISP, NI-SCS Test Readiness Review IPNL, October 2016 3

• Euclid’s Data That’s :• ˷250Gb of HDF5 file by acquisition run• ˷40 files by detector • 20 detectors

• Database is the most useful and easiest way to find a specific data set.- To find all dataset for a specific detector- To made correlation between dataset for particular metadata (slow control setting)- Find the name and the localization of the files of data useful for analysis

• Especially compared with risk and time which it would be necessary if we looked for the same data directly in HDF5 files

˷10Tb By detector

Page 4: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

DataBase Structure

NISP, NI-SCS Test Readiness Review IPNL, October 2016 4

Setup Acquisition

Acquisition Description

Detector Description

Users

Analysis

Elog

To the Acquisitions and Detectors tables

PostgreSQL DataBase @ CPPM

• Why use Postgre software ? :- Legendary reliability and stability- Extensible- Cross platform- Designed for high volume environments- GUI database design and administration tools- Free…

• The database consists of several modules

- Acquisition part- Analysis part- Users part- Elog part

Page 5: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

DataBase access

NISP, NI-SCS Test Readiness Review IPNL, October 2016 5

Setup Acquisition

Acquisition Description

Detector Description

Users

Analysis

Elog

To the Acquisitions and Detectors tables

PostgreSQL DataBase @ CPPM• Two ways to reach the database:

DB User Login + ACL

Analysis Computer

Htaccess

Personal Computer

User Login + ACL

Web Server +Web interface

@ CPPM

Internet

Page 6: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

HDF5 to Database

NISP, NI-SCS Test Readiness Review IPNL, October 2016 6

• HDF5 to Database Processing

HDF5

Quality

QualityOK ?

END

No

YesHDF5

Storage hard drive

Database

Crontab + Python software

= Shifter or Expert

Page 7: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Database Structure (in detail)

NISP, NI-SCS Test Readiness Review IPNL, October 2016 7

Page 8: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Database Structure (in detail)

NISP, NI-SCS Test Readiness Review IPNL, October 2016 8

Page 9: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Database Structure (in detail)

NISP, NI-SCS Test Readiness Review IPNL, October 2016 9

Setup AcquisitionAcquisition Description

Detector Description

Users

Analysis

Elog

Page 10: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Data Acquisition Part

NISP, NI-SCS Test Readiness Review IPNL, October 2016 10

• Detector description tables :- SCS description- SCA, SCE and CFC description- DB Constraint to ensure unicity of SCS structure

• Setup Acquisition tables :- Dump of SCE Config information- Information on the Electronic used- Illumination and Cryostat configuration

• Acquisition description tables :- All information about Run, Sequence and Ramp - A Status table is dedicated to quality check

Setup AcquisitionAcquisition Description

Detector Description

Page 11: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

User Part

NISP, NI-SCS Test Readiness Review IPNL, October 2016 11

• For the moment, only one table is used to define Who have made a Run or particular analysis or entry in Elog.

Specially to know who is the shifter

Page 12: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Analysis Part

NISP, NI-SCS Test Readiness Review IPNL, October 2016 12

• This part will be dedicated to Analysis results and Analysis development.

• Goal : • Easy way to find the analysis made for

particular SCS or Run, made cross check…

• Direct access to characterization map.

• This part could still beimplemented as required…

Page 13: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Elog Part

NISP, NI-SCS Test Readiness Review IPNL, October 2016 13

• We wish made an Electronic Logbook for the Data Acquisition Team and Euclid Community.

• Goals : • For the shifter in acquisition : To be able

to write all relevant information not stored in HDF5.

• For a team of analysis : A place to exchange information

• For all : A solution to keep a track or the history of everything that goes down for each detectors.

• Web interface is under development…

Page 14: 2. Test Facility 2.5 NI-SCS Database · 2. Test Facility 2.5 NI-SCS Database Christian Curtil - CPPM. NISP, NI-SCS Test Readiness Review IPNL, October 2016 1

Summary

NISP, NI-SCS Test Readiness Review IPNL, October 2016 14

• DataBase Acquisition Part : is in test and debugging with real HDF5 file of data acquisition.

• DataBase Analysis Part : a minimal version exist but it can be updated with your requirement…

• DB Elog and web interface : is under development…