Skip to main content

A simple python event display for CMS nanoaod

Project description

Binder 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 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

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

ispynanoaod-0.1.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

ispynanoaod-0.1.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file ispynanoaod-0.1.2.tar.gz.

File metadata

  • Download URL: ispynanoaod-0.1.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ispynanoaod-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7339f9f686080483495ba83c4856e7e0535c7ce58211084778e16543927fd246
MD5 3f4c03e867048047550f90917e353306
BLAKE2b-256 4ed7f26c9fec10c75d781b83a38ca56296e6f82c0b359a55fdc2533729fefb02

See more details on using hashes here.

File details

Details for the file ispynanoaod-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ispynanoaod-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ispynanoaod-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b60401dc5b42f647bdc012c793efc7d1d0f5d8912c4ea970ea225601c414557
MD5 53248f4fd3212f3955d119ddec6e860b
BLAKE2b-256 639e0f0d13eb79f56294581cf5bc854b5ff89ad2754c92ffc10c966da190c259

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