
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Project used to apply selection to ntuples used for RX measurements filtered and skimmed by post_ap project
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.
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:
job_sel_xxx
script.pyproject.toml
For IHEP, in China, this script is job_sel_ihep
and it's documented below.
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:
/publicfs/ucas/user/campoverde/Data/RX_run3/v1/post_ap
Bu_JpsiK_mm_eq_DPC
Hlt2RD_BuToKpMuMu_MVA
RK
q2
and bdt
cuts.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.
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:
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.
FAQs
Project used to apply selection to ntuples used for RX measurements filtered and skimmed by post_ap project
We found that rx-selection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.