Skip to main content

Tool to access the Analysis production Data

Project description

Analysis Production Data

LHCb software PyPI version Conda-forge version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apd-0.8.0.tar.gz (153.7 kB view details)

Uploaded Source

Built Distribution

apd-0.8.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file apd-0.8.0.tar.gz.

File metadata

  • Download URL: apd-0.8.0.tar.gz
  • Upload date:
  • Size: 153.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for apd-0.8.0.tar.gz
Algorithm Hash digest
SHA256 1eb641f46e2f1a5420a94114520f10ccceba5e3f3c1c6f7f587b1c4f044d2ef8
MD5 a7e234a5bb67a6c35b4f0c4f52592378
BLAKE2b-256 545f39c042d748c2a5c5ff79e9d8fc0e6bcf80fa28ca7f22d0a99eb56f1f17bb

See more details on using hashes here.

File details

Details for the file apd-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: apd-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for apd-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c241a976228bd0112ebe4bdd553b6b7a2b4045cdc87fa95afe03874fdb14a6a
MD5 249b0ca5b94a27970e968455657ee5b4
BLAKE2b-256 b08437af4929f7e07cf75e02e729623e1c1187b7dc559b2596b947abbb7bdcc3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page