120 likes | 424 Views
LHCb Online Interface to the Conditions Database. Maria del Carmen Barandela Pazos CERN CHEP 2-7 Sep 2007 Victoria. OUTLINE. ● Conditions , Conditions DB & LHCb Online. ● LHCb Online Interface to the CONDB. ○ System components. ○ Data flow. ● Summary. - 1 -.
E N D
LHCb Online Interface to the Conditions Database Maria del Carmen Barandela Pazos CERN CHEP 2-7 Sep 2007 Victoria
OUTLINE ● Conditions , Conditions DB & LHCb Online ● LHCb Online Interface to the CONDB ○ System components ○ Data flow ● Summary - 1- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
CONDITIONS ● Non-event detector data that vary with time ●Condition Object: -Metadata • Data item identifier • Interval of Validity: [since, until] • Version information VERSION -Payload • Actual data variables: temperatures, calibration parameters, etc. TIME DATA ITEM - 2- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
OBJECT DATA CONDITIONS DB FOLDER SETS Hierarchical organization & Versioning FOLDERS Interval of Validity access & Versioning IOVs Data payload <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE DDDB SYSTEM "conddb:/DTD/structure.dtd"> <DDDB> <condition name=""> <param name="" type=""> </param> </condition> </DDDB> - 3- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
PVSS PVSS PVSS ONLINE CONDB -Subset of monitoring data from HW - Online Usage • Publisher: control system • Consumer: trigger processes PVSS Experimental Equipment Online Online Offline Offline CERN LHCb pit 2 - 4- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
INTERFACE TO CONDB ● Store data produced in the LHCb pit ● System components • SCADA(Supervisory Control and Data Acquisition) • Developed by ETM • Software package for control and visualization -PVSS panel -PVSS control scrip -Conditions database server: COOL • API for reading and writing conditions data • Developed by LCG group at CERN • Management condition data in the LHC experiment - Communication layer • DIM (Distributed Information Management) system • Developed at CERN • Machine independent inter-process communications 2 - 5- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
PVSS PANEL ●LHCb framework component ●Define conditions ● Display existing nodes in the CONDB ●Select parameters & update type ●Condition update type • Time • Change value • Value + or – value or % • Opt. Combination ●Visualization XML ●Server status & error msn 2 - 6- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
XML XML XML PVSS CTRL SCRIPT ● Gets the existing definitions stored as dpe. ● Creates 1 thread per condition CTRL SCRIPT ● When is the right moment : • Builds the XML string dpe dpe dpe • Sents the condition to the server ● Independent from the panel • Gets automatically new condition definitions 2 - 7- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
CONDB SERVER ● Publishes the CONDB nodes as DIM service ● Receives the conditions as DIM command ● Generic implementation COOL Different relational backends SQLITE & Oracle 2 - 8- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
DATA FLOW 3. Request conditions service DNS DIM Name Server PVSS 4. Service info 5. Condition Service info 2. Register services 1. Get conditions info 6. Command: updated condition CONDB SERVER 7. Insert the updated condition Online CONDDB 2 - 9- Maria del Carmen Barandela Pazos CHEP 2007, Victoria
SUMARY ● System fully functional (still being tested by users) ● Simple and flexible way to define conditions ● Generic implementation of the server 2 - 10- Maria del Carmen Barandela Pazos CHEP 2007, Victoria