Skip to main content

ATLAS Flavour Tagging Tools

Project description

ATLAS FTAG Python Tools

This is a collection of Python tools for working with files produced with the FTAG ntuple dumper. The code is intended to be used a library for other projects. Please see the example notebook for usage.

Installation

To install the package you can install from pip using the release on pypi via

pip install atlas-ftag-tools

or you can clone the repository and install in editable mode with

python -m pip install -e .

To install optional development dependencies (for formatting and linting) you can instead install with either from pip

pip install atlas-ftag-tools[dev]

or from source

python -m pip install -e ".[dev]"

Create virtual file

This package contains a script to easily merge a set of H5 files. A virtual file is a fast and lightweight way to wrap a set of files. See the h5py documentation for more information on virtual datasets.

The script is vds.py and can be run after installing this package with

vds <pattern> <output path>

The <pattern> argument should be a quotes enclosed glob pattern, for example "dsid/path/*.h5"

Calculate WPs

This package contains a script to calculate tagger working points (WPs). The script is working_points.py and can be run after installing this package with

wps \
    --ttbar "path/to/ttbar/*.h5" \
    --tagger GN120220509 \
    --fx 0.1

Both the --tagger and --fx options accept a list if you want to get the WPs for multiple taggers.

If you want to use the ttbar WPs get the efficiencies and rejections for the zprime sample, you can add --zprime "path/to/zprime/*.h5" to the command. Note that a default selection of $p_T > 250 ~GeV$ to jets in the zprime sample.

By default the working points are printed to the terminal, but you can save the results to a YAML file with the --outfile option.

Use --help for more options and information.

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

atlas-ftag-tools-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

atlas_ftag_tools-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file atlas-ftag-tools-0.1.0.tar.gz.

File metadata

  • Download URL: atlas-ftag-tools-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for atlas-ftag-tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 201c2f903bad27c22441cb34f8b6c0ba0adafd727633dcd22d98934d5e47acf0
MD5 a62cd410dc5d545b99141d43292f6284
BLAKE2b-256 7cb62f983297d3b42967bf8f7ac081aeaebf2c6551afd8b57b8c971b1ff4de43

See more details on using hashes here.

File details

Details for the file atlas_ftag_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for atlas_ftag_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e40c00056211d5f97500dc5649ec52a4af5e2b4da269a23555701ebb3a64108c
MD5 934f86c329bc6fad02ec42d3bd4da7e3
BLAKE2b-256 a1f239a8d428dd462b6ff0a535c7593a18c60273e653cf7b90c715825d201c6b

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