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:

settings:
  year      : 2024
  mc_path   : 2024.W31.34
  polarity  : MagUp
  nu_path   : Nu6.3
  sim_vers  : Sim10d
  generator : Pythia8
  ctags     : sim10-2024.Q3.4-v1.3-mu100
  dtags     : dddb-20240427
event_type :
  - '12425000'
  - '12425011'
  - '12123445'
  - '11124037'
  - '12153420'

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.6.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

ap_utilities-0.0.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ap_utilities-0.0.6.tar.gz
  • Upload date:
  • Size: 7.6 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.6.tar.gz
Algorithm Hash digest
SHA256 35de2cb99288e26567d0df30b2f5807220340d1fa477d246095467cd0e99a75f
MD5 30366beaf5be91b45c8dfff264fa9da9
BLAKE2b-256 d347ef71cb4dbfdc1cf221b08c5a914bbd831bba319fb1514e18d37772eea735

See more details on using hashes here.

Provenance

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

Publisher: publish.yaml on acampove/ap_utilities

Attestations:

File details

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

File metadata

  • Download URL: ap_utilities-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 976c968cce293cc3cd418f563776047d9b41b1d810999780f517eeb605791a2d
MD5 9bb61a1705a27580cb3717cc72f1ea92
BLAKE2b-256 a6dd5b6c7ac67b5010e4a0f96b93faf3138496a3c184499001a1b4347c85e8a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ap_utilities-0.0.6-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