GithubHelp home page GithubHelp logo

cms-l1-globaltrigger / tm-editor Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 1.71 MB

CMS Level-1 Trigger Menu Editor (TME)

Home Page: https://cern.ch/globaltrigger/upgrade/tme

License: GNU General Public License v3.0

Python 99.91% Roff 0.09%
cern cms-l1-dpg lhc scientific

tm-editor's People

Contributors

arnobaer avatar herbberg avatar

Watchers

 avatar  avatar

Forkers

arnobaer

tm-editor's Issues

Add support for CICADA

Add support for CICADA objects, refs #41

This requires loading data from scales:

  • CICADA-CSCORE (n_bits holds value size, eg. 16 bits)
  • PRECISION-CICADA-CScore (n_bits holds fraction size, eg. 8 bits)

AXO/TOPO-MODEL cut

To select from a set of different models for the topological trigger a mandatory TOPO-MODEL cut could be introduced for TOPO objects.

Example cuts could be:

  • TOPO-MODEL_HH_Mu (data: hh_mu)
  • TOPO-MODEL_HH_Ele (data: hh_ele)
  • TOPO-MODEL_HH_Had (data: hh_had)

And selected in the algorithm editor like:

TOPO[TOPO-MODEL_HH_Mu, TOPO-SCORE_42p0]

Add seed labels

Sort by seed labels, edit seed labels in algorithm dialog.

Could not load the Qt platform plugin "xcb" in "" even though it was found

There seems to be an issue with libxcb on various Linux distributions and PyQt5 5.15.x

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

Downgrading to PyQt5 5.14.x seems to fix the issue (currently no 5.15 specific features are used).

Icon issue in algorithm editor

In algorithm editor dialog, genuine icons of edit actions are replaced all by themes default edit icon (on LinuxMint 19.2 running in virtual environment).

Screenshot from 2019-11-22 16-53-57

Show default icon if missing theme icon

On Linux some icon themes do not provide all the required icons and end up showing a placeholder (like for the Mint-L theme on Linux Mint 21).

Method QIcon.hasThemeIcon(name) can be used to determine if the icon is missing in the current theme.

Improve function/cut editors

In function editor:

  • add DR cut to function `mass_inv_upt'.
  • add DETA, DPHI, DR, TBPT and CHGCOR cuts to function mass_inv_upt.
  • extend remark for *_orm functions that only calorimeter objects are supported (no muons).
  • comb_orm: tbpt cut possible without orm cut, tbpt cut for "single" orm (e.g.: single jet with tau orm) possible, both are wrong.
  • add CHGCOR cut to function mass_inv_dr and mass_inv_3.

In cut editor:

  • change unit for m0/dR cuts in cut editor to GeV
  • range of DeltaR: max. upper limit calculation in "def calculateDRRange() of Algorithm.py" is wrong, dPhi = math.pi * 2 is not correct (should be dPhi = math.pi).
  • mass_inv_3: used same max. upper limit calculation as for mass_inv in "def calculateInvMassRange() of Algorithm.py", that's wrong. Should be 3 times higher (sum of 3 masses).
  • prevent minimum >= maximum for ranges.

Fix typo in MASSDR cut description

Function inv_mass_dr makes use of pt not upt (thsi is a typo), see

description="Applies invariant mass divided by delta-R restriction of two objects.<br/><br/>" \
"Calculation of invariant mass/delta-R:<br/><br/>" \
"M<sub>0</sub>/&Delta;R = &radic;<span style=\"text-decoration:overline;\">&nbsp;2 <em>upt1</em> <em>upt2</em> (cosh(&Delta;&eta;) - cos(&Delta;&phi;))</span>/&Delta;R<br/><br/>" \
"<strong>Example:</strong> <pre>mass_inv_dr{MU20, MU20}[MASSDR_X]</pre>"

Migration to utm 0.8.x

Migration to grammar version 0.8 introducing:

  • unconstrined pt cut for muons
  • impact parameter cut for muons
  • invariant mass function for three particles

Algorithm editor crashes on new/edit external signal

Recent refactoring introduced a bug in module tmEditor.gui.ExtSignalEditorDialog accessing a SWIG map value using get() resulting in AttributeError: 'Row' object has no attribute 'get'.

Possible solution is replacing get() by operator [].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.