Skip to main content

OneTrack

A simple library for evaluation of particle track reconstruction.

Alpha Version!

This library is in a very early stage of development. It is only for testing with a narrow set of Pytorch Geometric data types. It is not recommended for production use.

Install

conda create --name onetrack python=3.9
pip install onetrack

Example Usage

from onetrack import TrackingData 
from onetrack.file_utils import list_files
  1. Load in files
file_list = list_files(os.path.join(config["graph_input_dir"], "train"))[:100]
  1. Create a TrackingData object
tracking_data = TrackingData(file_list)

Currently, the only supported file configuration is as follows:

a) file_list contains a list of pickled Pytorch Geometric Data objects

b) Each Data object contains:

  • a list of edges in edge_index,
  • a list of edge scores,
  • a list of hit IDs hid that can be used to map the nodes used in edge_index back to the original hits in the event
  • a string event_file that can be used to load the original event files
  • at least a truth tensor called y, and possibly more truth tensors with the format y_{truth definition}

c) The event files are assumed to be of the format:

  • {event_file}-particles.csv and {event_file}-truth.csv
  • The -particles file should contain at least particle_id and pt columns
  • The -truth file should contain at least particle_id and hit_id columns

Better compatibility is coming ASAP!

  1. Run a sanity check by building track candidates with the truth
tracking_data.build_candidates(building_method="CC", sanity_check=True)
  1. Evaluate this sanity check
tracking_data.evaluate_candidates(evaluation_method="matching")
tracking_data.plot_evaluation()

If all has worked, we should get very good efficiency and fake rates. We can then play around with candidate building (with sanity_check=False), and evaluating with different matching configurations:

matching_config = {
    "min_hits_truth": 9,
    "min_hits_reco": 5,
    "frac_reco_matched": 0.5,
    "frac_truth_matched": 0.5,
}
tracking_data.evaluate_candidates(evaluation_method="matching", **matching_config)

Metadata

Release files for onetrack 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onetrack 0.0.2
File Size Uploaded Provenance Actions
onetrack-0.0.2.tar.gz 12.0 kB Without provenance Details for onetrack-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for onetrack 0.0.2
File Interpreter ABI Platform Actions
onetrack-0.0.2-py3-none-any.whl Python 3 none any Details for onetrack-0.0.2-py3-none-any.whl

Total release size: 23.9 kB

Release files / onetrack-0.0.2.tar.gz

Download URL onetrack-0.0.2.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a25567bbdbefa4694cca548a1dedf310b1caf36c7aa0f91fb865b839f3e1d80
BLAKE2b-256 checksum
How to use checksums
e61e8ceec0a6ad8d729f90aabec66612139558dea5f138a96d46e9e9704ccd7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.5

Release files / onetrack-0.0.2-py3-none-any.whl

Download URL onetrack-0.0.2-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8823449a966f269010263674c3a95be39b4b0037d32ecaf024e6471abb4bb380
BLAKE2b-256 checksum
How to use checksums
663c43fa2769360902b8eec9a8666cb2f885c5cebde87786894faeb3352867a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.5

Security for onetrack 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page