advanced european infrastructures for detectors at ... · aida-2020 consortium, 2017 grant...

12
AIDA-2020-D15.3 AIDA-2020 Advanced European Infrastructures for Detectors at Accelerators Deliverable Report Environmental control system at DESY Wu, Mengqing (DESY) 27 October 2017 The AIDA-2020 Advanced European Infrastructures for Detectors at Accelerators project has received funding from the European Union’s Horizon 2020 Research and Innovation programme under Grant Agreement no. 654168. This work is part of AIDA-2020 Work Package 15: Upgrade of beam and irradiation test infrastructure. The electronic version of this AIDA-2020 Publication is available via the AIDA-2020 web site <http://aida2020.web.cern.ch> or on the CERN Document Server at the following URL: <http://cds.cern.ch/search?p=AIDA-2020-D15.3> Copyright c CERN for the benefit of the AIDA-2020 Consortium

Upload: dinhnhan

Post on 09-Dec-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

AIDA-2020-D15.3

AIDA-2020Advanced European Infrastructures for Detectors at Accelerators

Deliverable Report

Environmental control system at DESY

Wu, Mengqing (DESY)

27 October 2017

The AIDA-2020 Advanced European Infrastructures for Detectors at Accelerators projecthas received funding from the European Union’s Horizon 2020 Research and Innovation

programme under Grant Agreement no. 654168.

This work is part of AIDA-2020 Work Package 15: Upgrade of beam and irradiation testinfrastructure.

The electronic version of this AIDA-2020 Publication is available via the AIDA-2020 web site<http://aida2020.web.cern.ch> or on the CERN Document Server at the following URL:

<http://cds.cern.ch/search?p=AIDA-2020-D15.3>

Copyright c© CERN for the benefit of the AIDA-2020 Consortium

AIDA-2020 Consortium, 2017

Grant Agreement 654168 PUBLIC 1 / 11

Grant Agreement No: 654168

AIDA-2020 Advanced European Infrastructures for Detectors at Accelerators

Hor izon 2020 Research In f rast ructures pro ject AIDA -2020

DELIVERABLE REPORT

ENVIRONMENTAL CONTROL SYSTEM AT

DESY

DELIVERABLE: D15.3

Document identifier: AIDA-2020-D15.3

Due date of deliverable: End of Month 30 (October 2017)

Report release date: 27/10/2017

Work package: WP15: Upgrade of beam and irradiation test infrastructure

Lead beneficiary: DESY

Document status: Final

Abstract:

Many complex system tests are being conducted in the DESY-II Test Beam Facility, such as the test

of an entire slice of the BELLE-II tracking system and the test of an engineering prototype of the

CALICE AHCAL. All these tests require logging the environmental parameters of the detector and

the experimental area. As part of the upgrade of the Test Beam facility, a central monitoring system

has been set up with a suite of sensors and a software interface to readout the collected data. The

system is designed to be integrated into the slow control system of user groups and provides them

with a ready-to-use and reliable logging system centrally maintained and supported by DESY. This

report describes the final environmental slow control system and the integration to the common

EUDAQ framework. It also summarizes the commissioning experience.

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 2 / 11

AIDA-2020 Consortium, 2017

For more information on AIDA-2020, its partners and contributors please see www.cern.ch/AIDA2020

The Advanced European Infrastructures for Detectors at Accelerators (AIDA-2020) project has received funding from

the European Union’s Horizon 2020 Research and Innovation programme under Grant Agreement no. 654168. AIDA-

2020 began in May 2015 and will run for 4 years.

Delivery Slip

Name Partner Date

Authored by M. Wu DESY 15/09/2017

Edited by M. Wu DESY 15/09/2017

Reviewed by

M. Stanitzki [WP coordinator]

F. Ravotti [WP coordinator]

D. Bortoletto [Deputy scientific coordinator)

F. Sefkow [Scientific coordinator]

DESY

CERN

UOXF

DESY

18/10/2017

Approved by F. Sefkow [Scientific coordinator]

Steering Committee 27/10/2017

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 3 / 11

TABLE OF CONTENTS

1. INTRODUCTION.................................................................................................................................................... 4

2. ARCHITECTURE OF THE SYSTEM .................................................................................................................. 5

2.1. HARDWARE SETUP ............................................................................................................................................. 6 2.2. SOFTWARE INTERFACE ....................................................................................................................................... 6

2.2.1. Database and connector ........................................................................................................................... 7 2.2.2. EUDAQ2 Integration ................................................................................................................................ 9

3. COMMISIONING AT DESY ............................................................................................................................... 10

3.1. DEVELOPMENT IN THE LABORATORY ............................................................................................................... 10 3.2. TESTBEAM RESULTS ......................................................................................................................................... 10

4. SUMMARY ............................................................................................................................................................ 11

5. REFERENCES ....................................................................................................................................................... 11

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 4 / 11

Executive summary

This report refers to Deliverable D15.3: Environmental Control System at DESY. This development

has been done within the AIDA2020 work package 15, namely “Upgrade of beam and irradiation

test infrastructure”. Many system tests are being conducted in the DESY-II Test Beam Facility,

culminating in a test of an entire slice of the BELLE-II tracking system and the test of an engineering

prototype of the CALICE AHCAL. All these tests require logging of all environmental parameters in

the detector as well as in the experimental area. As part of the upgrade of the facility, a central

monitoring system has been set up with a set of sensors and software to readout the collected data.

The system will be integrated into the slow control system of user groups providing them a ready-to-

use and reliable logging system centrally maintained and supported by DESY. Thereby the data

acquisition of this system has been integrated into the common EUDAQ framework.

The basic architecture of this newly built system, as well as its hardware and software setup, are

presented in this report.

1. INTRODUCTION

One of the upgrade tasks of the test beam infrastructure at DESY concerns a common slow control

system for the test beam areas. This system is designed to monitor the environmental parameters of

the following three categories of the DESY II Test Beam (TB) Facility, (see 1):

(1) Common TB parameters, such as temperature, humidity, dew point, air pressure and etc.;

(2) TB area specific parameters, for example the dipole magnet in TB area 21;

(3) User configurable parameters, such as the chiller temperature, nitrogen flow, etc.

Several user groups have expressed the need for such slow control system for TBs and therefore it

was important to support this development within WP15.3. Furthermore, this activity is strongly

linked with WP5 and the EUDAQ2 package. Therefore, all AIDA2020 work packages can benefit

from this system and use it in their respective tests of their detectors.

This deliverable report gives an overview of the system architecture in section 2, where the hardware

setup and the software interface for the slow control system are introduced. Section 3 briefly explains

the commissioning of the system in the laboratory and at the DESY II Test Beam Facility. Results

illustrating the performance of the system are also shown in this section.

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 5 / 11

Figure 1: The DESY-II Test Beam Facility: coloured area to be monitored by this slow control system.

2. ARCHITECTURE OF THE SYSTEM

This slow control system is designed to monitor various test beam infrastructure parameters and is

expected to achieve the following features: (1) ease of integration in the common DAQ system of

AIDA2020, the EUDAQ data acquisition system [1]; (2) portability to different beam area and/or for

various monitoring purposes; (3) user-friendly test-beam operation as well as easy maintenance and

upgrade. (A user manual has also been prepared [2])

The rack-based system, shown in Figure 2, has been built in order to meet all the above demands. All

sensors to monitor TB common/specific parameters, and user configurable measurements, are

connected to a centralized data logger; data is fed to a database through the control software installed

on the rack-PC; users can write their own data acquisition module to process the slow control data by

communicating with the database using Structured Query Language (SQL).

Figure 2: System flow chart.

AnyDatabase

Singletransac1on

OnlineDisplay

Rack-PCDAQSo; ware

DataLogger

TBCommon

TBAreaSpecific

Userconfigurable

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 6 / 11

2.1. HARDWARE SETUP

The hardware rack for this system was assembled in DESY, including a data logger purchased from

the Ahlborn Company called ALMEMO [3]. It is connected to a Windows rack-PC and multiple

sensors, such as NTC temperature sensors, to measure the environmental parameters at the test beam.

Currently only the following sensors are mounted: 10 NTC sensors and 1 DIGI sensor to measure

temperature, humidity, dew point temperature and pressure. It is possible to add different sensors at

a later stage. As shown in Figure 3, the rack is mounted on a support with wheels and brakes for

convenient transportation. The photograph was taken when one of the racks was standing at the DESY

TB Area 21 for its test beam commissioning. There are currently two such racks assembled and

configured at DESY.

Figure 3: The slow control system rack at DESY test beam area 21(left), with a closer look at the ALMEMO data logger

(right).

2.2. SOFTWARE INTERFACE

The software interface consists of two DAQ software systems: one is the AMR WinControl7 [4],

purchased from the Ahlborn Company; the other one is the EUDAQ data acquisition system

developed within AIDA2020. The slow control measurement is collected by the AMR software

installed on the windows PC sitting on the rack. This is able to send data every 90 seconds to any

customized DataBase Management System (DBMS) via the Open DataBase Connectivity (ODBC)

data source administrator of the Operation System (OS). A customized EUDAQ interface is

developed to fetch the slow control data from the database, and write it into the standard EUDAQ

data format. The current software setup aims to make it convenient for users to integrate the slow

control data to their own data stream at the test beam. The data flow is illustrated in Figure 4.

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 7 / 11

Figure 4: A flow chart to show the data stream of the slow control system, in which the ‘maintainer’ refers to people to

maintain/upgrade the system.

2.2.1. Database and connector

The AMR WinControl7 is the software developed for data acquisition and data processing by the

ALMEMO equipment of the Ahlborn Company. A standard version of this software has been

purchased and installed in the Windows operation environment of the rack-PC. Figure 5 shows a

screen capture of the commercial AMR software during the test beam commissioning. The AMR

WinControl7 works as an ODBC manager, which can export data collected by ALMEMO to any data

source every 90 seconds, i.e. DBMS, registered to the Operation System (OS).

The DBMS currently used is an open-source relational database management system, MySQL [5],

built up on a Linux (Ubuntu) PC, where the EUDAQ runs. The MySQL database in use is shown in

Figure 6, in which the table ‘aida_channels’ stores complementary information for each channel,

while the ‘aida_SC’ table is connected to the AMR software for exporting the slow control data.

The ODBC used on the rack-PC (Windows7 Enterprise) is the 32-bit version of the Windows ODBC

Data Source Administrator (located in the Windows Control Panel under Administrative Tools) [6].

It manages database drivers and data sources: one only needs to install the relevant DBMS driver,

then the DBMS can be easily registered to the ODBC Data Source Administrator under a unique data

source name (DSN) by providing the DBMS server with the TCP/IP address/port, and the account

information (user name and password) to access the target database from the DBMS. The DSN is

used by AMR WinControl7 to access its corresponding database. The ODBC administrator used on

the Linux-PC where the EUDAQ runs, is the unixODBC [7] that is an open-source project and can

be built/used on many operating systems.

Linux-PC

MySQL(DBMS)

Rack-PC(Windows)

ALMEMO(datalogger)

txt(singletransac1on)

AMRWinControl7

(DAQ)

EUDAQ

DataCollector

SCProducer

OtherProducers

ODBC

unix-ODBC

GUI

Otherdevices

EUDAQRAWEventData

TBUsersMaintainer

Databasedump

RunControl

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 8 / 11

Figure 5: Screenshot of the AMR WinControl7 software in operation.

Figure 6: The screenshot of the tables in the MySQL database used for the system.

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 9 / 11

2.2.2. EUDAQ2 Integration

This system is planned to be accessible to all the test beam users, thus it is recommended to have its

data integrated to a common DAQ system, such as the EUDAQ data acquisition system. The

integration described here is based on the latest version of EUDAQ, i.e. EUDAQ2 [8], which is also

an AIDA2020 milestone.

A default EUDAQ2 configuration file to use this system has been prepared for users, and it can be

customised to users’ needs. For example users can select the data export interval in seconds

(TBSC_INTERVAL_SEC), and choose the sensor channels to write to the EUDAQ data stream

(TBSC_PARA_MASK):

[Datacollector.tbscDC]

DISABLE_PRINT = 1

[Producer.tbsc]

EUDAQ_DC = ”tbscDC”

TBSC_DEBUG = ”false”

TBSC_INTERVAL_SEC = 90

TBSC_PARA_MASK = ”timer,ch0,ch10,ch20,ch30,ch40,ch41”

The EUDAQ provides a QT-based [9] graphical user interface (GUI), as shown in Figure 7, in which

the ‘Producer’ is the module talking to the hardware, and the ‘DataCollector’ collects/merges data

from all running Producers. Users must follow the operation procedure described in the slow control

manual [2], and work in the common platform, EUDAQ, with the prepared

initialization/configuration files. The specialized EUDAQ Producer for the slow control system, and

a relevant DataCollector have been prepared. This customized EUDAQ interface has been used to

collect data for the first commissioning at the DESY test beam. All code is available on the Github

repository in [10].

Figure 7: The EUDAQ2 GUI to monitor data acquisition of this slow control system.

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 10 / 11

3. COMMISIONING AT DESY

3.1. DEVELOPMENT IN THE LABORATORY

The slow control system hardware was assembled in October 2016. It was tested and set-up in the FH

E-Lab at DESY for the relevant software development. The AMR WinControl7 displays all the data

collected from the connected channels every 30 seconds in a table, shown in Figure 4, and produces

an ASICII text file for each data-taking period. The full DAQ chain for this system was developed

and tested successfully by comparing the table and the correspondingly produced text file.

3.2. TESTBEAM RESULTS

The full data acquisition chain was successfully tested in the laboratory by the end of July 2017, and

thus the rack was moved to the DESY II Test Beam Area 21 on August 15th 2017 for its first

commissioning in the test beam environment. Part of the slow control data sample collected at the

DESY test beam is plotted in Figure 8, which shows measurements of temperature, room humidity,

dew-point temperature and air pressure in the Test Beam area 21 on September 1st 2017 from 16:50

to 18:05. As a cross check, one can also dump the target data table from MySQL database into a

separate CSV file. Table 1 is an example of the CSV file opened in Excel, which shows part of the

slow control data collected by EUDAQ2 at the DESY II Test Beam.

Figure 8: Data sample collected at DESY test beam area 21 via this slow control system: temperature (top left), room

humidity (top right), dew-point temperature (bottom left) and the air pressure (bottom right) as a function of time.

Date Time

01/09 15:42:30 01/09 16:12:26 01/09 16:42:23 01/09 17:12:20

C]

°T

[

20

22

24

26

28

Date Time

01/09 15:42:30 01/09 16:12:26 01/09 16:42:23 01/09 17:12:20

RH

[%

]

40

42

44

46

48

Date Time

01/09 15:42:30 01/09 16:12:26 01/09 16:42:23 01/09 17:12:20

C]

°D

T [

9

10

11

12

13

Date Time

01/09 15:42:30 01/09 16:12:26 01/09 16:42:23 01/09 17:12:20

AP

[m

b]

0.96

0.98

1

1.02

1.04

310´

ENVIRONMENTAL CONTROL SYSTEM AT DESY

Deliverable: D15.3

Date: 27/10/2017

Grant Agreement 654168 PUBLIC 11 / 11

Table 1: Example to show part of the slow control data collected by the EUDAQ2 framework from the MySQL database

in an Excel table.

Date Time 0.0 T,t

0.10 RH, Uw

0.20 DT, td

0.30 AP,p mbar

30/08/17 11:37 24.72 60 16.5 1006.3 01/09/17 14:55 23.92 45.7 11.6 1017.1 01/09/17 14:56 23.91 45.8 11.6 1017.1 01/09/17 14:58 23.91 45.7 11.5 1017 01/09/17 14:59 23.94 45.6 11.5 1017.1 01/09/17 15:02 24.03 45.3 11.5 1017 01/09/17 15:04 23.97 45.4 11.5 1017.1 01/09/17 15:05 24.01 45.4 11.5 1017.1 01/09/17 15:06 24 45.5 11.6 1017 01/09/17 15:08 23.96 45.5 11.5 1017.1

4. SUMMARY

A slow control system unit has been successfully built, integrated into the common EUDAQ

framework within the AIDA2020 project, and commissioned at DESY. Its successful operation at

Test Beam Area 21 is shown in Figure 8. The measurements were performed using the EUDAQ2

common data acquisition software developed within the AIDA2020. The slow control system will

now be handed over to pilot users and first operational experience will be gathered. It is foreseen that

the system will be further improved and extended to meet users’ needs.

5. REFERENCES

[1] Jansen, H. et al. (2016), Performance of the EUDET-type beam telescopes, EPJ Techniques and

Instrumentation (2016) 3:7.

[2] Wu, Mengqing (2017) User Manual of the environmental control system at DESY, AIDA-2020-

NOTE-2017-007, http://cds.cern.ch/record/2284369.

[3] AHLBORN Company (2008) Operation instruction ALMEMO® 5690-1 CPU [online]. Available

from: http://www.ahlborn.com/download/anleitung/eng/56901Ce.pdf [Accessed 26 March 2008].

[4] AHLBORN Company (2016) Data sheet of AMR Win Control Software [online]. Available from:

http://www.ahlborn.com/download/pdfs/kap05/eng/WinControle.pdf [Accessed Oct. 2016].

[5] ORACLE (2017) MySQL 8.0 Reference Manual [online]. Available from:

http://dev.mysql.com/doc/refman/8.0/en/ [Accessed 11 Sep. 2017].

[6] Microsoft (2017) Microsoft Open Database Connectivity (ODBC) [online]. Available from:

https://docs.microsoft.com/en-us/sql/odbc/microsoft-open-database-connectivity-odbc [Accessed 14

March 2017].

[7]Easysoft (2017) Linux/Unix ODBC [online]. Available from:

http://www.easysoft.com/developer/interfaces/odbc/linux.html [Accessed 11 September 2017].

[8] Wing, M. et al., Development of run control ready, AIDA2020, AIDA-2020-MS62,

http://cds.cern.ch/record/2276456.

[9] The Qt Company (2017) Qt Documentation [online]. Available from: http://doc.qt.io/qt-5/

[Accessed 31 May 2017].

[10] Wu, Mengqing (2017) EUDAQ modules for the Test Beam Slow Control [online]. Available

from: https://github.com/MengqingWu/eudaq/tree/mewu.master/user/tbscDESY [Accessed 11 Sep.

2017].