Difference: VisuDet (3 vs. 4)

Revision 42014-06-24 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Visualising a detector geometry

Line: 11 to 11
 There are various formats used to describe a detector geometry. The info in the compact.xml is not enough to describe the detector - drivers are needed to expand info from the XML and create all the volumes. Mokka or SLIC for example create ways of inputting objects in Geant4 without programming volumes in Geant4.
Changed:
<
<
  • GDML (Geant4, Root)
>
>
  • GDML (Geant4, ROOT)
 
  • LCDD (GeomConverter) - LCDD is GDML augmented by sensitive detector info including cell id specs.
  • HEPREP
  • XML - all of the above are XML formats
Line: 46 to 46
 geoConverter -compact2lcdd -input compact.xml -output dd4hep.lcdd gGeoManager->Export(“clic-crr.gdml”)
Changed:
<
<
or use Export(“clic-crr.root”) to export in root format.
>
>
or use Export(“clic-crr.root”) to export in ROOT format.
  From Mokka, one can create a GDML file with
Line: 59 to 59
 

Visualisation

Changed:
<
<
To visualise a GDML file in Root: open Root, then
>
>
To visualise a GDML file in ROOT: open ROOT, then
 
TGeoManager::Import(“myclic.gdml”);
gGeoManager->GetTopVolume()->Draw(“ogl”); 
Changed:
<
<
where ogl selects the OpenGL engine.
>
>
where ogl selects the OpenGL engine. All figures from this section were produced like that.
  From SLIC, do
Added:
>
>
source ~/ilc_soft/slic/v03-01-06/init_ilcsoft.sh
 slic -g clic-sid_cdr.lcdd -n
Changed:
<
<
to get a Geant4 prompt, i.e. a Geant4 interface with the geometry loaded; use commands like /vis/open OGL ... etc. to visualise the geometry.
>
>
to get a Geant4 prompt, i.e. a Geant4 interface with the geometry loaded; use Geant4 commands like to visualise the geometry:
Idle> /vis/open OGL
Idle> /vis/scene/create 
Idle> /vis/drawVolume
Idle> /vis/viewer/set/viewpointThetaPhi 60 45
Idle> /vis/viewer/set/background white
which, with this geometry, will display something like this:

slic-view.png

  From Mokka, one can visualise the DB geometry via Geant4 as above. See this example.
Line: 79 to 90
 
java -jar GeomConverter-2.4-bin.jar
Added:
>
>
META FILEATTACHMENT attachment="slic-view.png" attr="" comment="SLIC/Geant4 view of the clic_sid_cdr geometry" date="1403618263" name="slic-view.png" path="slic-view.png" size="43781" user="DanProtopopescu" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback