Project used to apply selection to ntuples used for RX measurements filtered and skimmed by post_ap project
Project description
$R_X$ selection
This project is meant to apply an offline selection to ntuples produced by post_ap and downloaded with rx_data. the selection is done with jobs sent to an HTCondor cluster.
Usage
For local tests one can use apply_selection as in:
apply_selection -d /home/acampove/Data/rx_samples/v1/post_ap -s data_24_magdown_24c2 -r q2 bdt -q central -t Hlt2RD_B0ToKpPimMuMu -p RK -i 0 -n 900
where:
usage: apply_selection [-h] -i IPART -n NPART -d IPATH -s SAMPLE -p PROJECT -q Q2BIN -t HLT2 [-c CUTVER] [-r REMOVE [REMOVE ...]]
Script used to apply selection and produce samples for Run 3
options:
-h, --help show this help message and exit
-i IPART, --ipart IPART
Part to process
-n NPART, --npart NPART
Total number of parts
-d IPATH, --ipath IPATH
Path to directory with subdirectories with samples
-s SAMPLE, --sample SAMPLE
Name of sample to process, e.g. data_24_magdown_24c2
-p PROJECT, --project PROJECT
Name of project, e.g RK, RKstr
-q Q2BIN, --q2bin Q2BIN
q2 bin, e.g. central
-t HLT2, --hlt2 HLT2 Name of HLT2 trigger, e.g. Hlt2RD_B0ToKpPimMuMu
-c CUTVER, --cutver CUTVER
Version of selection, by default, latest
-r REMOVE [REMOVE ...], --remove REMOVE [REMOVE ...]
List of cuts to remove from the full selection
In the cluster, one will need a dedicated directory for the log files, this is specified by exporting the variable $JOBDIR, i.e.:
export JOBDIR=/path/to/place/here/log/files/are
Different institutes will have different mechanisms to submit jobs (i.e. HTCondor, Slurm, Torque...). Thus, different submission scripts are needed and each institute will have to write the corresponding script.
To support more sites, one should:
- Write a
job_sel_xxxscript. - Add it to
pyproject.toml - Document its usage.
- Open a merge request.
For IHEP, in China, this script is job_sel_ihep and it's documented below.
For IHEP
Run:
job_sel_ihep -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_JpsiK_mm_eq_DPC -q central -t Hlt2RD_BuToKpMuMu_MVA -p RK -n 1000 -r q2-bdt
which will apply the selection by:
- Picking up the data found in
/publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap - Applying the selection on the sample
Bu_JpsiK_mm_eq_DPC - For the HLT2 trigger
Hlt2RD_BuToKpMuMu_MVA - For the project
RK - Using 1000 jobs
- Skipping the
q2andbdtcuts.
The options are:
Script used to setup mamba environment and run apply_selection script
-d: Path to directory containing directory samples
-s: Name of the sample (subdirectory) to run over
-r: String with dash separated cuts to remove, e.g. q2-bdt, optional
-q: q2 bin, e.g. central
-t: HLT2 trigger, e.g Hlt2RD_B0ToKpPimEE
-p: Project, e.g. RK
-n: Number of parts into which selection is split, e.g. 100
-T: Will run a test with the first job (default) or will submit all the jobs
-Q: Queue, e.g. test (5m), short (30m), mid (10h), by default short
by default, it will run a test job.
Job list
Given the large number of samples to process a utility was created to provide the list of commands, i.e. a list like:
job_sel_ihep -T 0 -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_Kee_eq_btosllball05_DPC -q central -t Hlt2RD_BuToKpEE_MVA -p RK -n 10 -r q2-bdt
job_sel_ihep -T 0 -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_Kee_eq_btosllball05_DPC -q central -t SpruceRD_BuToHpEE -p RK -n 10 -r q2-bdt
job_sel_ihep -T 0 -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_Kee_eq_btosllball_DPC -q central -t Hlt2RD_BuToKpEE_MVA -p RK -n 10 -r q2-bdt
job_sel_ihep -T 0 -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_Kee_eq_btosllball_DPC -q central -t SpruceRD_BuToHpEE -p RK -n 10 -r q2-bdt
job_sel_ihep -T 0 -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_Kmumu_eq_btosllball05_DPC -q central -t Hlt2RD_BuToKpMuMu_MVA -p RK -n 10 -r q2-bdt
job_sel_ihep -T 0 -d /publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap -s Bu_Kmumu_eq_btosllball05_DPC -q central -t SpruceRD_BuToHpMuMu -p RK -n 20 -r q2-bdt
Run the following:
make_jobs_list -v v1
which for the version v1 of the post_ap ntuples, will automatically:
- Find which samples exist and for which triggers
- Assign a number of jobs for each of these samples, based on the number of entries
Some samples, with too few entries, will be skipped altogether. This is expected to take time, given that, in order to calculate the number of events, each file needs to be opened.
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_selection-0.1.6.tar.gz.
File metadata
- Download URL: rx_selection-0.1.6.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def8ef85c01955150797cc2c7d95be4a0ccf121a30f9873fabea153c9d2aa72d
|
|
| MD5 |
60ce8e921a3eddd9a98d172410920a60
|
|
| BLAKE2b-256 |
964c9eecdb3208b5bff0aed0bd6fb6754bc4217456d54bb7283a019ac87fc543
|
Provenance
The following attestation bundles were made for rx_selection-0.1.6.tar.gz:
Publisher:
publish.yaml on acampove/rx_selection
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rx_selection-0.1.6.tar.gz -
Subject digest:
def8ef85c01955150797cc2c7d95be4a0ccf121a30f9873fabea153c9d2aa72d - Sigstore transparency entry: 165470372
- Sigstore integration time:
-
Permalink:
acampove/rx_selection@215aaef0d24912e6010eea5b995b5745d42a2ceb -
Branch / Tag:
refs/tags/0.1.6 - Owner: https://github.com/acampove
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@215aaef0d24912e6010eea5b995b5745d42a2ceb -
Trigger Event:
push
-
Statement type:
File details
Details for the file rx_selection-0.1.6-py3-none-any.whl.
File metadata
- Download URL: rx_selection-0.1.6-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02ea7e185eea0625e4d1549d7a5900dd64cc9c1af58340afa304fa5ea328fa6a
|
|
| MD5 |
837fd83fc50742774a636dc67c6fc756
|
|
| BLAKE2b-256 |
71c81f817e7b3d9d8ba8112f436b3271e46ba2256d466d5049613e1686485104
|
Provenance
The following attestation bundles were made for rx_selection-0.1.6-py3-none-any.whl:
Publisher:
publish.yaml on acampove/rx_selection
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rx_selection-0.1.6-py3-none-any.whl -
Subject digest:
02ea7e185eea0625e4d1549d7a5900dd64cc9c1af58340afa304fa5ea328fa6a - Sigstore transparency entry: 165470373
- Sigstore integration time:
-
Permalink:
acampove/rx_selection@215aaef0d24912e6010eea5b995b5745d42a2ceb -
Branch / Tag:
refs/tags/0.1.6 - Owner: https://github.com/acampove
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@215aaef0d24912e6010eea5b995b5745d42a2ceb -
Trigger Event:
push
-
Statement type: