The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)

Slides:



Advertisements
Similar presentations
JCOP FW Update ALICE DCS Workshop 6 th and 7 th October, 2005 Fernando Varela Rodriguez, IT-CO Outline Organization Current status Future work.
Advertisements

PVSS and JCOP Framework Organization, Support & News Oliver Holme IT-CO.
The Detector Control System – FERO related issues
Experiment Control Systems at the LHC An Overview of the System Architecture An Overview of the System Architecture JCOP Framework Overview JCOP Framework.
Detector Control System at the GIF++ A. Polini, M. Romano (AIDA+INFN Bologna) on behalf of WP group Gif++ User Meeting 11/07/2014 Outline Status.
André Augustinus ALICE Detector Control System  ALICE DCS is responsible for safe, stable and efficient operation of the experiment  Central monitoring.
1 Databases in ALICE L.Betev LCG Database Deployment and Persistency Workshop Geneva, October 17, 2005.
Peter Chochula, January 31, 2006  Motivation for this meeting: Get together experts from different fields See what do we know See what is missing See.
Supervision of Production Computers in ALICE Peter Chochula for the ALICE DCS team.
Clara Gaspar, May 2010 The LHCb Run Control System An Integrated and Homogeneous Control System.
The Detector Safety System for LHC Experiments Stefan Lüders ― CERN EP/SFT & IT/CO CHEP03 ― UC San Diego ― March 27 th, 2003.
Peter Chochula.  DAQ architecture and databases  DCS architecture  Databases in ALICE DCS  Layout  Interface to external systems  Current status.
CERN - IT Department CH-1211 Genève 23 Switzerland t The High Performance Archiver for the LHC Experiments Manuel Gonzalez Berges CERN, Geneva.
Calo Piquet Training Session - Xvc1 ECS Overview Piquet Training Session Cuvée 2012 Xavier Vilasis.
Summary DCS Workshop - L.Jirdén1 Summary of DCS Workshop 28/29 May 01 u Aim of workshop u Program u Summary of presentations u Conclusion.
09/11/20061 Detector Control Systems A software implementation: Cern Framework + PVSS Niccolo’ Moggi and Stefano Zucchelli University and INFN Bologna.
SCADA. 3-Oct-15 Contents.. Introduction Hardware Architecture Software Architecture Functionality Conclusion References.
MDT PS DCS for ATLAS Eleni Mountricha
JCOP Workshop September 8th 1999 H.J.Burckhart 1 ATLAS DCS Organization of Detector and Controls Architecture Connection to DAQ Front-end System Practical.
Clara Gaspar, October 2011 The LHCb Experiment Control System: On the path to full automation.
Update on Database Issues Peter Chochula DCS Workshop, June 21, 2004 Colmar.
Peter Chochula ALICE DCS Workshop, October 6,2005 DCS Computing policies and rules.
Peter Chochula and Svetozár Kapusta ALICE DCS Workshop, October 6,2005 DCS Databases.
XXVI Workshop on Recent Developments in High Energy Physics and Cosmology Theodoros Argyropoulos NTUA DCS group Ancient Olympia 2008 ATLAS Cathode Strip.
DCS Workshop - L.Jirdén1 ALICE DCS PROJECT ORGANIZATION - a proposal - u Project Goals u Organizational Layout u Technical Layout u Deliverables.
The Joint COntrols Project Framework Manuel Gonzalez Berges on behalf of the JCOP FW Team.
André Augustinus 10 September 2001 DCS Architecture Issues Food for thoughts and discussion.
Databases E. Leonardi, P. Valente. Conditions DB Conditions=Dynamic parameters non-event time-varying Conditions database (CondDB) General definition:
André Augustinus 10 October 2005 ALICE Detector Control Status Report A. Augustinus, P. Chochula, G. De Cataldo, L. Jirdén, S. Popescu the DCS team, ALICE.
Report on the Commissioning Task Force activity Global and sub-detector views on ECS Histogram handling : – histogram handling and PVSS – the ALEPH and.
ALICE, ATLAS, CMS & LHCb joint workshop on
Peter Chochula DCS Remote Access and Access Control Peter Chochula.
P. Chochula ALICE Week Colmar, June 21, 2004 Status of FED developments.
20th September 2004ALICE DCS Meeting1 Overview FW News PVSS News PVSS Scaling Up News Front-end News Questions.
André Augustinus 21 June 2004 DCS Workshop Detector DCS overview Status and Progress.
Naming and Code Conventions for ALICE DCS (1st thoughts)
Management of the LHCb DAQ Network Guoming Liu * †, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
Clara Gaspar, March 2005 LHCb Online & the Conditions DB.
Introduction CMS database workshop 23 rd to 25 th of February 2004 Frank Glege.
Online Software 8-July-98 Commissioning Working Group DØ Workshop S. Fuess Objective: Define for you, the customers of the Online system, the products.
Overview of DAQ at CERN experiments E.Radicioni, INFN MICE Daq and Controls Workshop.
Peter Chochula ALICE Offline Week, October 04,2005 External access to the ALICE DCS archives.
4 Oct 2005 / Offline week Shuttle program for gathering conditions data from external DB Boyko Yordanov 4 October 2005 ALICE Offline week.
Controls EN-ICE FSM for dummies (…w/ all my respects) 15 th Jan 09.
Peter Chochula.  DCS architecture in ALICE  Databases in ALICE DCS  Layout  Interface to external systems  Current status and experience  Future.
DCS overview - L.Jirdén1 ALICE ECS/DCS – project overview strategy and status L.Jirden u Organization u DCS system overview u Implementation.
Alarm Handling Oliver Holme 7 th November Guidelines & Strategies All provide recommendation to use Framework Classes Standard severities/behaviour/colours.
“The LHC GCS Framework” Geraldine Thomas CERN, IT-CO A complete PLC and PVSS automatic code Generation.
Configuration database status report Eric van Herwijnen September 29 th 2004 work done by: Lana Abadie Felix Schmidt-Eisenlohr.
The ATLAS DAQ System Online Configurations Database Service Challenge J. Almeida, M. Dobson, A. Kazarov, G. Lehmann-Miotto, J.E. Sloper, I. Soloviev and.
LHCb Configuration Database Lana Abadie, PhD student (CERN & University of Pierre et Marie Curie (Paris VI), LIP6.
Management of the LHCb DAQ Network Guoming Liu *†, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
22 March 2010 DCS workshop C. Bortolin, g. de cataldo and A. Franco INFN it/CERN CH 1 Progress on LHC data exchange LHC-ALI_DCS project overview Future.
Summary of TPC/TRD/DCS/ECS/DAQ meeting on FERO configuration CERN,January 31 st 2006 Peter Chochula.
Database Issues Peter Chochula 7 th DCS Workshop, June 16, 2003.
Maria del Carmen Barandela Pazos CERN CHEP 2-7 Sep 2007 Victoria LHCb Online Interface to the Conditions Database.
JCOP Framework and PVSS News ALICE DCS Workshop 14 th March, 2006 Piotr Golonka CERN IT/CO-BE Outline PVSS status Framework: Current status and future.
MARCO control system Munich Lukasz Zwalinski – PH/DT Maciej Ostrega – PH/DT.
M. Caprini IFIN-HH Bucharest DAQ Control and Monitoring - A Software Component Model.
ALICE. 2 Experiment Size: 16 x 26 meters (some detectors >100m away from IP) Weight: 10,000 tons Detectors: 18 Magnets: 2 Dedicated to study of ultra.
20OCT2009Calo Piquet Training Session - Xvc1 ECS Overview Piquet Training Session Cuvée 2009 Xavier Vilasis.
The PVSS Oracle Archiver FW WG 6 th July Credits Many people involved IT/DES: Eric Grancher, Nilo Segura, Chris Lambert IT/PSS: Luca Canali ALICE:
PVSS an industrial tool for slow control
Peter Chochula Calibration Workshop, February 23, 2005
PVSS Evolution in Relation to Databases
WinCC-OA Upgrades in LHCb.
Slava Filimonov & Jim Cook, PVSS - ROOT Interface
The LHCb Run Control System
Presentation transcript:

The DCS Databases Peter Chochula

31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow) Configuration Database DCS Archive –Architecture –Access to the DCS archive Current status

31/05/2005Peter Chochula 3 Driver Layer Communication and Storage Layer Application Layer UI Layer The PVSS Architecture User Interface Manager Data Manager Driver User Interface Manager User Interface Manager Event Manager API Manager Control Manager

31/05/2005Peter Chochula 4 User Interface Manager Data Manager Driver User Interface Manager User Interface Manager Event Manager API Manager Control Manager In a scattered system, the managers can run on dedicated machines In a simple system all managers run on the same machine

31/05/2005Peter Chochula 5 Distribution Manager Distribution Manager Distribution Manager User Interface Manager Data Manager Driver User Interface Manager User Interface Manager Event Manager API Manager Control Manager User Interface Manager Data Manager Driver User Interface Manager User Interface Manager Event Manager API Manager Control Manager User Interface Manager Data Manager Driver User Interface Manager User Interface Manager Event Manager API Manager Control Manager In a distrubuted system several PVSSII systems (simple or scatered) are interconnected

31/05/2005Peter Chochula 6 Remarks The DCS configuration is not static and will change in time –The managers may be scattered if needed –Individual systems may be split into distributed system, or joined together –Devices might be added/removed, channel assignment might change At present time we expect the global DCS will be formed by a distributed PVSS system consisting of individual scattered systems

31/05/2005Peter Chochula 7 PVSSII basics - Datapoints PVSS data is stored as Datapoints (DP) of a given Datapoint Type (DPT) DPT represents data structure of the device –User definable DP contains information related to an instance of a device (similar to Objects and Classes) –DP can contain many read/write parameters called Datapoint Elements (DPE) –Possible DPE types include char,integer, float, boolean … and arrays made of them –DP contains configs, which are defining its behavior (e.g. archiving, smoothing, alarm handling etc.) –Several status bit indicate the quality of acquired data, etc.

31/05/2005Peter Chochula 8 Example Datapoint DPT DP DPE SystemName:DPName:DPE Value Timestamp Config System1:TestFloat1:floatvalue

31/05/2005Peter Chochula 9 Remarks The full Datapoint name includes the system name. This can change with time if the system gets distributed An alias name is available for each DP and can be used to simplify its tracking (e.g. if a device channel assignment changes within a detector)

31/05/2005Peter Chochula 10 DCS Databases Two databases are essential for the DCS operation Configuration database stores : –Static settings (channel assignments, board configuration…) –Dynamic settings (alarm limits, voltage set values, FERO parameters…) DCS Archive stores: –Measured values –Alarms

31/05/2005Peter Chochula 11 The DCS configuration database Configuration of all DCS devices is stored here Different versions (recipes) exist for different operation modes (calibration, cosmics, collisions…) Recipes can be changed during the operation (e.g. HV ramping through the intermediate state)

31/05/2005Peter Chochula 12 The DCS Archive Designed to store measured values Configured and accessed via the PVSS Tools exists for mass configuration of archival settings (smoothing, averaging, etc.) All data written into the archive is timestamped Only values read from devices are stored in the archive (e.g. no direct data flow between the configuration database and the archive) Recipe versions are archived if the recipe is changed

31/05/2005Peter Chochula 13 What data goes into the DCS archive? Only monitored values marked for archival are stored (DP config required). This includes: Data directly acquired by the DCS – HV, LV, FERO, magnetic field, environmental parameters, … External Data and Services – electricity, racks, DSS, LHC information, … ALICE specific information – run number, run type, …

31/05/2005Peter Chochula 14 The DCS Data Flow Config. PVSS Archive Devices ECS Electricity Ventilation Cooling Gas Magnets Safety Access Control LHC DAQTRIHLT DIM, DIP

31/05/2005Peter Chochula 15 DCS Archive implementation New method of PVSS archiving is finally available The PVSS RDB archival is replacing the previous method based on local files –All PVSS-based tools are compatible with the new approach (we can profit from the PVSS trending etc.) –Oracle database server is required –Architecture resembles the previous concept based on files A set of Windows DLL’s and Linux libraries is used to access the archive from PVSS –Data storage and retrieval within the PVSS works without changes A library handles the management of data on the Oracle Server (create/close tables, backup tables…)

31/05/2005Peter Chochula 16 PVSS Archive Tables For each group of archived values a set of tables is generated –LastVal – input table storing the most recent value –Current – a table keeping a history record of measured values. An Oracle trigger is used to write data to this table The table is closed if it exceeds a predefined size and is replaced with a new one The latest available values are copied to the new table automatically –Online – a copy of the closed Current table –Offline – a table written to backup media and not directly available A set of internal tables for database maintenance exists Archive tables are using their own tablespace (this is why a trigger is needed) For each Datapoint several parameters are stored: –Value –Timestamp(s) –Flags (for example reliability)

31/05/2005Peter Chochula 17 Online SPD HistoryValues Online SPD History Online SPD HistoryValues Online SPD History Basic DCS archive configuration SPD LastValValues SPD LastVal Current SPD HistoryValues Current SPD History Offline SPD HistoryValues Offline SPD HistoryValues Offline SPD History Offline SPD History (arrays)(“basic” datapoints)

31/05/2005Peter Chochula 18 Accessing the Archive Tables A set of libraries is available on the PVSS side to access the data from the database The libraries hide the archival complexity – user need to specify the Datapoint name and the time interval A dedicated library allows for direct database access (bypassing the PVSS managers)

31/05/2005Peter Chochula 19 Example of Data Selection in PVSS (1)

31/05/2005Peter Chochula 20 Example of Data Selection in PVSS (2)

31/05/2005Peter Chochula 21 Example of Data Selection in PVSS (3)

31/05/2005Peter Chochula 22 Example of Data Selection in PVSS (4) Generated SQL Statement Result of the query

31/05/2005Peter Chochula 23 External access to the PVSS archive Database schema is available – data can be queried from external programs A set of basic Oracle views is provided by the ETM –The complexity of the table partitioning is hidden A PVSS HTTP server allows for remote DP queries

31/05/2005Peter Chochula 24 Root–to–PVSS interface Developed by V.Filimonov (ATLAS) Allows for extraction of PVSS data into root PVSS manager (GetArc) accepts requests from clients, reads data from PVSS database and sends it to the client. A set of Root classes define the client protocol Manager and Client interact via TCP/IP using the PVSS API

31/05/2005Peter Chochula 25 Root–to–PVSS communication Example: get data for a given period of time TPVSSAccess *sock = new TPVSSAccess("pcpix06.cern.ch",4242); char *dp = "TestFloat1.floatvalue"; int rlen = sock->GetTimePeriod(dp,startTime,endTime,len,Values,ts); Additional classes allow for displaying trends etc. DP name Time Period Length of data values timestamps

31/05/2005Peter Chochula 26 Root–to–PVSS example of trend Online trend in PVSS Online trend in Root

31/05/2005Peter Chochula 27 Condition database developments The conditions database will store a subset of the archived data in a form convenient for offline processing JCOP framework is developing the interface to conditions database Conditions data will be written “on fly” by a dedicated process CMS, ATLAS and LHC-B plan to use COOL so all common tools will be available only for this architecture No developments for root are foreseen

31/05/2005Peter Chochula 28 Present Status Prototype of the configuration database exists We are running a private Oracle server in the DCS lab First tests with RDB archiving performed, feedback provided to ETM We are aiming for a stable service during this summer (P2 and Lab)