Project with lists of LFNs and utilities needed to download filteres ntuples
Project description
$R_X$ data
This repository contains:
- Versioned lists of LFNs
- Utilities to download them and link them into a tree structure
for all the $R_X$ like analyses.
Installation
To install this project run:
pip install rx_data
# The line below will upgrade it, in case new samples are available, the list of LFNs is part of the
# project itself
pip install --upgrade rx_data
The download would require a grid proxy, which can be made with:
. /cvmfs/lhcb.cern.ch/lib/LbEnv
# This will create a 100 hours long proxy
lhcb-proxy-init -v 100:00
Listing available triggers
In order to see what triggers are present in the current version of the ntuples do:
list_triggers -v v1
# And this will save them to a yaml file
list_triggers -v v1 -o triggers.yaml
Downloading the ntuples
For this, run:
download_rx_data -m 5 -p /path/to/downloaded/.data -v v1 -d -t triggers.yaml
which will use 5 threads to download the ntuples associated to the triggers in triggers.yaml
and version v1 to the specified path.
IMPORTANT:
- In order to prevent deleting the data, save it in a hiden folder, e.g. one starting with a period. Above it is
.data. - This path is optional, one can export
DOWNLOAD_NTUPPATHand the path will be picked up
Potential problems: The download happens through XROOTD, which will try to pick a kerberos token. If authentication problems happen, do:
which kinit
and make sure that your kinit does not come from a virtual environment but it is the one in the LHCb stack or the native one.
Building directory structure
All the ntuples will be downloaded in a single directory. In order to group them by sample and trigger run:
make_tree_structure -i /path/to/downloaded/.data/v1 -o /path/to/directory/structure
this will not make a copy of the ntuples, it will only create symbolic links to them.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rx_data-0.1.2.tar.gz.
File metadata
- Download URL: rx_data-0.1.2.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f54c41eda07caf2642368f8a4a1a3d03c1d7c9b73450f63ffd0b4d4c09f1f4
|
|
| MD5 |
0cbbc9ccfcec22028b4dda7da54b66e6
|
|
| BLAKE2b-256 |
50a5553405834cb91e9d71496b73ce288d69aaf016a593fdbbd8b2517413de10
|
Provenance
The following attestation bundles were made for rx_data-0.1.2.tar.gz:
Publisher:
publish.yaml on acampove/rx_data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rx_data-0.1.2.tar.gz -
Subject digest:
43f54c41eda07caf2642368f8a4a1a3d03c1d7c9b73450f63ffd0b4d4c09f1f4 - Sigstore transparency entry: 163583458
- Sigstore integration time:
-
Permalink:
acampove/rx_data@8f7b6cd8b4720d08ce106f902f2cf3a7fc328e9b -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/acampove
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@8f7b6cd8b4720d08ce106f902f2cf3a7fc328e9b -
Trigger Event:
push
-
Statement type:
File details
Details for the file rx_data-0.1.2-py3-none-any.whl.
File metadata
- Download URL: rx_data-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f44f138b0eb6d7e01adaff02931b267056f4124a0fbe812c8034b82c0eebb1a
|
|
| MD5 |
1cde891376c348b660517da976ed953a
|
|
| BLAKE2b-256 |
92d3b321b62046e1c1e6948aeb2e1f7e1fbdf6912b549c9db107cea84c4b58e5
|
Provenance
The following attestation bundles were made for rx_data-0.1.2-py3-none-any.whl:
Publisher:
publish.yaml on acampove/rx_data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rx_data-0.1.2-py3-none-any.whl -
Subject digest:
6f44f138b0eb6d7e01adaff02931b267056f4124a0fbe812c8034b82c0eebb1a - Sigstore transparency entry: 163583459
- Sigstore integration time:
-
Permalink:
acampove/rx_data@8f7b6cd8b4720d08ce106f902f2cf3a7fc328e9b -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/acampove
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@8f7b6cd8b4720d08ce106f902f2cf3a7fc328e9b -
Trigger Event:
push
-
Statement type: