Skip to main content

Tool to access the Analysis production Data

Project description

Analysis Production Data

EXPERIMENTAL prototype of Python module to fulfill DPA’s grand task https://gitlab.cern.ch/lhcb-dpa/project/-/issues/134.

Usage

The apd 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.6.0.tar.gz (151.0 kB view details)

Uploaded Source

Built Distribution

apd-0.6.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apd-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3624125a188b62e68f0ecaabbdd38ef63ac58ca9f6f05c2f51df90cd19c2e2ac
MD5 ab15750d31d7c238d2d60e29f7e60814
BLAKE2b-256 7e3a2b64a3f7355fbe145cefef1391e81894f1dec5c08d81e74307cc00b6b59b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for apd-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25247b617604211b785befbbabf011bfa763aaad608f821abca992e402571cb8
MD5 cd42d60740b339ba6547f30b5276399e
BLAKE2b-256 8048c00b77db4720e75a13733aa512d91b4bbd3b1b98e795c5072addebff671f

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