LHCb Online Configuration Database Lana Abadie CERN Ph
LHCb Online Configuration Database Lana Abadie, CERN Ph. D student from University Pierre & Marie Curie (Paris VI) , Laboratoire SAMOVAR CHEP 04, Interlaken 1
System overview Operator Experiment Control System (ECS) LHCb configuration database PVSS (SCADA) Experimental Equipment 2
Objectives & requirements • Store information about all controllable devices – their properties – the links between them – their hierarchy • Keep necessary information for the ECS – to configure equipment – to operate the experiment – to monitor the system • Database design key issues – schema – completeness – performance – maintenance 3
DATABASE SCHEMA 4
Timing & Fast Control (TFC) dataflow Information from the schema List of devices Connectivities between devices 5
Use cases • Collect use cases : Given a VELO card, find a free readout supervisor and determine the routing table of the TFC switch • List the keywords : device type, device, link, path. . . • Define them: a link is a cable between a device output number and a device input number • Find connections between keywords: a path is a sequence of links 6
Entity relationship model • Find the type of relation between tables Link Device Type +device type name +nbr of input port +nbr of output port +device description +Link. ID Device +Device Name +Device type +Status 2 +Switch Name From 1 +Port Number From +Switch Name To +Port Number To +Type of link Path +Path. ID +Link • Convert them into constraints Link Device Type +devtype name (pk) +nbr of input ports +nbr of output ports +device description Device +Device Name (pk) +Device type (fk) ref. Device type(devtype) +Status +Switch_Link. ID (pk) +Switch_From +Port_nbr_from +Switch_to +Port_nbr_to +link_type (fk) ref Link Type(link nbr) + bidirectional_used + Unique(Switch_From, port_nbr_from) + Unique(Switch_to, port_nbr_to) + Switch_From, Port_nbr_from (fk) ref Port(switch name, nbr, in_or_out=‘out’) + Switch_to, Port_nbr_to (fk) ref Port(switch name, nbr, in_or_out=‘in’) Path + Path. ID (pk) +link 1 +link 2… only fixed paths 7
DATABASE IMPLEMENTATION 8
Implementation features • Use of Oracle technology • Use of Pro. C/C++ to access the database and C/C++ to encapsulate the SQL and PL/SQL statements to communicate with PVSS • Use of JCOP configuration database tool • Implementation of a tool (cdb. Vis) to edit and navigate through the database in Python • Use of CVS to keep versions of projects and softwares 9
Integration of the JCOP configuration database tool • Joint Control Project: offers common tools and framework for PVSS • Ensure compatibility between JCOP tables and LHCb tables • Avoiding redundancy in the tables: – JCOP tables contain device properties – LHCb tables store connectivity and hierarchy information • Adaptation of JCOP configuration database panels 10
Communication : PVSS System PVSS Libraires & p Tools rov Configuration DB ide db y. J CO P fw_recipes fw_device fw_recipes _properties fw_device_ properties fw_com ponents PL/SQL scripts device ta e bl s tfc_path b C LH 11
Navigator editor tool : cdb. Vis Display the connectivities of a selected device on its inputs and outputs View of a path from the readout supervisor to the Throttle 12
Ex. of concrete implementation : TFC system 13
TFC requirements Clock Local trigger (Optional) L 0 / L 1 Clock • get the connectivities between subdetectors and TFC switch L 0 / L 1 Physics trigger • select subdetectors and an activity Readout Supervisor 0 Supervisor 1 Supervisor 2 Supervisor 3 • List of free readout supervisors and allocate one List Physics of activities TFC Switch Throttle Switch • save/load activities into/from the conf. DB VELO FE ST ST FE FE OT FE RICH FE ECAL FE . . . 14
15
Conclusion • Design schema for TFC and DAQ tables completed • Production TFC control system (PVSS) now uses the configuration database Future work • Table Design for LHCb other subdetectors • Extension of the cdb. Vis functionalities • Design an API to enable clients to interact with the database 16
- Slides: 16