Skip to main content

Binder Open In Colab DOI

iSpy NanoAOD: An event display for the CMS NanoAOD format

This application allows one to visualize events in the CMS NanoAOD format in a Jupyter notebook.

Installation

pip install ispynanoaod

Installation for developers:

Clone this repository:

git clone https://github.com/cms-outreach/ispy-nanoaod.git

Install locally:

cd ispy-nanoaod
pip install -e .

Usage

See the example notebooks in the examples dir. You may also open and run them using the link to Binder or Colab above.

Quick start

Open a notebook using for example jupyter lab.

Import the libraries:

import os
import subprocess
import ispynanoaod as ispy

Download some data:

file_name = 'EEB2FE3F-7CF3-BF4A-9F70-3F89FACE698E.root'
file_url = 'http://opendata.cern.ch/eos/opendata/cms/Run2016H/DoubleMuon/NANOAOD/UL2016_MiniAODv2_NanoAODv9-v1/2510000/EEB2FE3F-7CF3-BF4A-9F70-3F89FACE698E.root'

if not (os.path.isfile(f'{file_name}')):
    subprocess.run(['curl', '-O', f'{file_url}'])

Visualize:

display = ispy.EventDisplay()
display.load_file(file_name)
display.display()

image

Metadata

Release files for ispynanoaod 0.1.3

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

Source distribution (sdist)

Source distribution for ispynanoaod 0.1.3
File Size Uploaded
ispynanoaod-0.1.3.tar.gz 16.4 kB Details

Built distribution (wheel)

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

Total release size: 35.0 kB

Release files / ispynanoaod-0.1.3.tar.gz

Download URL ispynanoaod-0.1.3.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e104f73976a389bb0b53e4fe030539fcc3b9169d306fdcf6237c154fe3a1441c
BLAKE2b-256 checksum
How to use checksums
7f4ac2b9facf91072e0a746217c6fbdc30ed9256d44cab1a499be1eb0ec2aeef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / ispynanoaod-0.1.3-py3-none-any.whl

Download URL ispynanoaod-0.1.3-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06c2f05ba752e0ba22af7effd68d63576e38488c10e2ad34cf34e750d5699e60
BLAKE2b-256 checksum
How to use checksums
dd56cf683c7fd5f959f86de787706976103b400df477c4e92f5a051d4217093c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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