Starsim commands to plot detectors

  •  manual of draw command 

 

 * GEANT/DRAWING/DRAW NAME [ THETA PHI PSI U0 V0 SU SV ]


   NAME       C 'Volume name'

   THETA      R 'Viewing angle theta (for 3D projection)' R=0.:180.

   PHI        R 'Viewing angle phi (for 3D projection)' R=0.:360.

   PSI        R 'Viewing angle psi (for 2D rotation)' R=0.:360.

   U0         R 'U-coord. (horizontal) of volume origin'

   V0         R 'V-coord. (vertical) of volume origin'

   SU         R 'Scale factor for U-coord.'

   SV         R 'Scale factor for V-coord.'


    CALL GDRAW(name,theta,phi,psi,u0,v0,su,sv)

 

  • manual of dcut command

 

 

 * GEANT/DRAWING/DCUT NAME CAXIS CUTVAL [ U0 V0 SU SV ]

   NAME       C 'Volume name'

   CAXIS      C 'Axis value'

   CUTVAL     R 'Cut plane distance from the origin along the axis'

   U0         R 'U-coord. (horizontal) of volume origin'

   V0         R 'V-coord. (vertical) of volume origin'

   SU         R 'Scale factor for U-coord.'

   SV         R 'Scale factor for V-coord.'

   Possible CAXIS values are:

    X  

    Y  

    Z
  • to draw in 2d (x vs y)
draw <name_volume> 0 90 0 10 10 .3 .3
  • to draw in 3d 
draw <name_volume> 40 40 0 10 10 .3 .3 
  • to clear the starsim window :
clr
  • to print [.gif] :
/picture/print file=<yourname.gif>
  •  a link with some useful commands : here