Skip to main content

Utilities needed for analysis productions in LHCb

Project description

ap_utilities

This project holds code needed to transform the AP used by the RD group into something that makes ntuples with MVA HLT triggers.

Check for samples existence

Given a set of MC samples specified in a YAML file like:

- - Bu_KMM
    - '12113002'
    - 2024.W31.34
    - MagUp
    - sim10-2024.Q3.4-v1.3-mu100
    - dddb-20240427
    - Nu6.3
    - Nu6p3
    - Sim10d
    - Pythia8
- - Bu_KMM_PHSP
    - '12113004'
    - 2024.W31.34
    - MagUp
    - sim10-2024.Q3.4-v1.3-mu100
    - dddb-20240427
    - Nu6.3
    - Nu6p3
    - Sim10d
    - Pythia8

run:

check_samples -i samples.yaml -n 6

to check if the samples exist using 6 threads (default is 1) and store them in samples_found.yaml

To run this one has to be in an environment with:

  1. Access to DIRAC.
  2. A valid grid token.

Specific to MVA lines in the RD group

Add lines to Config.py

To do that run:

transform_text -i Config.py -c conf_rename.toml

which will create an output.py file with the replacements specified in hlt_rename.toml.

Add lines to main.py

To do that run:

transform_text -i main.py  -c main_rename.toml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ap_utilities-0.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

ap_utilities-0.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ap_utilities-0.0.2.tar.gz.

File metadata

  • Download URL: ap_utilities-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ap_utilities-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6d189496c5d15821b5f11382642f0f707ff5394a26dddf4596dcf19886522e02
MD5 514ea8a37faaac65a82e59749d40ee9f
BLAKE2b-256 ab8453a268607fc39d57b1e0531253df4f80ea619e0c04aaa4cbf31f8b96da95

See more details on using hashes here.

Provenance

The following attestation bundles were made for ap_utilities-0.0.2.tar.gz:

Publisher: publish.yaml on acampove/ap_utilities

Attestations:

File details

Details for the file ap_utilities-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ap_utilities-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ap_utilities-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f903321cda62c52e41c2920a6339b9fe8a6a8a48fa9ff2ef401787977e61f771
MD5 a9bc1d3a9143a22668f451e65bd1af13
BLAKE2b-256 cb66e96fdc61372dec3bd47718ac6ed070cb63c242c1c5308ad4a7cd6706c175

See more details on using hashes here.

Provenance

The following attestation bundles were made for ap_utilities-0.0.2-py3-none-any.whl:

Publisher: publish.yaml on acampove/ap_utilities

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page