12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Visualizationyou use the standard visualization manager, G4VisExecutive, or an equally smart vis manager). RayTracerXbuilds the same jpeg file as RayTracer, but simultaneously renders to screen so you can watch as rendering growsprogressively smoother.RayTracer has its own built-in commands - /vis/rayTracer/.... Alternatively, you can treat it as a normalvis system and use /vis/viewer/... commands, e.g:/vis/open RayTracerX/vis/drawVolume/vis/viewer/set/viewpointThetaPhi 30 30/vis/viewer/refreshThe view parameters are translated into the necessary RayTracer parameters.RayTracer is compute intensive. If you are unsure of a good viewing angle or zoom factor, you might be advisedto choose them with a faster renderer, such as OpenGL, and transfer the view parameters with /vis/viewer/set/all:/vis/open OGLSXm # or any of the OGL options. Opens, say, viewer-0./vis/drawVolume/vis/viewer/zoom # plus any /vis/viewer/commands that get you the view you want./vis/open RayTracerX/vis/viewer/set/all viewer-0/vis/viewer/refresh8.3.11. gMocrenThe gMocrenFile driver creates a gdd file suitable <strong>for</strong> viewing with the gMocren volume visualizer. gMocren, asophisticated tool <strong>for</strong> rendering volume data, can show volume data such as <strong>Geant4</strong> dose distrubutions overlaidwith scoring grids, trajectories and detector geometry. gMocren provides additional advanced functionality suchas transfer functions, colormap editing, image rotation, image scaling, and image clipping.gMocren is further described at http://geant4.kek.jp/gMocren/ . At this link you will find the gMocren download,the user manual, a tutorial and some example gdd data files.Please note that the gMocren file driver is currently considered a Beta release. Users are encouraged to try thisdriver, and feedback is welcome, but users should be aware that features of this driver may change in upcomingreleases.To send volume data from <strong>Geant4</strong> scoring to a gMocren file, the user needs to tell the gMocren driver the nameof the specific scoring volume that is to be displayed. For scoring done in C++, this is the name of the sensitivevolume. For command-based scoring, this is the name of the scoring mesh./vis/gMocren/setVolumeName The following is an example of the minimum command sequence to send command-based scoring data to the agMocren file:# an example of a command-based scoring definition/score/create/boxMesh scoringMesh # name of the scoring mesh/score/mesh/boxSize 10. 10. 10. cm # dimension of the scoring mesh/score/mesh/nBin 10 10 10# number of divisions of the scoring mesh/score/quantity/energyDeposit eDep # quantity to be scored/score/close# configuration of the gMocren-file driver/vis/scene/create/vis/open gMocrenFile/vis/gMocren/setVolumeName scoringMeshTo add detector geometry to this file:231

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!