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.7.1.tar.gz (152.1 kB view details)

Uploaded Source

Built Distribution

apd-0.7.1-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apd-0.7.1.tar.gz
Algorithm Hash digest
SHA256 70ac64096d81210ebb753eda2a517725e71116595cf6d90d262ada5c8b76c475
MD5 a86fcb32e736d1bbcd129c3d9e0a514f
BLAKE2b-256 e6112500c42cc041818817abe3c38696e41079c2f85168dad982b5f9dfeba5a4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for apd-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a7dbac9f51e8f0cd7f20a9fdab9129e96567bde92f7d7500e51072ae01e9d74
MD5 75052dc76f4c38acb31d33c2ab228a9f
BLAKE2b-256 0c0b7c1fc43556141202c1163e16f8f1465ff31d320afefb8e736ade3ec9cd7b

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