This lesson is being piloted (Beta version)

iSpy Event Viewer

Overview

Teaching: min
Exercises: min
Questions
Objectives

The iSpy event display platform is used widely for CMS outreach and Open Data. It does not read MiniAOD (or any data tier) files directly, but converts them first into “.ig” files using an EDAnalyzer. This event display tool has stronger 3D capabilities (including 3D model exports) and more web-friendly aesthetics, but gives the user less control over the physics displayed than Fireworks.

Accessing iSpy

There are several instances of the iSpy viewer for different purposes. Some capabilities differ between the sites, but the main difference is which data files are pre-loaded for viewing.

Using the iSpy controls

The iSpy viewer has a panel of menu buttons across the top of the page, and a panel of Detector/Physics viewing options down the right-hand-side of the page. As you hover over each menu button a description will pop up.

In the Detector and Physics panel you can click on any element to open or close the drop-down menu. For each individual item you can control:

Calculating invariant mass

For educational purposes, mis a keyboard shortcut to display the invariant mass a selected object or pair of objects.

For example, in the Developer iSpy version, open the DoubleElectron_Run2012C_0.ig file and navigate to the 6th event (Events/Run_202016/Event_616963273). This is a nice Z boson candidate, decaying to 2 electrons.

To improve visibility of the electrons, open the controls for Tracks and click off the "Show" button. The two remaining tracks point directly to the ECAL hits and represent the electrons. Hover over one electron track and click when it turns grey. Hover over the other electron track and click when it turns grey. You should see both tracks turn grey. Strike the m key and the invariant mass will appear!

Producing an iSpy input file

Any CMS event can be processed to produce an iSpy input file.

  1. If you are working in NanoAOD, use the dasgoclient tools to find a RECO, AOD, or MiniAOD file the contains the event(s) you wish to study.
  2. Follow the instructions on the iSpy Analyzers Github to create a .ig file containing your events. *Read the entire README first* to understand how the EDAnalyzer functions and which cmsRun configuration file is best for your use case.
  3. Download the .ig file to your local computer and upload it into iSpy using the File menu.

3D and VR extras

3D file export and view

If you have a scene prepared in the display and want to export it to a 3D file press Shift+E. This will export the scene to a glTF (GL Transmission Format) binary file (with a .glb extension). You can view this file by dragging and dropping it to for example, this viewer https://cms3d.web.cern.ch/gltf-test.

VR test

This works best on a mobile device with a viewer but if you don't have a viewer you can get the idea by opening https://ispy-dev.web.cern.ch, on your phone, wait for it to load, and load an event. Then press the button that looks like a viewer. At the bottom of the scene (you may have to scroll down) you will see a “ENTER VR” button. Press it and you will see the stereo view. The direction of travel of the camera follows your gaze so that if you look at the event it will appear to be moving closer towards you.

Key Points