Skip to main content

CLI for running LHCb applications from LHCbDIRAC

Project description

LbProdRun

LbProdRun provides a stable interface that can be used by LHCbDIRAC for configuring and launching LHCb's various software applications. In order to generate simulated data and reproduce legacy reprocessing it is necessary for LHCbDIRAC to be able to configure applications dating back to 2011. Previously this was handled by the ProdConf data package however changes to the Run 3 software stack caused ProdConf is not longer generic enough. Instead LbProdRun provides a CLI application (lb-prod-run) which is passed a single JSON file as it's argument. This file contains all of the required information to run an LHCb application and hides the details of configuring the application away from LHCbDIRAC.

Usage

$ lb-prod-run prodspec_DaVinci_00145918_00000004_1.json
# Check the configuration is valid and print the command that would be ran
$ lb-prod-run prodspec_DaVinci_00145918_00000004_1.json --dry-run --verbose

Version 1 schema

The most minimal configuration file that can be passed to version 1 of the schema is:

{"spec_version": 1,
 "application": {"name": "DaVinci", "version": "v45r8"},
 "options": {"files": ["$APPCONFIGOPTS/my-options-file.py"]},
 "output": {"prefix": "00145918_00000004_1", "types": ["d02hhll.strip.mdst"]}}

When parsing this is padded with the default values:

{"application": {"binary_tag": "best",
                 "data_pkgs": [],
                 "event_timeout": null,
                 "name": "DaVinci",
                 "number_of_processors": 1,
                 "version": "v45r8"},
 "db_tags": {"conddb_tag": null, "dddb_tag": null, "dq_tag": null},
 "input": {"files": null,
           "first_event_number": null,
           "n_of_events": -1,
           "run_number": null,
           "tck": null,
           "xml_file_catalog": null,
           "xml_summary_file": null},
 "options": {"files": ["$APPCONFIGOPTS/my-options-file.py"],
             "format": null,
             "gaudi_extra_options": null,
             "processing_pass": null},
 "output": {"histogram_file": null,
            "prefix": "00145918_00000004_1",
            "types": ["d02hhll.strip.mdst"]}}

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

lbprodrun-1.12.4.tar.gz (853.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lbprodrun-1.12.4-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file lbprodrun-1.12.4.tar.gz.

File metadata

  • Download URL: lbprodrun-1.12.4.tar.gz
  • Upload date:
  • Size: 853.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for lbprodrun-1.12.4.tar.gz
Algorithm Hash digest
SHA256 97abd601868ee4121febf8f6e822b565d543da9c72deb81d8788a790f37d5f03
MD5 fe7dfb046a75285a6dbb1285275150ca
BLAKE2b-256 d27d6cecf2a047ccd2b9a0fb35e87fd0e1ca8254aff8fdb799efd3b60acefd46

See more details on using hashes here.

File details

Details for the file lbprodrun-1.12.4-py3-none-any.whl.

File metadata

  • Download URL: lbprodrun-1.12.4-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for lbprodrun-1.12.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a408f00f31d124dd3c262db7d3aaa4cd022ec9c649b91b792c6be64b7b4c21
MD5 b47a3a00fbe440bdab7bf75535032367
BLAKE2b-256 0264c86924898062e8217ed914a29458cfde9e4a9b80e4d4cbcca141983ba339

See more details on using hashes here.

Supported by

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