Difference between revisions of "Solgemc GDML Visualization"

From Hall A Wiki
Jump to: navigation, search
(Link to new wiki)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
This page has been moved to [https://solid.jlab.org/wiki/index.php/Solgemc_GDML_Visualization https://solid.jlab.org/wiki/index.php/Solgemc_GDML_Visualization] in the new [https://solid.jlab.org/wiki SoLID Wiki].  Please do not edit this page.
 +
 
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.
 
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.
  
Line 7: Line 9:
  
 
== 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. (A possible outlook is [http://hallaweb.jlab.org/12GeV/SoLID/download/visualize/Latex/solid_latex.pdf this PDF] ).  
+
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.  
 +
 
 +
A possible outlook is in [http://hallaweb.jlab.org/12GeV/SoLID/download/visualize/Latex/solid_latex.pdf this PDF].  
 +
 
 
How to do this:
 
How to do this:
 
* 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 to visualize)]. The macro used is  [http://hallaweb.jlab.org/12GeV/SoLID/download/visualize/GEMC/solid_wireframe_slice.vis here]
 
* 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 to visualize)]. The macro used is  [http://hallaweb.jlab.org/12GeV/SoLID/download/visualize/GEMC/solid_wireframe_slice.vis here]

Latest revision as of 15:40, 7 December 2020

This page has been moved to https://solid.jlab.org/wiki/index.php/Solgemc_GDML_Visualization in the new SoLID Wiki. Please do not edit this page.

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.

A possible outlook is in this PDF.

How to do this:

  • One needs to create a wireframe picture of the SoLID detector. An example of gcard in my geometry database is here (Save As to visualize). The macro used is here
  • After saved both files, one will need to just execute the gcard: gemc -gcard=example_PVDIS_2D.gcard
  • This will open the gemc window with a wireframe picture of solid (edit the gcard in order to picture your desired volumes from your desired geometry database).
  • In order to simplify the editing, I have added an external polycone volume (solid_CLEO_ruler) That surrounds the solenoid and has tics over 10cm, 50cm, 100cm. The perl script used to define the volume is here. Edit the gcard or modify directly the visualization in gemc if you don't want it. This ruler volume is present in both user_geometry_6 (my geometry) and user_geometry (the default geometry), and helps verify the scaling of the picture.
SoLID PVDIS wireframe with ruler.
  • Some way to manipulate the picture so obtained with Latex can be found here and this PDF is an example of possible features.