wired 4 an extensible generic event display mark donszelmann slac, stanford, u.s.a. chep2004, 27...

23
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.

Upload: moses-thompson

Post on 05-Jan-2016

221 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

WIRED 4An extensible generic Event Display

Mark DonszelmannSLAC, Stanford, U.S.A.

CHEP2004, 27 september – 1 octoberInterlaken, Switzerland.

Page 2: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 2

WIRED 4 Why version 4 ?

Rewrite from scratch Ideas from WIRED 2 and WIRED 3 More maintainable

Features Framework for Event Display Implemented as JAS 3 plugin based on FreeHEP HepRep 2 standard graphics format Experiment & Data format independent

Easily customizable for your experiment Portable: Windows, MacOsX, Linux … (pure Java) User extensibility

Page 3: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 3

WIRED 4 Event Display Features

Access to HepRep (1 and 2) data Projections Undoable Edits (Actions) Direct and Indirect Interactivity Animated Feedback on User’s actions Enhanced (filtered) picking mode Physics attributes associated with display Detector and Event visibility selection High Quality Vector Graphics Output

Page 4: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 4

JAS 3 and the WIRED 4 plugin

Easy to install and upgrade

Uses standard interface and facilities of JAS 3

Page 5: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 5

WIRED 4 uses HepRep 2

Data representation for Event Displays HepRep 1

consists of information such as tracks and hits adds representations: lines, cylinders, … adds attributes: drawing properties, physics info… XML, CORBA, RMI, etc

Added in HepRep 2 data is typed using a hierarchical types geometry and event data can be separated to persist

geometry while scanning events

Page 6: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 6

WIRED 4 Data Access

HepRep 2 XML Supported marginally in WIRED 3

HepRep 1 to HepRep 2 converter WIRED 4 can read HepRep 1 data

CORBA HepRep Client WIRED 4 can access CORBA servers using a

HepEventServer interface

Page 7: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 7

Data Compatibility BaBar

HepRep 1 XML and HepRep 1 CORBA

GLAST HepRep 2 XML and HepRep 2 CORBA

LCIO LCIO to HepRep 2 Plugin

Geant4 HepRep 1 XML and HepRep 2 XML

Any Experiment Can create HepRep2 XML files Write custom data format plugin (see later talk in this session)

Page 8: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 8

Projections Parallel

Scale, Rotation and Translation Cylindrical Fish-Eye

Enlarges the center region, while compressing outer regions

-Z Cuts detector along Z-Axis and folds up upper and lower

half, displaying the result as two halves Variable

Calculates projection based on a set of parameters Composite

Combination of any of the projections

Can easily be extended and combined by the user

Page 9: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 9

Parallel Projection

Page 10: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 10

Fish Eye Projection

Page 11: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 11

-Z Projection

Page 12: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 12

Graphics Engine Simple and composite projections

Normal (Parallel) as well as Special (Fish-Eye) Layered model

Hits on top of Tracks, on top of Geometry

Used also, without final on-screen drawing: to find bounding box to find nearest object to cursor to find objects within a shape

No more intermediate storage straight from HepRep2 data.

Fast and Smart iterator with filter for Picking

Page 13: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 13

Interactivity

Using overlaid panels Mouse Handling Animation

And control panels Further Selection Feedback info (Picking) Setting of Variables

Page 14: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 14

Scaling, Rotation and Translation

Page 15: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 15

Picking single items

Objects

Attributes

Page 16: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 16

Picking multiple items

Objects

Attributes

Page 17: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 17

Picking Implementation Picking uses graphics engine “redraw” to mark

objects which are: nearest to cursor within a shape

A filter can be applied to the “redraw” to only pick from: specified layers specified object types

A real “redraw” will then “highlight” the picked objects and show them in a table

User addition of filters is possible

Page 18: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 18

Tree Selection

Page 19: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 19

Output Copy (and Paste)

Vector Graphics on Windows in EMF, on Mac in PDF

BitMap on Linux in PNG or GIF

and paste into Office Products (PowerPoint)

Save as… HepRep 2 XML

to read back later… Vector Graphics Formats

PostScript, PDF, EMF, SVG, SWF and CGM

BitMap Formats GIF, PNG, JPEG, BMP, …

Page 20: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 20

Extending WIRED 4 By implementing services:

Edit (undoable actions) Projection Representation InteractionHandler Plot GraphicsEngine ExportFormat

By writing scripts: Java, Python, Pnuts, …

Page 21: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 21

Plans

Scripting Filters / Cuts Labels Scales

Page 22: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 22

Status and Conclusions

WIRED 4.0 Beta 1 is out Feedback wanted

Rewrite made it extensible Use of JAS 3 as a Framework made it quite a

bit smaller (and maintainable)

Still a number of improvements to be made

WIRED 4.0 final release expected end of Oct.

Page 23: WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland

30 September 2004 Mark Donszelmann, CHEP 2004, Interlaken, Switzerland 23

References

WIRED 4 – http://wired4.freehep.org JAS 3 – http://jas.freehep.org/jas3 HepRep – http://heprep.freehep.org

Forum – http://forum.freehep.org Bug Tracking – http://bugs.freehep.org