1 / 23

HepRep/HepRApp

Geant4 Visualization Review. Geant4 Collaboration Workshop Hebden Bridge 18 September 2007 Joseph Perl, SLAC. HepRep/HepRApp. DAWN. OpenGL. Sorry, Vis Talks always need two pages of Cover Graphics. OpenInventor. RayTracer. DAWN. HepRep/FRED. Contents. Overview of Visualization Drivers

carys
Download Presentation

HepRep/HepRApp

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Geant4 Visualization Review Geant4 Collaboration WorkshopHebden Bridge18 September 2007 Joseph Perl, SLAC HepRep/HepRApp DAWN OpenGL J. Perl Geant4 Visualization Review

  2. Sorry, Vis Talks always need two pages of Cover Graphics OpenInventor RayTracer DAWN HepRep/FRED J. Perl Geant4 Visualization Review

  3. Contents • Overview of Visualization Drivers • Enhanced Trajectory Drawing • Trajectory and Hit Filtering • Smooth and Rich Trajectories • Movies • Volume Rendering • Coming in Next Year: Visualization of Fields • Subsequent talks in this session, cool new stuff: • Qt Interface - Laurent Garnier and Guy Barrand • Smooth Trajectories, Event Keeping, Picking in OGLX - John Allison • geant4Py Example and Web Application - Koichi Murakami J. Perl Geant4 Visualization Review

  4. Quick Overview ofVisualization Driver Choices • Geant4 comes with Seven families of visualization drivers: • OpenGL • OpenInventor • HepRep • DAWN • VRML • RayTracer • ASCIITree • Just quick overview slides here.See references section for talks with more detail on individual drivers and commands. • Different drivers are appropriate for different needs • The set of commands the user sees are consistent regardless of the driver J. Perl Geant4 Visualization Review

  5. Quick response with flexible camera control to study geometries, trajectories and hits • OpenGL and OpenInventor • Widely available world standards for fast, photo-realistic rendering. J. Perl Geant4 Visualization Review

  6. High-quality Output for Publications • DAWN • Developed specifically for Geant4. Not fast, but the highest quality rendering available anywhere. Excellent for publications. J. Perl Geant4 Visualization Review

  7. Interactive Picking to Get More Information on Visualized Objects • HepRep • Reuses interactive HepRep browser applications already developed for other user communities (BaBar and GLAST). Explore hierarchies, pick to show attributes, apply cuts and labels. J. Perl Geant4 Visualization Review

  8. Understand Complex Boolean Solids and Transparent or Reflective Surfaces • RayTracer • Reuses Geant4’s own tracking to shoot photons through the geometry J. Perl Geant4 Visualization Review

  9. 3D Format Suitable for Web Distribution • VRML • Many VRML browsers available, some as web plug-ins J. Perl Geant4 Visualization Review

  10. Tools to Understand Geometry Hierarchies • ASCIITree, HepRep • /vis/ASCIITree/Verbose 4 • /vis/viewer/flush • "HadCalorimeterPhysical":0 / "HadCalorimeterLogical" / "HadCalorimeterBox"(G4Box), 1.8 m3 , 11.35 g/cm3 • "HadCalColumnPhysical":-1 (10 replicas) / "HadCalColumnLogical" / "HadCalColumnBox"(G4Box), 180000 cm3, 11.35 g/cm3 • "HadCalCellPhysical":-1 (2 replicas) / "HadCalCellLogical" / "HadCalCellBox"(G4Box), 90000 cm3, 11.35 g/cm3 • "HadCalLayerPhysical":-1 (20 replicas) / "HadCalLayerLogical" / "HadCalLayerBox"(G4Box), 4500 cm3, 11.35 g/cm3 • "HadCalScintiPhysical":0 / "HadCalScintiLogical" / "HadCalScintiBox"(G4Box), 900 cm3, 1.032 g/cm3 J. Perl Geant4 Visualization Review

  11. Momentum (MeV) • 0-1 • 1-10 • 10-20 • 20-30 • 30-50 • 50+ • Creator Process • muIoni • Decay • annihil • eIoni • brem • Charge • +1 • 0 • -1 Interactive Control of Trajectory Drawing Model J. Perl Geant4 Visualization Review

  12. Sample Commands: generic trajectory model # Create a generic model (will get default name of generic-0) # From here we can set overall defaults for things like line color, # whether to show step points or just the trajectory line, etc. /vis/modeling/trajectories/create/generic # Configure the generic model to colour all trajectories cyan and to show step points /vis/modeling/trajectories/generic-0/default/setDrawStepPts true /vis/modeling/trajectories/generic-0/default/setStepPtsSize 16 /vis/modeling/trajectories/generic-0/default/setLineColour cyan /vis/modeling/trajectories/generic-0/default/setStepPtsColour red J. Perl Geant4 Visualization Review

  13. Interactive Control of Trajectoryand Hit Filtering IMag > 2.5 MeV IMag > 2.5 MeV, particle = gamma • Momentum (MeV) • 0-2.5 • 2.5-5 • 5-7.5 • 7.5-10 • 10-10.25 • 12.5+ J. Perl Geant4 Visualization Review

  14. Extra Information Available from the Trajectory • Most users use the standard G4Trajectory • Smooth Trajectory adds auxiliary points to allow smoother line in visualization (not Geant4 Steps, no physics at auxiliary points) • Useful when trajectories are highly curved due to magnetic fields • Rich Trajectory encodes additional information at every step point • Control via: • /vis/scene/add/trajectories • /vis/scene/add/trajectories smooth • /vis/scene/add/trajectories rich • /vis/scene/add/trajectories smooth rich • If you actually want to display the trajectory points, you need to issue the appropriate trajectory modeling commands, such as: • /vis/modeling/trajectories/create/generic • /vis/modeling/trajectories/generic-0/default/setDrawStepPts true • /vis/modeling/trajectories/generic-0/default/setStepPtsSize 16 • /vis/modeling/trajectories/generic-0/default/setStepPtsColour red J. Perl Geant4 Visualization Review

  15. Smooth Trajectory for Vis in Magnetic Fields • See talk by John Allison later in this session J. Perl Geant4 Visualization Review

  16. Rich Trajectory J. Perl Geant4 Visualization Review

  17. Movies: Stitched Together from Multiple Stills http://www.hep.man.ac.uk/u/johna/pub/Geant4/Movies/g4RayTracer.mpg J. Perl Geant4 Visualization Review

  18. Movies: Live from Geant4 OpenGL J. Perl Geant4 Visualization Review

  19. gMocren - to Visualization Volume Data • Geant4 has been interfaced to a commercial tool for visualization of voxel data. • Free to all Geant4 users. • Does not actually function as integral part of the Geant4 visualization system. • Implemented as a G4 example, outputs data in form appropriate for gMocren Ayumi Saitoh, Akinori Kimura, Satoshi Takana J. Perl Geant4 Visualization Review

  20. Coming Soon: Visualization of Fields Project Lead: Jane Tinslay J. Perl Geant4 Visualization Review

  21. References and Further Resources J. Perl Geant4 Visualization Review

  22. Geant4 Visualization Resources Geant4 Installation Guides • http://geant4.slac.stanford.edu/installation Hands on HepRApp Tutorial • http://geant4.slac.stanford.edu/Presentations/vis/G4HepRAppTutorial/G4HepRAppTutorial.html Hands on DAWN Tutorial • http://geant4.slac.stanford.edu/Presentations/vis/G4DAWNTutorial/G4DAWNTutorial.htmlHands on OpenGL Tutorial • http://geant4.slac.stanford.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html Introduction to Geant4 Visualization • http://geant4.slac.stanford.edu/Presentations/vis/G4VisIntroduction.ppt (and .pdf) Geant4 Visualization Commands • http://geant4.slac.stanford.edu/Presentations/vis/G4VisCommands.ppt (and .pdf) Geant4 Advanced Visualization • http://geant4.slac.stanford.edu/Presentations/vis/G4VisAdvanced.ppt (and .pdf) How to Make a Movie • http://geant4.slac.stanford.edu/Presentations/vis/HowToMakeAMovie.ppt (and .pdf) Visualization Chapter of the Geant4 User’s Guide for Application Developers • http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ List of Visualization Commands: • http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/AllResources/Control/UIcommands/_vis_.html For Questions or Comments: Geant4 Visualization Online Forum: • http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/visualization.html J. Perl Geant4 Visualization Review

  23. References • OpenScientist Home Pagehttp://openscientist.lal.in2p3.fr • HepRep: a generic interface definition for HEP event display representableshttp://www.slac.stanford.edu/~perl/heprep • HepRApp HepRep Browserhttp://www.slac.stanford.edu/~perl/HepRApp • Wired4 JAS Plug-Inhttp://wired.freehep.org • Fred: oh no, another event display (a HepRep client)http://www.fisica.uniud.it/~glast/FRED • DAWN Home Pagehttp://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html • DAWNCUT Home Pagehttp://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html • DAVID Home Pagehttp://geant4.kek.jp/~tanaka/DAWN/About_DAVID.html • Satoshi Tanaka’s GEANT4 Ritsumeikan University Group Home Page (more information on DAWN, sample PRIM files, images, etc.)http://geant4.kek.jp/~tanaka/ J. Perl Geant4 Visualization Review

More Related