Geant 4 Visualization Review Hep RepHep RApp Geant

  • Slides: 23
Download presentation
Geant 4 Visualization Review Hep. Rep/Hep. RApp Geant 4 Collaboration Workshop Hebden Bridge 18

Geant 4 Visualization Review Hep. Rep/Hep. RApp Geant 4 Collaboration Workshop Hebden Bridge 18 September 2007 Joseph Perl, SLAC DAWN Open. GL 18 Sept 2007 J. Perl Geant 4 Visualization Review 1

Sorry, Vis Talks always need two pages of Cover Graphics Ray. Tracer DAWN 18

Sorry, Vis Talks always need two pages of Cover Graphics Ray. Tracer DAWN 18 Sept 2007 J. Perl Open. Inventor Hep. Rep/FRED Geant 4 Visualization Review 2

Contents n Overview of Visualization Drivers n Enhanced Trajectory Drawing n Trajectory and Hit

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

Quick Overview of Visualization Driver Choices n Geant 4 comes with Seven families of

Quick Overview of Visualization Driver Choices n Geant 4 comes with Seven families of visualization drivers: n Open. GL n Open. Inventor n Hep. Rep n DAWN n VRML n Ray. Tracer n ASCIITree n Just quick overview slides here. See references section for talks with more detail on individual drivers and commands. n Different drivers are appropriate for different needs n The set of commands the user sees are consistent regardless of the driver 18 Sept 2007 J. Perl Geant 4 Visualization Review 4

Quick response with flexible camera control to study geometries, trajectories and hits n Open.

Quick response with flexible camera control to study geometries, trajectories and hits n Open. GL and Open. Inventor n Widely available world standards for fast, photo-realistic rendering. 18 Sept 2007 J. Perl Geant 4 Visualization Review 5

High-quality Output for Publications n DAWN n Developed specifically for Geant 4. Not fast,

High-quality Output for Publications n DAWN n Developed specifically for Geant 4. Not fast, but the highest quality rendering available anywhere. Excellent for publications. 18 Sept 2007 J. Perl Geant 4 Visualization Review 6

Interactive Picking to Get More Information on Visualized Objects n n Hep. Rep Reuses

Interactive Picking to Get More Information on Visualized Objects n n Hep. Rep Reuses interactive Hep. Rep browser applications already developed for other user communities (Ba. Bar and GLAST). Explore hierarchies, pick to show attributes, apply cuts and labels. 18 Sept 2007 J. Perl Geant 4 Visualization Review 7

Understand Complex Boolean Solids and Transparent or Reflective Surfaces n n Ray. Tracer Reuses

Understand Complex Boolean Solids and Transparent or Reflective Surfaces n n Ray. Tracer Reuses Geant 4’s own tracking to shoot photons through the geometry 18 Sept 2007 J. Perl Geant 4 Visualization Review 8

3 D Format Suitable for Web Distribution n n VRML Many VRML browsers available,

3 D Format Suitable for Web Distribution n n VRML Many VRML browsers available, some as web plug-ins 18 Sept 2007 J. Perl Geant 4 Visualization Review 9

Tools to Understand Geometry Hierarchies n ASCIITree, Hep. Rep n/vis/ASCIITree/Verbose 4 n/vis/viewer/flush n"Had. Calorimeter.

Tools to Understand Geometry Hierarchies n ASCIITree, Hep. Rep n/vis/ASCIITree/Verbose 4 n/vis/viewer/flush n"Had. Calorimeter. Physical": 0 / "Had. Calorimeter. Logical" / "Had. Calorimeter. Box"(G 4 Box), 1. 8 m 3 , n"Had. Cal. Column. Physical": -1 (10 replicas) / "Had. Cal. Column. Logical" / "Had. Cal. Column. Box"( n"Had. Cal. Cell. Physical": -1 (2 replicas) / "Had. Cal. Cell. Logical" / "Had. Cal. Cell. Box"(G 4 Box), "Had. Cal. Cell. Box"(G 4 Box) n"Had. Cal. Layer. Physical": -1 (20 replicas) / "Had. Cal. Layer. Logical" / "Had. Cal. Layer. Bo "Had. Cal. Layer. B n"Had. Cal. Scinti. Physical": 0 / "Had. Cal. Scinti. Logical" / "Had. Cal. Scinti. Box"(G 4 Bo 18 Sept 2007 J. Perl Geant 4 Visualization Review 10

Interactive Control of Trajectory Drawing Model Creator Process — — — Charge — —

Interactive Control of Trajectory Drawing Model Creator Process — — — Charge — — — 18 Sept 2007 +1 0 -1 J. Perl mu. Ioni Decay annihil e. Ioni brem Geant 4 Visualization Review Momentum (Me. V) — — — 0 -1 1 -10 10 -20 20 -30 30 -50 50+ 11

Sample Commands: generic trajectory model # Create a generic model (will get default name

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/set. Draw. Step. Pts true /vis/modeling/trajectories/generic-0/default/set. Step. Pts. Size 16 /vis/modeling/trajectories/generic-0/default/set. Line. Colour cyan /vis/modeling/trajectories/generic-0/default/set. Step. Pts. Colour red 18 Sept 2007 J. Perl Geant 4 Visualization Review 12

Interactive Control of Trajectory and Hit Filtering IMag > 2. 5 Me. V, particle

Interactive Control of Trajectory and Hit Filtering IMag > 2. 5 Me. V, particle = gamma Momentum (Me. V) — — — 18 Sept 2007 0 -2. 5 -5 5 -7. 5 -10 10 -10. 25 12. 5+ J. Perl Geant 4 Visualization Review 13

Extra Information Available from the Trajectory n Most users use the standard G 4

Extra Information Available from the Trajectory n Most users use the standard G 4 Trajectory n Smooth Trajectory adds auxiliary points to allow smoother line in visualization (not Geant 4 Steps, no physics at auxiliary points) n n n Rich Trajectory encodes additional information at every step point Control via: n n n Useful when trajectories are highly curved due to magnetic fields /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: n n /vis/modeling/trajectories/create/generic /vis/modeling/trajectories/generic-0/default/set. Draw. Step. Pts true /vis/modeling/trajectories/generic-0/default/set. Step. Pts. Size 16 /vis/modeling/trajectories/generic-0/default/set. Step. Pts. Colour red 18 Sept 2007 J. Perl Geant 4 Visualization Review 14

Smooth Trajectory for Vis in Magnetic Fields n See talk by John Allison later

Smooth Trajectory for Vis in Magnetic Fields n See talk by John Allison later in this session 18 Sept 2007 J. Perl Geant 4 Visualization Review 15

Rich Trajectory 18 Sept 2007 J. Perl Geant 4 Visualization Review 16

Rich Trajectory 18 Sept 2007 J. Perl Geant 4 Visualization Review 16

Movies: Stitched Together from Multiple Stills http: //www. hep. man. ac. uk/u/johna/pub/Geant 4/Movies/g 4

Movies: Stitched Together from Multiple Stills http: //www. hep. man. ac. uk/u/johna/pub/Geant 4/Movies/g 4 Ray. Tracer. mpg 18 Sept 2007 J. Perl Geant 4 Visualization Review 17

Movies: Live from Geant 4 Open. GL 18 Sept 2007 J. Perl Geant 4

Movies: Live from Geant 4 Open. GL 18 Sept 2007 J. Perl Geant 4 Visualization Review 18

g. Mocren - to Visualization Volume Data n n n Geant 4 has been

g. Mocren - to Visualization Volume Data n n n Geant 4 has been interfaced to a commercial tool for visualization of voxel data. Free to all Geant 4 users. Does not actually function as integral part of the Geant 4 visualization system. n Implemented as a G 4 example, outputs data in form appropriate for g. Mocren Ayumi Saitoh, Akinori Kimura, Satoshi Takana 18 Sept 2007 J. Perl Geant 4 Visualization Review 19

Coming Soon: Visualization of Fields Project Lead: Jane 18 Sept 2007 Tinslay J. Perl

Coming Soon: Visualization of Fields Project Lead: Jane 18 Sept 2007 Tinslay J. Perl Geant 4 Visualization Review 20

References and Further Resources 18 Sept 2007 J. Perl Geant 4 Visualization Review 21

References and Further Resources 18 Sept 2007 J. Perl Geant 4 Visualization Review 21

Geant 4 Visualization Resources Geant 4 Installation Guides Øhttp: //geant 4. slac. stanford. edu/installation

Geant 4 Visualization Resources Geant 4 Installation Guides Øhttp: //geant 4. slac. stanford. edu/installation Hands on Hep. RApp Tutorial Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/G 4 Hep. RApp. Tutorial. html Hands on DAWN Tutorial Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/G 4 DAWNTutorial. html Hands on Open. GL Tutorial Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/G 4 Open. GLTutorial. html Introduction to Geant 4 Visualization Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/G 4 Vis. Introduction. ppt (and. pdf) Geant 4 Visualization Commands Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/G 4 Vis. Commands. ppt (and. pdf) Geant 4 Advanced Visualization Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/G 4 Vis. Advanced. ppt (and. pdf) How to Make a Movie Øhttp: //geant 4. slac. stanford. edu/Presentations/vis/How. To. Make. AMovie. ppt (and. pdf) Visualization Chapter of the Geant 4 User’s Guide for Application Developers Øhttp: //geant 4. web. cern. ch/geant 4/User. Documentation/Users. Guides/For. Application. Developer/html/ List of Visualization Commands: Øhttp: //geant 4. web. cern. ch/geant 4/User. Documentation/Users. Guides/For. Application. Developer/html/ All. Resources/Control/UIcommands/_vis_. html For Questions or Comments: Geant 4 Visualization Online Forum: Øhttp: //geant 4 -hn. slac. stanford. edu: 5090/Hyper. News/public/get/visualization. html 18 Sept 2007 J. Perl Geant 4 Visualization Review 22

References n n n n n Open. Scientist Home Page http: //openscientist. lal. in

References n n n n n Open. Scientist Home Page http: //openscientist. lal. in 2 p 3. fr Hep. Rep: a generic interface definition for HEP event display representables http: //www. slac. stanford. edu/~perl/heprep Hep. RApp Hep. Rep Browser http: //www. slac. stanford. edu/~perl/Hep. RApp Wired 4 JAS Plug-In http: //wired. freehep. org Fred: oh no, another event display (a Hep. Rep client) http: //www. fisica. uniud. it/~glast/FRED DAWN Home Page http: //geant 4. kek. jp/~tanaka/DAWN/About_DAWN. html DAWNCUT Home Page http: //geant 4. kek. jp/~tanaka/DAWN/About_DAWNCUT. html DAVID Home Page http: //geant 4. kek. jp/~tanaka/DAWN/About_DAVID. html Satoshi Tanaka’s GEANT 4 Ritsumeikan University Group Home Page (more information on DAWN, sample PRIM files, images, etc. ) http: //geant 4. kek. jp/~tanaka/ 18 Sept 2007 J. Perl Geant 4 Visualization Review 23