Skip to main content

Functional Analysis Description Language for accessing ATLAS xAOD files.

Project description

func_adl_xAOD

Client interface to send a hierarchical SQL-like query to an xAOD backend

GitHub Actions Status Code Coverage

PyPI version Supported Python versions

Introduction

This allows you to query hierarchical data stored in a root file that has been written using the ATLAS xAOD format. This code allows you to query that.

Features

xAOD Functions

You can call the functions that are supported by the C++ objects as long as the required arguments are primitive types.

The Event

The event object has the following special functions to access collections:

  • Jets, Tracks, EventInfo, TruthParticles, Electrons, Muons, and MissingET. Each function takes a single argument, the name of the bank in the xAOD. For example, for the electrons one can pass "Electrons".

The Jet Object

Template functions don't make sense yet in python.

  • getAttribute - this function is templated, so must be called as either getAttributeFloat or getAttributeVectorFloat.

Math

  • Math Operators: +, -, *, /, %
  • Comparison Operators: <, <=, >, >=, ==, !=
  • Unary Operators: +, -, not
  • Math functions are pulled from the C++ cmath library: sin, cos, tan, acos, asin, atan, atan2, sinh, cosh, tanh, asinh, acosh, atanh, exp, ldexp, log, ln, log10, exp2, expm1, ilogb, log1p, log2, scalbn, scalbln, pow, sqrt, cbrt, hypot, erf, erfc, tgamma, lgamma, ceil, floor, fmod, trunc, round, rint, nearbyint, remainder, remquo, copysign, nan, nextafter, nexttoward, fdim, fmax, fmin, fabs, abs, fma.
  • Do not use math.sin in a call. However sin is just fine. If you do, you'll get an exception during resolution that it doesn't know how to translate math.
  • for things like sum, min, max, etc., use the Sum, Min, Max LINQ predicates.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

func_adl_xAOD-1.1.0b5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

func_adl_xAOD-1.1.0b5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file func_adl_xAOD-1.1.0b5.tar.gz.

File metadata

  • Download URL: func_adl_xAOD-1.1.0b5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for func_adl_xAOD-1.1.0b5.tar.gz
Algorithm Hash digest
SHA256 a73c81b23fffb2af20213b557e02c4b11e3c8b9b4c6b40fb3ec53c5b516c82c2
MD5 8b99a532420a13c7438aa7292340c7f3
BLAKE2b-256 5c4d1acde761be366b69be669965fdb970d986930256f62375dedcc49e6c6130

See more details on using hashes here.

File details

Details for the file func_adl_xAOD-1.1.0b5-py3-none-any.whl.

File metadata

  • Download URL: func_adl_xAOD-1.1.0b5-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for func_adl_xAOD-1.1.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 ffcd2bad8c3a6f7b9d6972f6dd6dce461c4d3e549191aa79255a5d2d9974b0a8
MD5 809067069d05713967f804f81d08b07a
BLAKE2b-256 59240c1c451b9fbb3e6f19c36fb307f481e8c7c26345184066da9d4c171e3f1d

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