Difference between revisions of "Solgemc GDML Visualization"

From Hall A Wiki
Jump to: navigation, search
Line 6: Line 6:
  
  
== Another option: Directly through GEMC ==
+
== ANOTHER OPTION: Directly through GEMC ==
 +
Another way to create a 2D with WIREFRAME style uses a macro directly with GEMC. After have saved the picture one can then use latex to add grid, text, etc.
 +
* One needs to create a wireframe picture of the SoLID detector. An example of gcard in my geometry database is [http://hallaweb.jlab.org/12GeV/SoLID/download/visualize/GEMC/example_PVDIS_2D.gcard here (Save As)]. The macro is  [http://hallaweb.jlab.org/12GeV/SoLID/download/visualize/GEMC/solid_wireframe_slice.vis here (Save As)]
 +
* One will need to just execute the gcard: gemc -gcard=example_PVDIS_2D.gcard

Revision as of 16:34, 31 August 2012

Visualization in a 2D format using GDML can be done with ROOT's OpenGL implementation. solgemc will write out a GDML file of the geometry last run to solgemc.gdml which can then be shown using the geometry facilities in ROOT.

An example script to do this can be found below

Example scripts and GDML


ANOTHER OPTION: Directly through GEMC

Another way to create a 2D with WIREFRAME style uses a macro directly with GEMC. After have saved the picture one can then use latex to add grid, text, etc.

  • One needs to create a wireframe picture of the SoLID detector. An example of gcard in my geometry database is here (Save As). The macro is here (Save As)
  • One will need to just execute the gcard: gemc -gcard=example_PVDIS_2D.gcard