The PERSINT Visualization Program for the ATLAS Experiment

Download Report

Transcript The PERSINT Visualization Program for the ATLAS Experiment

The PERSINT
Visualization Program
for the
ATLAS Experiment
D. Pomarède
CEA/DSM/DAPNIA/SEDI
CHEP-03 UCSD La Jolla
24/03/2003
1
OUTLINE
• INTRODUCTION
• DESIGN
• GENERAL PRESENTATION
• APPLICATIONS
– VISUALIZATION OF GEOMETRY
– EVENT DISPLAY
• PROSPECTS
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
2
INTRODUCTION
• PERSINT (PERSpectively INTeracting) is designed for the three-
dimensional representation of objects and for the interfacing to a
variety of applications, in a fully interactive way.
• It has the following features :
– 3D representation of objects in full volumes or wire frames
– Computation of hidden faces
– Spatial navigation with real-time displacements
– Focal length adjustable at will (from isometry to wide-angle)
– Interfaces and access to applications
– Maximum interactivity
– Documentation
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
3
INTRODUCTION
• PERSINT was originally developed as a tool for debugging and optimizing the ATLAS Muon pattern recognition
and track reconstruction algorithm (MUONBOX)
• PERSINT is now used routinely for :
– Visualization of detector geometries :
• AMDB (ATLAS Muon DB)
• AGDD-XML (ATLAS Generic Detect. Description)
– Event Display (hits & reconstruction objects)
• Complex Monte Carlo Events
• ONLINE EVD in TestBeams
– Other :
• Magnetic field, Level-1 Trigger Logic (Muon), …
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
4
DESIGN
• Core in F90
– Usage of Modules, with procedure interfaces
– Polymorphism
– Recursive functions
– Dynamic arrays
– Allocate (local memory management)
– Pointers
– String operations
– Array manipulations
– Free source forms
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
5
DESIGN
• GRAPHICS Interface : HIGZ
• In general, use of CERNLIBS
• 26000 lines of code
• Part of the Saclay Muon Software suite, and as such
interfaced directly to :
– AMDBSIMREC (geometry database)
– BFIELDDTB (magnetic field database)
– MUONBOX (track reconstruction)
D. Pomarède, CEA/DAPNIA/SEDI
13000 lines
3500 lines
58000 lines
CHEP 24/03/2003
6
DESIGN
• Highly modular, organized in patches
– e.g. XML section
• Computation of volumes, hidden faces
– based on analytical computation of facets’ edges
– Highlight intersections, detect clashes
– Boolean operations
• Lighting intensity effects on volume facets
• Designed to operate in standalone mode, keeping the
possibility of integration in frameworks
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
7
PRESENTATION OF THE PROGRAM
• General layout
• Navigation
• Perspective
• Event Display of complex Monte Carlo events
• Online Event Display
• Interface to AGDD-XML
• Interface to Level-1 Trigger
• Interface to Magnetic Field
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
8
GENERAL LAYOUT
DISPLAY
WINDOW
NAVIGATOR
COMMAND WINDOW
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
9
THE NAVIGATOR
SWITCH WIRE/FULL
VOLUMES
LEFT CLICK :
DEFINE MOVEMENTS
INVOKE INTERFACES
TO APPLICATIONS
MIDDLE-CLICK :
GET ONLINE HELP
INVOKE INTERFACES
AMDB
AGDD-XML
EVD
DISPLACE VIEWER/
VIEWED POINTS
FOCAL LENGTH
PROJECTIVE VIEWS
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
10
NAVIGATION
• Two options :
– use the navigator (step-by-step movements)
– real-time continuous displacements
Drag cursor :
Left button
pressed down
for rotation
Middle button
pressed down for
forward/backward
displacements
move up
move
left
move
right
move down
D. Pomarède, CEA/DAPNIA/SEDI
move
in
move
out
CHEP 24/03/2003
11
FOCAL LENGTH
• Normal view : 35 mm
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
12
FOCAL LENGTH
• Infinite F.L. (isometric view)
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
13
FOCAL LENGTH
• Wide angle (few mm F.L.)
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
14
FOCAL LENGTH
• Projections
X-view
Z-view
Also available : f-view, Y-view, real-time lateral displacements
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
15
EVENT DISPLAY OF MONTE CARLO DATA
• Example of event from ATLAS Data Challenge 1, single-muon with high lumi pile-up,
safety factor 5 on cavern component. Interactive track reconstruction (MUONBOX).
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
16
EVENT DISPLAY OF MONTE CARLO DATA
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
17
EVENT DISPLAY OF MONTE CARLO DATA
• Example of event from ATLAS Data Challenge 1, single-muon with high lumi pile-up,
safety factor 5 on cavern component. Interactive track reconstruction (MUONBOX).
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
18
EVENT DISPLAY OF MONTE CARLO DATA
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
19
ONLINE EVENT DISPLAY
• H8-2002 Muon Testbeam : 6 Barrel chambers + 5 Endcap chambers
• Implementation in the online software using the Monitoring Factory
• Proved useful in commissioning of detectors and understanding of events
PERSINT reads the
Event at the SFI level…
…and
displays it
PC ROS 1
PC
FEth
FEth
PC
ROS 2
GEth
FEth
Swi
tch
GEth SFI SFO
GEth
D. Pomarède, CEA/DAPNIA/SEDI
GEth
CHEP 24/03/2003
20
INTERFACE TO AGDD-XML
• Example : description of dead matter (used by MUONBOX for M.S.,…)
• Display of event hits : generic usage (Inner Trackers, Calorimeters, …)
• Supports all Boolean operations
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
21
BOOLEAN VOLUME OPERATIONS
• PERSINT supports
boolean volume operations
• Three basic operations:
– Addition
– Subtraction
– Intersection
• This allows the creation
of very complex 3D
objects from simple ones
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
22
INTERFACE TO LEVEL-1 TRIGGER
• Visualization of L1 Trigger objects : RoI, PAD Logic, Coincidence Windows, supervision of Coincidence Matrices, …
• Example : Higgs to four muons event
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
23
INTERFACE TO MAGNETIC FIELD
Dedicated Interface for :
• Visualization of the
magnetic field map
• 2D or 3D lattice
• Visualization of
magnet elements
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
24
PERFORMANCES
• Navigation with full volumes
– On a 2.8 GHz Pentium 4
– 0.65 sec to compute and display 2300 volumes / 15000
facets of the Muon precision chambers system
– Real-time displacements are fluid (> 10 views per second)
for a number of volumes < 400
• Event Scan on Testbeam Data
– Display events in loop with 6 MDT chambers and ~ 20 hits
– 0.02 sec/event for bare event display
– 0.20 sec/event with track reconstruction
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
25
AVAILABILITY OF THE CODE
• PERSINT Web Page
– http://cern.ch/Atlas/GROUPS/MUON/persint.html
• AFS Location
– /afs/cern.ch/atlas/offline/external/Persint
• Documentation updated with every release
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
26
PROSPECTS
• DISCUSSION ON THE DESIGN
– ADVANTAGES :
• User can download a single executable binary; no dll, no
fancy APIs to install;
• Efficient even if operated remotely (e.g on remote clusters
from a X-terminal)
– DISADVANTAGES :
• Limited graphics interface (256 colors, …)
• Does not profit from high performance capabilities of
graphics cards when operated locally on PCs (Z-buffer).
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
27
PROSPECTS
• Planned developments :
– Integration in the ATHENA reco/analysis framework
=> useful to debug events
– Possibility to launch EVD from the ASK Interactive
toolkit
– Migration to OpenGL ?
– Integrate some parts in ROOT (calculus of hidden
faces, intersecting volumes, …) ?
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
28
PROSPECTS
• Planned utilization :
– Online EVD in the H8-2003 Muon Testbeam
– Online EVD in the H8-2004 Combined Testbeam
– Commissioning of ATLAS : participation in the debug
of the detector (cosmics runs, calibration runs, …)
– ATLAS Online EVD for monitoring of data-taking
D. Pomarède, CEA/DAPNIA/SEDI
CHEP 24/03/2003
29