Giter VIP home page Giter VIP logo

phase2-l1menutools's Introduction

Phase2-L1MenuTools

Trigger efficiencies and rates

This repository contains the python-based framework for the measurement of matching efficiencies, trigger turn-on curves, and scalings for the assessment of the physics performance of the CMS Phase-2 L1 Menu.

The repository is organized as follows:

  • objectPerformance: tools for the measurement of the performance (matching efficiency, L1 turn-on efficiency curves, and online-to-offline scalings) of L1 objects. The definition of the L1 objects should follow the recommendations detailed here.

  • rates: tools for the measurement of trigger rates starting from the scalings derived with the tools in objectPerformance.

Detailed instructions on how to run each step of the workflow are provided in each folder.

Setup of Python environment

Note: The code should run without any setup on lxplus.

In the event of failure of the central setup, the following steps are required to install a new Python environment.

Install miniconda

To install miniconda run the following commands:

cd ~
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

Install the environment for the framework

Specify the path to your miniconda3 installation under prefix in environment.yml (working examples of environment.yml files are provided in the objectPerformance and rates folders) and run

conda env create -f environment.yml

This will create a new environment named py310.

To execute the scripts in the repo you need to modify the shebang (the very first line of the executable .py files which starts with #!) to point to your newly set up Python installation. To find the path run

conda activate py310  
which python

and replace the current path in the shebang with the output.

More details on how to set up a conda environment using a shared .yml file can be found here.

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.