Geant4 Visualization 1 OpenGL DAWN VRML. Visualization Visualization Seeing what one does usually helps One can visualize geometry, hits, trajectories.

Slides:



Advertisements
Similar presentations
Autodesk Inventor 11 Essentials Plus Instructor’s Name.
Advertisements

11 January 2011 Geant4 Visualization Commands J. Perl 1 DAWN OpenGL Geant4 Visualization Commands Basic Visualization Commands Makoto Asai (SLAC) slides.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Annotation & Nomenclature By Corey Fortezzo for PG&G GIS Workshop, 2010.
Introduction to Geant4 Visualization
10 January 2011 Introduction to Geant4 Visualization J. Perl 1 DAWN OpenGL So many options, it needs three title pages Introduction to Geant4 Visualization.
15 Sept 2007 J. Perl Overview of Geant4 Visualization 1 HepRep/HepRApp DAWN OpenGL Overview of Geant4 Visualization Geant4 Mini-Tutorial Hebden Bridge.
14 June 2010 Introduction to Geant4 Visualization J. Perl 1 DAWN OpenGL So many options, it needs two title pages Introduction to Geant4 Visualization.
12 May 2007 J. Perl Future Plans for Geant4 Visualization 1 HepRep/HepRApp DAWN OpenGL Future Plans for Geant4 Visualization What’s Planned for the Next.
Geant4 Visualization Review
12 May 2007 Geant4 Visualization Commands J. Perl 1 DAWN OpenGL Geant4 Visualization Commands Basic Visualization Commands Joseph Perl, SLAC HepRep/HepRApp.
Introduction to Geant4 Visualization
Geant4 application to X and Gamma-ray Telescopes B.Ferrero Merlino 1, D.Favretto 2, R. Giannitrapani 2, F.Longo 2, R.Nartallo 3, P.Nieminen 3, A.Pfeiffer.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Software Installation The full set of lecture notes of this Geant4 Course is available at
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
G.Barrand, LAL-Orsay Geant4 and interactive frameworks.
Chapter 3 Working with Symbols and Interactivity.
V.Fine The STAR “Integrated" Geometry Browser. 12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
- Circle markers produced by TAsimage: They do not match was is produced on screen. The line width is too thick. Some other markers need to be tune a bit.
Zubanov Alexei, 2006 Aug 07 – Sep 28 QtROOT package extension with Coin3D lib.
Live Action First Person Shooter Game Patrick Judd Ian Katsuno Bao Le.
Visualisation and (G)UI Authors: Hajime Yoshida and Satoshi Tanaka.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
V part C.  Different programs have different ways of displaying objects in real-time while the scenes are being created within the workspace. Some.
Microsoft Publisher 2010 Chapter 4 Creating a Custom Publication from Scratch.
Geant4 Installation Supported platforms:  Scientific Linux with gcc 4.1.2/4.6  Mac Os X 10.7 and 10.8 with gcc 4.21  Windows7 with Visual Studio.
S. Guatelli, CPS Innovations, Knoxville, 13 th -21 st January Brachytherapy exercise.
What is AutoCAD? A software drafting tool Particularly useful for Mechanical drawings Architectural drawings.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
V. Serbo, SLAC ACAT03, 1-5 December 2003 Interactive GUI for Geant4 by Victor Serbo, SLAC.
S. Guatelli, M.G Pia, INFN Genova G. Cosmo, S. Guatelli, M.G Pia Salamanca, July 2002
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
7 June 2005 Visualization & GGE Demo J. Perl 1 HepRep/WIRED DAWN OpenGL Geant4 Visualization & GGE Demo Joseph Perl, SLAC.
Flash CS 5 Interface BY NSCHEWCZYK | ©2012. MENU BAR A bar at the top of the window. It lists menu options including: File, Edit, View, Insert, Modify,
3D Viewers Two main uses: –Detector/event exploration – interactivity priority (15fps min). –Generate presentation material (still/movie renders) – quality.
12 October 2006 G4Vis: Status, New Features and Issues 1 HepRep/WIRED DAWN OpenGL G4Vis: Status, New Features and Issues Geant4 Collaboration Workshop.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
May 20, 2005Wah-kai Ngai1 Basic Visualization Tutorial Using Geant4.
Makoto Asai (SLAC) Getting Started MGP: added class diagram of basic user application.
WIRED for LCD Analysis Mark Dönszelmann Linear Collider Simulation Workshop May 19-22, 2003, SLAC.
Update G4builder issues Talk written almost entirely by Stan Bentvelsen with a few updates from Christopher Lester ATLAS G4 Workshop December 2000 CAMBRIDGE.
Visualisation, (G)UI and Analysis The full set of lecture notes of this Geant4 Course is available at
June 4-8, G4 Paris Visualization II P. Gueye/J. Perl 1 DAWN OpenGL Geant4 Visualization Commands Basic Visualization Commands Paul Guèye, HU Courtesy:
Geant4 User Workshop 15, 2002 Lassi A. Tuura, Northeastern University IGUANA Overview Lassi A. Tuura Northeastern University,
The V-Atlas Event Visualization Program J. Boudreau, L. Hines, V. Tsulaia University of Pittsburgh A. Abdesselam University of Oxford T. Cornelissen NIKHEF.
UI Tags of Struts2. May 12, 2011 Struts 2.x Tags in detail:- The Struts 2.x tags can be classified under the following categories. i) UI Tags ii) Control.
1 G4UIRoot Isidro González ALICE ROOT /10/2002.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Simulation Tools for Test Beam
GUI Design and Coding PPT By :Dr. R. Mall.
MICE event viewer status - Mihailo Savic - CM 45
Visual Basic Code & No.: CS 218
Introduction Goal: Can we reconstruct the energy depositions of the proton in the brain if we are able to reconstruct the photons produced during this.
Visualisation and (G)UI
3D graphics in JavaScript ROOT
Geant4 Visualization Commands
The full set of lecture notes of this Geant4 Course is available at
Geometry checking tools
Gunter Folger Geant4 Genova Workshop 4-July-2001
Visualisation, (G)UI and Analysis
Software Installation
Viewing Tools V part 3.
GAMOS tutorial Plug-in’s Exercises
Visualization Status/Development
WIRED 4 Event Display Linear Collider Simulation Workshop
Event loops.
Presentation transcript:

Geant4 Visualization 1 OpenGL DAWN VRML

Visualization Visualization Seeing what one does usually helps One can visualize geometry, hits, trajectories One can assign color, transparency to volumes, tracks, hits displays Important for analysis and debugging 2

Visualization Additionally, users may wish to add markers, text or lines to highlight/mark specific detector components or tracks To visually distinguish detector components and tracks it is helpful to give them  Different colors  Transparency  Force wire-frame style display This is done by setting visualization attributes using G4VisAttributes 3

Controlling Visualization from Code Setting the visualization attributes for a given logical volume 4 G4VisAttributes* visAtt = new G4VisAttributes(); //set visibility (display or not) visAtt->SetVisibility(true) //now you see me visAtt->SetVisibility(false) //now you don’t //set color G4Color red(r = 1.0, g = 0., b = 0.); //in RGB-color space; visAtt->SetColor(red); //set attributes for logical volume redCubeLog->SetVisAttributes(visAtt); //vis attributes can be reused redCubeLog2->SetVisAttributes(visAtt); Consider if every component really needs a different color – usually the shape and position is already quite helpful

Controlling Visualization from Code Adding a polyline (e.g. for axis, tracks), marker (e.g. for hits) or text to a 3D scene 5 G4PolyLine xAxis; xAxis.append(G4Point3d(0., 0., 0.,)); //polylines are defined by segments between points xAxis.append(G4Point3d(5.0*m, 0., 0.)); G4Color blue(0., 0., 1.); G4VisAttributes visAtt(blue); xAxis.SetVisAttributes(visAtt); G4Point3d position(5.0*m, 0., 0.); G4Circle mark(position); //G4Circle, G4Square, G4Text Mark.SetScreenDiameter(1.0); Mark.SetVisAttributes(visAtt); /vis/scene/add/axis will draw axis at a given position for you! This is just as an example

Interactive Visualization using OpenGL Useful for debugging, quick checks but also analysis because the detector can easily be viewed “from all sides” Directly interact with the simulation Easiest to use with Qt-based UI interface 6 //in application main #ifdef G4VIS_USE G4VisManager* visMan = new G4VisExecutive(); visMan->initialize(); #endif … #ifdef G4VIS_USE delete visMan; // don’t forget to delete the vis manager #endif

Interactive Visualization using OpenGL In UI: Idle> /vis/open OGLIQt #open Qt OGL viewer Idle> /vis/drawVolume #draw the detector volume Idle> /vis/viewer/set/style wireframe Idle> /vis/viewer/viewpointThetaPhi Using the mouse is usually more intuitive for selecting viewpoint. Also try right-clicking into the viewer to get menu access to quite a few visualization options 7

Publication-quality Visualization using DAWN First install the DAWN viewer from Idle> /vis/open DAWNFILE #open dawn file Idle> /vis/drawVolume #draw the detector volume Idle> /vis/viewer/flush #create a.prim file for DAWN to read You can then open the.prim file in the DAWN viewer, set visualization style, camera positions etc. The output will be a high quality.eps file 8

Adding trajectories and hits Up to now you have visualized your detector. Now its time to visualize some physics Idle> /vis/scene/add/trajectories Idle> /vis/scene/add/hits Idle> /run/beamOn 1 Geant4 provides a rich set of commands to customize track visualization, e.g. drawing particle tracks in different colors depending on charge, id, type etc.. 9

Overview of visualization drivers Multiple visualization drivers are available in Geant4 (some require external libraries)  OpenGL, as X11, Motif and Qt flavors (latter two support mouse interaction)  RayTracer  DAWN file, can be opened in DAWN viewer  VRML  OpenInventor  HepRep  PostScript 10

Geant4 Visualization For interactive visualization OpenGL is usually best- suited, also allows for display tracks, hits etc. DAWN and HepRep are well suited for event display and high quality plotting Raytracer can produce high quality renderings with transparency, but does not support the display of particle tracks Interactive OpenGL visualization is a helpful tool for inspecting geometries: are volumes misplaced, were transformation chosen correctly Visualization can be used to detect overlaps 11