Software for implementing trigger algorithms on the upgraded CMS Global Trigger System

Similar documents
PoS(EPS-HEP2017)523. The CMS trigger in Run 2. Mia Tosi CERN

Tracking and flavour tagging selection in the ATLAS High Level Trigger

b-jet identification at High Level Trigger in CMS

The Database Driven ATLAS Trigger Configuration System

CMS FPGA Based Tracklet Approach for L1 Track Finding

The CMS data quality monitoring software: experience and future prospects

The Compact Muon Solenoid Experiment. Conference Report. Mailing address: CMS CERN, CH-1211 GENEVA 23, Switzerland

ATLAS, CMS and LHCb Trigger systems for flavour physics

CMS Calorimeter Trigger Phase I upgrade

First LHCb measurement with data from the LHC Run 2

ATLAS NOTE. December 4, ATLAS offline reconstruction timing improvements for run-2. The ATLAS Collaboration. Abstract

The CMS L1 Global Trigger Offline Software

ATLAS TDAQ RoI Builder and the Level 2 Supervisor system

Performance of Tracking, b-tagging and Jet/MET reconstruction at the CMS High Level Trigger

LHC Detector Upgrades

Fast pattern recognition with the ATLAS L1Track trigger for the HL-LHC

CMS - HLT Configuration Management System

The LHCb upgrade. Outline: Present LHCb detector and trigger LHCb upgrade main drivers Overview of the sub-detector modifications Conclusions

VISPA: Visual Physics Analysis Environment

CMS High Level Trigger Timing Measurements

arxiv:hep-ph/ v1 11 Mar 2002

First results from the LHCb Vertex Locator

CMX (Common Merger extension module) Y. Ermoline for CMX collaboration Preliminary Design Review, Stockholm, 29 June 2011

PoS(High-pT physics09)036

A generic firmware core to drive the Front-End GBT-SCAs for the LHCb upgrade

Design and Implementation of the Global Calorimeter Trigger for CMS

Upgrade of the ATLAS Level-1 Trigger with event topology information

Associative Memory Pattern Matching for the L1 Track Trigger of CMS at the HL-LHC

Investigation of High-Level Synthesis tools applicability to data acquisition systems design based on the CMS ECAL Data Concentrator Card example

ATLAS PILE-UP AND OVERLAY SIMULATION

ATLAS ITk Layout Design and Optimisation

Field Program mable Gate Arrays

Update of the BESIII Event Display System

A 3-D Track-Finding Processor for the CMS Level-1 Muon Trigger

PoS(TIPP2014)204. Tracking at High Level Trigger in CMS. Mia TOSI Universitá degli Studi di Padova e INFN (IT)

US CMS TriDAS US CMS Meeting. Wesley H. Smith, U. Wisconsin CMS Trigger Project Manager April 8, 2006

PoS(ACAT08)101. An Overview of the b-tagging Algorithms in the CMS Offline Software. Christophe Saout

Level-1 Regional Calorimeter Trigger System for CMS

The Compact Muon Solenoid Experiment. Conference Report. Mailing address: CMS CERN, CH-1211 GENEVA 23, Switzerland

The ALICE Glance Shift Accounting Management System (SAMS)

Common Software for Controlling and Monitoring the Upgraded CMS Level-1 Trigger

The ATLAS Level-1 Muon to Central Trigger Processor Interface

The Track-Finding Processor for the Level-1 Trigger of the CMS Endcap Muon System

The High-Level Dataset-based Data Transfer System in BESDIRAC

Deep Learning Photon Identification in a SuperGranular Calorimeter

WBS Trigger. Wesley H. Smith, U. Wisconsin CMS Trigger Project Manager. DOE/NSF Review June 5, 2002

CMS Note Mailing address: CMS CERN, CH-1211 GENEVA 23, Switzerland

Prompt data reconstruction at the ATLAS experiment

The Compact Muon Solenoid Experiment. Conference Report. Mailing address: CMS CERN, CH-1211 GENEVA 23, Switzerland

LVL1 e/γ RoI Builder Prototype

L1 and Subsequent Triggers

Challenges and performance of the frontier technology applied to an ATLAS Phase-I calorimeter trigger board dedicated to the jet identification

Trigger and Data Acquisition: an ATLAS case study

RT2016 Phase-I Trigger Readout Electronics Upgrade for the ATLAS Liquid-Argon Calorimeters

An ATCA framework for the upgraded ATLAS read out electronics at the LHC

Muon Reconstruction and Identification in CMS

L2 Global Status and Opportunities

Short Introduction to DCS, JCOP Framework, PVSS. PVSS Architecture and Concept. JCOP Framework concepts and tools.

Standardization of automated industrial test equipment for mass production of control systems

A New Segment Building Algorithm for the Cathode Strip Chambers in the CMS Experiment

The CMS Event Builder

Tracking and Vertexing performance in CMS

CMS event display and data quality monitoring at LHC start-up

The ATLAS Trigger System: Past, Present and Future

An FPGA Based General Purpose DAQ Module for the KLOE-2 Experiment

Striped Data Server for Scalable Parallel Data Analysis

Trigger and Data Acquisition at the Large Hadron Collider

Event Displays and LArg

Design of the new ATLAS Inner Tracker (ITk) for the High Luminosity LHC

Ignacy Kudla, Radomir Kupczak, Krzysztof Pozniak, Antonio Ranieri

File Access Optimization with the Lustre Filesystem at Florida CMS T2

Development and test of a versatile DAQ system based on the ATCA standard

Copyright 2014 Society of Photo-Optical Instrumentation Engineers. This paper was published in Proceedings of SPIE (Proc. SPIE Vol.

Calorimeter Trigger Hardware Update

THE ATLAS DATA ACQUISITION SYSTEM IN LHC RUN 2

ATLAS Tracking Detector Upgrade studies using the Fast Simulation Engine

CHEPREO PHYSICS RESEARCH

The Belle II Software From Detector Signals to Physics Results

Detector Control System for Endcap Resistive Plate Chambers

Data Quality Monitoring at CMS with Machine Learning

arxiv: v1 [physics.ins-det] 16 Oct 2017

An Upgraded ATLAS Central Trigger for 2015 LHC Luminosities

CMS Alignement and Calibration workflows: lesson learned and future plans

The CMS Global Calorimeter Trigger Hardware Design

The ALICE electromagnetic calorimeter high level triggers

Trigger information in the Atlantis event display

Data Quality Monitoring Display for ATLAS experiment

SNiPER: an offline software framework for non-collider physics experiments

The GAP project: GPU applications for High Level Trigger and Medical Imaging

The ATLAS Data Acquisition System: from Run 1 to Run 2

ATLAS Nightly Build System Upgrade

The full detector simulation for the ATLAS experiment: status and outlook

Motivation Requirements Design Examples Experiences Conclusion

IT Challenges and Initiatives in Scientific Research

Physics CMS Muon High Level Trigger: Level 3 reconstruction algorithm development and optimization

Electron and Photon Reconstruction and Identification with the ATLAS Detector

Construction of the Phase I upgrade of the CMS pixel detector

CMS Conference Report

The CMS High Level Trigger System: Experience and Future Development

Disentangling P ANDA s time-based data stream

Transcription:

Software for implementing trigger algorithms on the upgraded CMS Global Trigger System Takashi Matsushita and Bernhard Arnold Institute of High Energy Physics, Austrian Academy of Sciences, Nikolsdorfer Gasse 18, 1050 Wien, Austria E-mail: takashi.matsushita@cern.ch Abstract. The Global Trigger is the final step of the CMS Level-1 Trigger and implements a trigger menu, a set of selection requirements applied to the final list of trigger objects. The conditions for trigger object selection, with possible topological requirements on multiobject triggers, are combined by simple combinatorial logic to form the algorithms. The LHC has resumed its operation in 2015, the collision-energy will be increased to 13 TeV with the luminosity expected to go up to 2 10 34 cm 2 s 1. The CMS Level-1 trigger system will be upgraded to improve its performance for selecting interesting physics events and to operate within the predefined data-acquisition rate in the challenging environment expected at LHC Run 2. The Global Trigger will be re-implemented on modern FPGAs on an Advanced Mezzanine Card in MicroTCA crate. The upgraded system will benefit from the ability to process complex algorithms with DSP slices and increased processing resources with optical links running at 10 Gbit/s, enabling more algorithms at a time than previously possible and allowing CMS to be more flexible in how it handles the trigger bandwidth. In order to handle the increased complexity of the trigger menu implemented on the upgraded Global Trigger, a set of new software has been developed. The software allows a physicist to define a menu with analysis-like triggers using intuitive user interface. The menu is then realised on FPGAs with further software processing, instantiating predefined firmware blocks. The design and implementation of the software for preparing a menu for the upgraded CMS Global Trigger system are presented. 1. Introduction The Global Trigger is the final step of the CMS Level-1 trigger and implements a trigger menu, a set of selection requirements applied to the final list of objects from calorimeter and muon triggers to meet the physics objectives [1]. The conditions for trigger object selection, with possible topological requirements on multi-object triggers, are combined by simple combinatorial logic (AND-OR-NOT) to form the algorithms. The most basic algorithm consist of applying E T or p T threshold to single object. The present Global Trigger is comprised of several VME modules with FPGAs. The LHC has resumed its operation in 2015, the collision-energy will be increased from 8 TeV to 13 TeV, with the luminosity expected to go up from 0.75 10 34 cm 2 s 1 to 2 10 34 cm 2 s 1. These operating environments will provide new challenges for the CMS trigger system. The CMS Level-1 trigger system will be upgraded to improve its performance for selecting interesting physics events and to operate within the predefined data-acquisition rate [2]. Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI. Published under licence by IOP Publishing Ltd 1

The technical implementation of the upgrades revolves around standardisation and flexibility. The standardisation comes by means of using large, modern FPGAs, which will provide the needed flexibility by allowing the implementation of reconfigurable and highly sophisticated algorithms. This standardisation will help to minimise the future maintenance of the overall system and to share expertise across the Level-1 Trigger group. High-bandwidth optical data communication links also allow the system to be highly reconfigurable to accommodate future detector and electronic upgrades to the CMS experiment. The Global Trigger will be re-implemented on modern FPGAs on an Advanced Mezzanine Card in MicroTCA crate. The MP7 (Master Processor board, Virtex-7) developed by Imperial College [3] will be used for the upgraded Global Trigger. The upgraded system will benefit from the ability to process complex algorithms with DSP slices and increased processing resources with optical links running at 10 Gbit/s, enabling more algorithms at a time than previously possible and allowing CMS to be more flexible in how it handles the trigger bandwidth. CMS also will be able to match different objects, e.g. muons with jets, with higher resolution and efficiency and be able to calculate more sophisticated quantities such as the mass of a pair of objects. In 2015, CMS plans to keep the present triggers running and commission the new ones simultaneously. Detailed comparisons will be performed between both to test everything from technical implementation to whether the new triggers perform better, before the older system will be turned off. A software for handling trigger menu implementation on the present system is strongly coupled with the current hardware design. In order to handle the increased complexity of the trigger menu implemented on the upgraded Global Trigger, a set of new software has been developed. The software allows a physicist to define a menu with analysis-like triggers using intuitive user interface. The menu is then realised on FPGAs with further software processing, instantiating predefined firmware blocks. The menu plays a central role in trigger selection and is shared by the second level trigger, known as the High Level Trigger as well as the trigger emulating software in an offline software environment. The menu information is stored in either an XML file or in a database for sharing information with other systems. 2. Level-1 menu grammar For hiding the underlying hardware implementation as well as to make the data structure of a trigger menu to be flexible for enabling future evolution of the Global Trigger, a set of rules for describing algorithms for the Global Trigger (Level-1 menu grammar) is introduced. The Level-1 menu grammar is mostly defined and parsed by Boost.Spirit [4]. The Boost.Spirit enables a target grammar to be written exclusively in C++ programming language using inline Extended Backus-Normal Form grammar specifications. An algorithm is comprised of a combination of object, cut, function, external signal and logical operators. An object is a physical object created by the calorimeter and the muon trigger systems, i.e µ, eγ, jet, τ, E T, H T, E Tmiss and H Tmiss. In the Level-1 menu grammar, each object has its p T or E T threshold applied at a certain bunch crossing offset with respect to the bunch crossing ID of a collision. A function is a logical or mathematical computation based on objects. A cut is a condition applied on objects or on the value computed by a function. An external signal is a pre-defined set of binary input signals to the Global Trigger. Table 1 summarises each component. A set of pre-defined functions are available. There are currently three types of functions, i.e. comb, mass and dist. The comb function is used for a double-, triple- and quad-objects triggers. For example, a di-objects trigger is expressed as comb{obj1,obj2}. The mass function is used to compute invariant mass of two objects. The dist function calculates distance between two objects with specified metric. The dist function is expressed as dist{obj1,obj2}[metric], here metric can be one of η, φ and R = η 2 + φ 2 with its range specified. 2

Table 1. Components of the Level-1 menu grammar. Object µ, eγ, jet, τ, E T, H T, E Tmiss, H Tmiss Function logical or mathematical computation based on objects Cut condition applied on objects or on the return value of a function External signal a pre-defined set of binary input signal to the µgt Logical operators AND, OR, XOR and NOT The simplest algorithm is an object with p T or E T threshold. A muon with p T 20 GeV is expressed as MU20 or MU.ge.20+0, here +0 denotes bunch crossing offset. One or more cuts can be applied to an object by appending cuts in square brackets as MU20[MU-PHI UPPER,MU-ETA BARREL]. Here the cuts MU-PHI UPPER and MU-ETA BARREL should be defined by a user to specify φ and η ranges. Di-muon trigger with p T 20 GeV and p T 10 GeV can be defined using a combination function as comb{mu20,mu10}. Cuts can be applied to a function as well. For example, one can specify invariant mass range of di-muon as mass{mu20,mu10}[mass JPSI]. Topological requirements on multi-object can be applied with dist function. Due to its abstract nature, an algorithm expressed with the grammar is de-coupled from the details of the underlying hardware implementation. An intermediate software layer handles hardware specific implementation of the menu expressed in the grammar. In this way, the flexibility in the software layer has been newly introduced. 3. Level-1 trigger menu tools Software libraries have been developed to build menu related tools for implementing a grammar based Level-1 trigger menu on hardware. Figure 1 shows software libraries and tools for menu implementation. Circles in the figure represents three software domains. In online software domain, the menu stored in the online database is used for data taking purpose and the menu is transferred to the offline database with O2O process. In offline software domain, the menu stored in the offline database is used for the emulator in CMS offline software framework (CMSSW) as well as raw data unpacker for the Global Trigger. In the HEPHY domain, the menu will be translated to VHDL code with VHDL producer and the code will be synthesized to build a firmware. 3.1. Trigger Menu Editor Trigger menu editor provides a graphical user interface for a physicist to edit or to create a Level-1 trigger menu without exposing the complex hardware logic of the Global Trigger. The editor helps a user to express algorithms in the Level-1 menu grammar for composing a menu. Figure 2 shows the use case diagram of the trigger menu editor. Level-1 trigger menus are stored in the CMS online database for persistency. Users can retrieve a menu in an XML format, then use the XML file for developing a menu without accessing the online database which is located in a private network. Expert users can upload a Level-1 trigger menu to the online database using the Web-based graphical user interface for the database. Code Synthesis XSD [5] is used for creating XML data binding for C++. Then a binding for Python [6] scripting language is generated by SWIG [7] to enable rapid development of graphical user interface. Database access is implemented by using XDAQ/TS framework [8] developed for the CMS experiment. 3

Online Online DB (OMDS schema) DB GUI DB interface TStore/SQL GUI XDAQ/TS O2O VHDL template VHDL producer template processor EventSetup classes Menu XML Offline DB Algorithm parser - Boost VHDL code GUI - pyqt Algorithm parser - Boost Emulator Unpacker Synthesizer Firmware HEPHY Offline Figure 1. Dataflow diagram of Level-1 trigger menu tools. Menu XML Read/write XML menu on a repository (SVN/github) DB GUI on a server Database server normal user Edit menu Download menu XML Upload menu XML Download menu XML Edit menu expert user Figure 2. Use case diagram of the trigger menu graphical user interface. Experts can edit a menu then commit the contents of a menu to the online database. Normal users can edit a menu in an XML file and test it with the emulator in CMSSW framework. 3.2. VHDL producer The VHDL producer assembles VHDL codes by populating parameters of VHDL templates according to a Level-1 trigger menu. A template engine for Python, Jinja2 [9], is used to instantiate VHDL template. For accessing the information stored in a Level-1 trigger menu, 4

common data structures and C++ classes are developed to share the codes between VHDL producer and the emulator in CMSSW, both of which need to retrieve the information from a Level-1 trigger menu. The VHDL producer uses Python binding created by SWIG and the emulator uses shared libraries as external libraries of CMSSW. 4. Summary The Level-1 Trigger system of the CMS experiment will be upgraded for LHC Run 2, with emphasis on standardisation and flexibility. The Global Trigger will be re-implemented on modern FPGAs on an Advanced Mezzanine Card in MicroTCA crate. For hiding the underlying hardware implementation as well as to make the data structure for a trigger menu to be flexible for enabling future evolution of the Global Trigger, a set of rules for describing an algorithm for the Global Trigger has been introduced. New software tools have been developed to help implementing the event selection algorithms of increased complexity on the Global Trigger. Acknowledgments We acknowledge the enduring support for the construction and operation of the LHC and the CMS detector provided by the Bundesministerium für Wissenschaft, Forschung und Wirtschaft (Austria). References [1] M Jeitler et al 2007 JINST 2 P01006 [2] CMS Collaboration 2012 CMS technical design report for the level-1 trigger upgrade CMS-TDR-012 [3] http://www.hep.ph.ic.ac.uk/mp7/ [4] http://www.boost.org/libs/spirit [5] http://www.codesynthesis.com/products/xsd/ [6] https://www.python.org [7] http://www.swig.org [8] Magrans de Arbril I et al 2006 IEEE Trans. Nucl. Sci. 53 474-83 [9] http://jinja.pocoo.org 5