Skip to main content

A simple python event display for CMS nanoaod

Project description

Binder

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()

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.1.tar.gz (14.1 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.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ispynanoaod-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 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.1.tar.gz
Algorithm Hash digest
SHA256 1ff4a23aac38cca035e12978b7c6e0241e35c0534e8cce51ca1cee928ec3a777
MD5 34d2a8fc3f7150d0921b5cd529335090
BLAKE2b-256 6a0937b84a0014ce63382fa90a9400ef95918a665857e8aee9cf2e304b661ce2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ispynanoaod-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c003c06b639475cd72cf0373af0405fa6275e11db5a5253b5a31376e0c5ecf4
MD5 7cb8df5d34710a0b268756fb4dc58046
BLAKE2b-256 853f861303448047a91542628ddda88d0257020f236bdb0b80d7b5609213494f

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