Skip to main content

A package to compare cutflow histograms from ROOT files.

Project description

cutflow_compare

Overview

cutflow_compare is a Python package designed to compare cutflow histograms from ROOT files. It provides a straightforward command-line interface for users to analyze and visualize differences in cutflow data across different regions.

Features

  • Compare cutflow histograms from multiple ROOT files.
  • Generate a CSV report of the comparison results.
  • Easy to use with command-line arguments for file input and region selection.

Installation

You can install the package using pip:

pip install cutflow_compare

Usage

After installation, you can use the command-line tool directly:

cutflow_compare --files histoOut-compared.root histoOut-reference.root -r region1 region2 region3

Or, if running from source:

python cutflow_compare.py --files histoOut-compared.root histoOut-reference.root -r region1 region2 region3

Note:

Make sure the same regions are present in both files with the same name.

Arguments

  • --files: List of input ROOT files to compare.
  • --regions: List of regions to compare within the cutflow histograms.

Example

cutflow_compare --files histoOut-compared.root histoOut-reference.root -r WZ

This command will compare the specified regions in the two provided ROOT files and output the results to cutflow_comparison_result.csv.

Requirements

  • Python 3.6+
  • ROOT (must be installed separately, e.g., via conda: conda install -c conda-forge root)
  • pandas

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.

Acknowledgments

This package utilizes the ROOT framework for data analysis and visualization.

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

cutflow_compare-0.1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

cutflow_compare-0.1.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file cutflow_compare-0.1.4.tar.gz.

File metadata

  • Download URL: cutflow_compare-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for cutflow_compare-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3261d1a1874aad9b2b441df6efb6d00c23089bc88a625e489c1d0cf708c8fbb6
MD5 3966aa4cff439b9bbc18334246bf88f8
BLAKE2b-256 5d63cbad14d8beb2ab7c5bf39e32d613c201366b01c343ef2a598619215346e3

See more details on using hashes here.

File details

Details for the file cutflow_compare-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cutflow_compare-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9837218a0794668b8267ad5019a1139a4d99ffcf78463c6e15e8e42c2817d5c2
MD5 3642d1e55b16b7b54e2bb71f4ea4f2be
BLAKE2b-256 185327555c154e5d0bed87060dbf7c309f312839662affb188d07964b3d1535f

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