第一范文网 - 专业文章范例文档资料分享平台

Geant4入门指导与安装

来源:用户分享 时间:2025/5/16 1:30:44 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

内部资料 Geant4安装和入门

26) /vis/viewer/set/viewpointVector

说明: /vis/viewer/set/viewpointVector [] [] [] 设定观察方向. 参数: x 参数类型: d 可/否省略: 可 默认值: 0

参数: 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

搜索更多关于: Geant4入门指导与安装 的文档
Geant4入门指导与安装.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c5fxwi6s5pv2r4yi9c23h_8.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top