HepRepWIRED - PowerPoint PPT Presentation

About This Presentation
Title:

HepRepWIRED

Description:

Geant4 Workshop Visualization Tutorial using the WIRED3 Event Display ... vis/viewer/panTo -5 -1 /vis/viewer/zoom 4. /vis/scene/add/trajectories /vis/scene/add/hits ... – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 15
Provided by: Richard1132
Category:

less

Transcript and Presenter's Notes

Title: HepRepWIRED


1
Geant4 Visualization GGE Demo
Joseph Perl, SLAC
HepRep/WIRED
DAWN
OpenGL
2
Contents
  • OpenGL
  • RayTracer
  • ASCIITree
  • VRML
  • HepRep/WIRED3
  • DAWN
  • DAWNCUT
  • GGE (Geant Geometry Editor, part of MOMO)

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

4
Tutorials
5
OpenGL
  • With OpenGL, all commands go through Geant4

vis/open OGLIX /vis/scene/create /vis/scene/add/vo
lume /vis/sceneHandler/attach /vis/viewer/flush /v
is/viewer/set/viewpointThetaPhi 70
20 /vis/viewer/zoom 2 /vis/viewer/reset /vis/viewe
r/set/viewpointThetaPhi 40 40 /vis/viewer/panTo
-5 -1 /vis/viewer/zoom 4. /vis/scene/add/trajector
ies /vis/scene/add/hits /tracking/storeTrajectory
1 /run/beamOn 1
6
RayTracer
  • Run directly from Geant4
  • /vis/open RayTracer

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 ltverbositygt
  • 0 prints physical volume name.
  • 1 prints logical volume name.
  • 2 prints solid name and type.
  • 3 prints volume and density of solid.

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

9
HepRep / Wired3
  • Geant4 creates HepRepFile
  • /vis/open HepRepFile
  • View file in WIRED3 or FRED HepRep Browsers
  • WIRED3 can export to various graphics formats

10
DAWN
  • Geant4 creates .prim file
  • /vis/open DAWNFILE
  • DAWN renders .prim file into PostScript
  • View or print from your favorite PostScript
    application

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/

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.

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/UIcom
    mands/vis.txt
  • Another Presentation that Introduces
    Visualization,with More Focus on Controlling
    Visualization from C
  • http//www.ge.infn.it/geant4/training/portland/vis
    ualisation.pdf
  • For Questions or Comments Geant4 Visualization
    Online Forum
  • http//geant4-hn.slac.stanford.edu5090/HyperNews/
    public/get/visualization.html

14
References
  • HepRep a generic interface definition for HEP
    event display representableshttp//www.slac.stanf
    ord.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/A
    bout_DAWN.html
  • DAWNCUT Home Pagehttp//geant4.kek.jp/tanaka/DAW
    N/About_DAWNCUT.html
  • DAVID Home Pagehttp//geant4.kek.jp/tanaka/DAWN/
    About_DAVID.html
  • Satoshi Tanakas GEANT4 Ritsumeikan University
    Group Home Page (more information on DAWN, sample
    PRIM files, images, etc.)http//geant4.kek.jp/ta
    naka/
  • Geant4 Geometry Editor, GGE, part of the MoMo
    suite of Java toolshttp//erpc1.naruto-u.ac.jp/g
    eant4/Sources.html
Write a Comment
User Comments (0)
About PowerShow.com