/vis/viewer/zoom 4 4 /vis/viewer/zoomTo -4 -4 /vis/viewer/refresh # logical volume settings /vis/viewer/panTo /vis/geometry/list /vis/geometry/set/colour /vis/geometry/set/daughtersInvisible /vis/geometry/set/lineStyle /vis/geometry/set/lineWidth /vis/geometry/set/forceAuxEdgeVisible /vis/geometry/set/forceSolid /vis/geometry/set/forceWireframe /vis/geometry/set/visibility /vis/geometry/set/colour PlexiGlass -1 red /vis/geometry/set/colour AirGap -1 blue /vis/geometry/set/colour InterfaceCookie -1 blue /vis/geometry/set/colour PMTCathode -1 blue /vis/geometry/set/colour PMTGlass -1 green /vis/geometry/set/colour FoilTub -1 red # add axes at position x0 y0 z0 with length l in cm /vis/scene/add/axes x0 y0 z0 l cm /geometry/test/ 1) tolerance * Set error tolerance value. 2) position * Set starting position for the line_test. 3) direction * Set momentum direction for the line_test. 4) line_test * Performs test along a single specified direction/position. 5) grid_cells * Define resolution of grid geometry as number of cells, 6) grid_test * Start running the default grid test. 7) cylinder_geometry * Define details of the cylinder geometry, specifying: 8) cylinder_scaleZ * Define the resolution of the cylinder geometry, specifying 9) cylinder_scaleRho * Define the resolution of the cylinder geometry, specifying 10) cylinder_test * Start running the cylinder test. 11) recursion_start * Set the initial level in the geometry tree for recursion. 12) recursion_depth * Set the depth in the geometry tree for recursion. 13) run * Start running the default grid test. 14) recursive_test * Start running the recursive grid test. /vis/viewer/set/ 1) all * Copies view parameters. 2) autoRefresh * Sets auto-refresh. 3) auxiliaryEdge * Sets visibility of auxiliary edges 4) background * Set background colour and transparency (default black and opaque). 5) culling * Set culling options. 6) cutawayMode * Sets cutaway mode - add (union) or multiply (intersection). 7) edge * Edges become visible/invisible in surface mode. 8) explodeFactor * Moves top-level drawn volumes by this factor from this centre. 9) globalLineWidthScale * Multiplies line widths by this factor. 10) globalMarkerScale * Multiplies marker sizes by this factor. 11) hiddenEdge * Edges become hidden/seen in wireframe or surface mode. 12) hiddenMarker * If true, closer objects hide markers. Otherwise, markers always show. 13) lightsMove * Lights move with camera or with object 14) lightsThetaPhi * Set direction from target to lights. 15) lightsVector * Set direction from target to lights. 16) lineSegmentsPerCircle * Set number of sides per circle for polygon/polyhedron drawing. 17) projection * Orthogonal or perspective projection. 18) sectionPlane * Set plane for drawing section (DCUT). 19) style * Set style of drawing - w[ireframe] or s[urface]. 20) upThetaPhi * Set up vector. 21) upVector * Set up vector. 22) viewpointThetaPhi * Set direction from target to camera. 23) viewpointVector * Set direction from target to camera. Type the number ( 0:end, -n:n level back ) : /vis/viewer/set Guidance : Set view parameters of current viewer. Sub-directories : Commands : 1) all * Copies view parameters. 2) autoRefresh * Sets auto-refresh. 3) auxiliaryEdge * Sets visibility of auxiliary edges 4) background * Set background colour and transparency (default black and opaque). 5) culling * Set culling options. 6) cutawayMode * Sets cutaway mode - add (union) or multiply (intersection). 7) edge * Edges become visible/invisible in surface mode. 8) explodeFactor * Moves top-level drawn volumes by this factor from this centre. 9) globalLineWidthScale * Multiplies line widths by this factor. 10) globalMarkerScale * Multiplies marker sizes by this factor. 11) hiddenEdge * Edges become hidden/seen in wireframe or surface mode. 12) hiddenMarker * If true, closer objects hide markers. Otherwise, markers always show. 13) lightsMove * Lights move with camera or with object 14) lightsThetaPhi * Set direction from target to lights. 15) lightsVector * Set direction from target to lights. 16) lineSegmentsPerCircle * Set number of sides per circle for polygon/polyhedron drawing. 17) projection * Orthogonal or perspective projection. 18) sectionPlane * Set plane for drawing section (DCUT). 19) style * Set style of drawing - w[ireframe] or s[urface]. 20) upThetaPhi * Set up vector. 21) upVector * Set up vector. 22) viewpointThetaPhi * Set direction from target to camera. 23) viewpointVector * Set direction from target to camera. /vis/viewer/set/explodeFactor 1 # change color of a geometry /vis/geometry/set/colour PlexiGlass -1 red /vis/geometry/set/colour PMTCathode -1 blue /vis/geometry/set/colour InterfaceCookie -1 yellow /vis/geometry/set/colour AirTub -1 green /vis/geometry/set/colour PMTGlass -1 yellow # fill the geomtry uniform with color /vis/geometry/set/forceSolid PlexiGlass -1 1 /vis/geometry/set/forceSolid PMTCathode -1 1 /vis/geometry/set/forceSolid InterfaceCookie -1 1 /vis/geometry/set/forceSolid AirTub -1 1 /vis/geometry/set/forceSolid PMTGlass -1 1 /vis/viewer/set/viewpointThetaPhi -45 45 /vis/viewer/pan -5 0 cm /vis/viewer/zoom 2 ! do not plot lines that are covered by other volumes /vis/viewer/set/hiddenEdge 1 ! #Create a particle filter. Configure to pass only gammas. Then #invert to pass anything other than gammas. Set verbose printout, #and then deactivate filter /vis/filtering/trajectories/create/particleFilter pfilter /vis/filtering/trajectories/pfilter/add gamma /vis/filtering/trajectories/pfilter/invert true /vis/filtering/trajectories/pfilter/active false #Command /visibility/visibility #Guidance : #set the trajectory which creates what you want to observe # Range of parameters : 1: Primary only 2: Secondaries only # 3: e- only 4: e+ only 5: Gammas only 6: Optical photons only # 7: All secondaries without optical photons # only show electrons /visibility/visibility 3 /gun/energy 2 GeV /gun/particle proton /gun/position 0 0 -200 /gun/direction 0 0 1 /run/beamOn 1 /vis/viewer/zoom 4 /vis/viewer/refresh /gun/energy 1 GeV /gun/particle gamma /gun/direction 0 0 1 /gun/position 0 0 -200