Tool to access the Analysis production Data
Project description
Analysis Production Data
Programmatic interface to the LHCb experiment Analysis Productions database, which allows retrieving information about the samples produced. It queries a REST endpoint provided by the web application, and caches the data locally.
Usage
The apd Python package is available in the lb-conda default environment.
From Python
The Python module allows interacting from analysis scripts, doing e.g.
In [8]: import apd
In [9]: datasets = apd.get_analysis_data("SL", "RDs")
In [10]: datasets(datatype="2012", polarity="magdown")
Out[10]:
['root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000002_1.bsntuple_mc.root',
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000005_1.bsntuple_mc.root',
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000003_1.bsntuple_mc.root',
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000001_1.bsntuple_mc.root',
'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000004_1.bsntuple_mc.root']
In [11]:
Command line
$ apd-list-pfns SL RDs --datatype=2011 --datatype=2016 --polarity=magdown root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000002_1.bsntuple_mc.root' root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000005_1.bsntuple_mc.root' root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000003_1.bsntuple_mc.root' root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000001_1.bsntuple_mc.root' root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/BSNTUPLE_MC.ROOT/00110970/0000/00110970_00000004_1.bsntuple_mc.root'
The apd-cache command allows caching the Analysis metadata to a specific location.
Design
Analysis Production information endpoint
This module allows downloading and using Analysis Productions information from the endpoint https://lbap.app.cern.ch/
Details about the endpoint can be found at https://lbap.app.cern.ch/docs#/stable.
Further information
See:
https://lhcb-ap.docs.cern.ch/user_guide/accessing_output.html
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 apd-0.9.0.tar.gz.
File metadata
- Download URL: apd-0.9.0.tar.gz
- Upload date:
- Size: 153.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9a414827f5306a13239f969e9da9cb2baa80046b1d26b05fe523f63e3335843
|
|
| MD5 |
252471270d19d7045a1907eaa90f52bf
|
|
| BLAKE2b-256 |
905cd7f90596fc0075ea4e466bf7897805d19c190b56d9e5ec0be2e3e9bc905d
|
File details
Details for the file apd-0.9.0-py3-none-any.whl.
File metadata
- Download URL: apd-0.9.0-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7202a48861429005848142830a3ef53df0e33384afb064fd962119f452af04a
|
|
| MD5 |
0baaced2da49704554e87462bff909b3
|
|
| BLAKE2b-256 |
a5dd178f05b75e63337ccb02793bf2e15073201ea48abb21fb8c05a35b102712
|