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
Release files for apd 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apd-0.9.0.tar.gz | 153.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apd-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 191.0 kB
Release files / apd-0.9.0.tar.gz
| Download URL | apd-0.9.0.tar.gz |
|---|---|
| Size | 153.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9a414827f5306a13239f969e9da9cb2baa80046b1d26b05fe523f63e3335843
|
|
BLAKE2b-256 checksum How to use checksums |
905cd7f90596fc0075ea4e466bf7897805d19c190b56d9e5ec0be2e3e9bc905d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / apd-0.9.0-py3-none-any.whl
| Download URL | apd-0.9.0-py3-none-any.whl |
|---|---|
| Size | 37.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7202a48861429005848142830a3ef53df0e33384afb064fd962119f452af04a
|
|
BLAKE2b-256 checksum How to use checksums |
a5dd178f05b75e63337ccb02793bf2e15073201ea48abb21fb8c05a35b102712
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|