1 / 14

HepRep/WIRED

Geant4 Visualization & GGE Demo. Joseph Perl, SLAC. HepRep/WIRED. DAWN. OpenGL. Contents. OpenGL RayTracer ASCIITree VRML HepRep/WIRED3 DAWN DAWNCUT GGE (Geant Geometry Editor, part of MOMO). Other Tutorial Materials.

cisco
Download Presentation

HepRep/WIRED

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 & GGE Demo Joseph Perl, SLAC HepRep/WIRED DAWN OpenGL Visualization & GGE Demo J. Perl

  2. Contents • OpenGL • RayTracer • ASCIITree • VRML • HepRep/WIRED3 • DAWN • DAWNCUT • GGE (Geant Geometry Editor, part of MOMO) Visualization & GGE Demo J. Perl

  3. Other Tutorial Materials • This presentation can be used on its own, but gives the most comprehensive introduction to Geant4 visualization when used as part of the following full set of documents: • Geant 4 Tutorial • Introduction to Geant4 Visualization • Geant4 Workshop Visualization Tutorial using the WIRED3 Event Display • Geant4 Workshop Visualization Tutorial using the DAWN Event Display • Geant4 Workshop Visualization Tutorial using the OpenGL Event Display • Some other Geant4 visualization drivers not discussed here simply because the present author is not an expert with them: • OpenInventor • VRML Visualization & GGE Demo J. Perl

  4. Tutorials Visualization & GGE Demo J. Perl

  5. OpenGL • With OpenGL, all commands go through Geant4: vis/open OGLIX /vis/scene/create /vis/scene/add/volume /vis/sceneHandler/attach /vis/viewer/flush /vis/viewer/set/viewpointThetaPhi 70 20 /vis/viewer/zoom 2 /vis/viewer/reset /vis/viewer/set/viewpointThetaPhi 40 40 /vis/viewer/panTo -5 -1 /vis/viewer/zoom 4. /vis/scene/add/trajectories /vis/scene/add/hits /tracking/storeTrajectory 1 /run/beamOn 1 Visualization & GGE Demo J. Perl

  6. RayTracer • Run directly from Geant4 • /vis/open RayTracer Visualization & GGE Demo J. Perl

  7. ASCIITree • ASCIITREE is a visualization driver that is not actually graphical, but that dumps the hierarchy as a simple text tree. • /vis/open ATree • /vis/viewer/flush • "worldPhysical":0 • "magneticPhysical":0 • "firstArmPhysical":0 • "hodoscope1Physical":0 • "hodoscope1Physical":1 (repeated placement) • "hodoscope1Physical":2 (repeated placement) • "hodoscope1Physical":3 (repeated placement) • "hodoscope1Physical":4 (repeated placement) • Can be set to various levels of detail • /vis/ASCIITree/verbose <verbosity> • 0: prints physical volume name. • 1: prints logical volume name. • 2: prints solid name and type. • 3: prints volume and density of solid. • 4: calculates and prints mass(es) of volume(s) in scene. • By default, shows only daughters of first placement and not repeat replicas. • Add 10 to the above to also show repeated placements and replicas. Visualization & GGE Demo J. Perl

  8. VRML • Geant4 creates VRML File • /vis/open VRML2FILE • View file in a VRML Browser • Many free options, demo today is using one from octaga.com Visualization & GGE Demo J. Perl

  9. HepRep / Wired3 • Geant4 creates HepRepFile • /vis/open HepRepFile • View file in WIRED3 or FRED HepRep Browsers • WIRED3 can export to various graphics formats Visualization & GGE Demo J. Perl

  10. DAWN • Geant4 creates .prim file • /vis/open DAWNFILE • DAWN renders .prim file into PostScript • View or print from your favorite PostScript application Visualization & GGE Demo J. Perl

  11. DAWNCUT and DAVID • A standalone program, DAWNCUT, can perform a planar cut on a DAWN image. • DAWNCUT takes as input a .prim file and some cut parameters. Its output is a new .prim file to which the cut has been applied. • Another standalone program, DAVID, can show you any volume overlap errors in your geometry. • DAVID takes as input a .prim file and outputs a new .prim file in which overlapping volumes have been highlighted. • Details at http://geant4.kek.jp/~tanaka/ Visualization & GGE Demo J. Perl

  12. GGE • GGE – the Geant Geometry Editor is one part of a Java application called MoMo. Momo contains: • Materials Editor • Geometry Editor • GAG (G4 Adaptive GUI) • Physics List Editor • All three are JavaGUI interfaces thathelp you to generateC++ code that youcan then compileinto your applications. Visualization & GGE Demo J. Perl

  13. Further Resources Geant4 Tutorial CD: • http://geant4.slac.stanford.edu/g4cd/ Geant4 Visualization README file: • geant4/source/visualisation/README On-line Documentation on Geant4 Visualization: • http://cern.ch/geant4/G4UsersDocuments/UsersGuides/ForApplicationDeveloper/html/Visualization List of Visualization Commands: • http://cern.ch/geant4/G4UsersDocuments/UsersGuides/ForApplicationDeveloper/html/Visualization/UIcommands/vis.txt Another Presentation that Introduces Visualization,with More Focus on Controlling Visualization from C++: • http://www.ge.infn.it/geant4/training/portland/visualisation.pdf For Questions or Comments: Geant4 Visualization Online Forum: • http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/visualization.html Visualization & GGE Demo J. Perl

  14. References • HepRep: a generic interface definition for HEP event display representableshttp://www.slac.stanford.edu/~perl/heprep • Fred: oh no, another event display (a HepRep client)http://www.fisica.uniud.it/~glast/FRED • WIRED3 HepRep Browserhttp://www.slac.stanford.edu/BFROOT/www/Computing/Graphics/Wired • 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/ • Geant4 Geometry Editor, GGE, part of the MoMo suite of Java toolshttp://erpc1.naruto-u.ac.jp/~geant4/Sources.html Visualization & GGE Demo J. Perl

More Related