内部资料 Geant4安装和入门
26) /vis/viewer/set/viewpointVector
说明: /vis/viewer/set/viewpointVector [
参数: y 参数类型: d 可/否省略: 可 默认值: 0 参数: z 参数类型: d 可/否省略: 可 默认值: 1
3. 宏文件
如下例为典型的宏文件:
//////////////////////////////////////////////////////////////////////////////////// #
# Macro file for the initialization phase of \ # when runing in interactive mode #
# Sets some default verbose #
/control/verbose 2 /run/verbose 2 #
# create empty scene #
/vis/scene/create #
# Create a scene handler for a specific graphics system # (Edit the next line(s) to choose another graphic system)
29 Geant4安装和入门 内部资料 # #
/vis/open OGLIX #/vis/open HepRepFile #/vis/open DAWNFILE #/vis/open RayTracer # draw scene #
/vis/viewer/set/viewpointThetaPhi 40 40 deg #/vis/viewer/zoomTo 16 /vis/viewer/set/style wireframe /vis/viewer/flush #
# for drawing the tracks
# (if too many tracks cause core dump => storeTrajectory 0) /tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate /vis/scene/add/trajectories /vis/scene/add/hits #/gun/particle proton /gun/particle neutron #/tracking/verbose 2 #/gun/number 1 /gun/energy 14 MeV #/run/beamOn 100
//////////////////////////////////////////////////////////////////////////////////// 注: #号后面的文字为注释, 不影响程序运行.
30