logo资料库

Geant4中文手册.pdf

第1页 / 共301页
第2页 / 共301页
第3页 / 共301页
第4页 / 共301页
第5页 / 共301页
第6页 / 共301页
第7页 / 共301页
第8页 / 共301页
资料共301页,剩余部分请下载后查看
第一章 介绍
1.1 How to use this manual
第二章 开始使用Geant4—从运行简单例子开始
2.1 如何定义main程序
2.1.1 一个简单的main程序
2.1.2 G4RunManager
2.1.3 User Initialization and Action Classes【用户初始化和操作类】
2.1.4 G4UImanager and UI CommandSubmission命令提交
2.1.5 G4cout and G4cerr
2.2 How to Define a Detector Geometry【如何定义探测器几何】
2.2.1 Basic Concepts【基本概念】
2.2.2 Create a Simple Volume【创建一个简单的Volume】
2.2.3 Choose a Solid【选择一个实体】
2.2.4 Create a Logical Volume【创建一个逻辑Volume】
2.2.5 Place a Volume【放置一个volume】
2.2.6 Create a Physical Volume【创建一个物理volume】
2.2.7 Coordinate Systems and Rotations【坐标系和旋转】
2.3 How to Specify Materials in the Detector【如何在检测器中指定材料】
2.3.1 General Considerations【一般注意事项】
2.3.2 Define a Simple Material【定义一个简单的材料】
2.3.3 Define a Molecule【定义一个分子】
2.3.4 Define a Mixture by Fractional Mass【根据质量分数定义混合物】
2.3.5 Define a Material from the GEANT4 Material Database【从G4材料库中定义材料】
2.3.6 Define a Material from the Base Material【从基材定义材料】
2.3.7 Print Material Information【打印材料信息】
2.3.8 Access to GEANT4 material database【访问GEANT4材料数据库】
2.4 How to Specify Particles【如何指定粒子】
2.4.1 Particle Definition【粒子定义】
2.4.2 Range Cuts范围削减
2.5 How to Specify Physics Processes【如何指定物理过程】
2.5.1 Physics Processes【物理过程】
2.5.2 Managing Processes【管理进程】
2.5.3 Specifying Physics Processes【指定物理过程】
2.6 How to Generate a Primary Event【如何生成主事件】
2.6.1 Generating Primary Events【生成主要事件】
2.6.2 G4VPrimaryGenerator【G4主发生器】
2.7 GEANT4 General Particle Source【GEANT4通用粒子源】
2.7.1 Introduction【介绍】
2.7.2 Configuration【配置】
2.7.3 Macro Commands【宏命令】
2.7.4 Example Macro File【示例宏文件】
2.8 How to Make an Executable Program【如何制作可执行程序 .exe】
2.8.1 Using CMake to Build Applications[使用CMake构建应用程序]
2.8.2 Using Geant4Make to build Applications【使用Geant4Make构建应用程序】
2.9 How to Set Up an Interactive Session【如何设置交互式会话】
2.9.1 Introduction【简介】
2.9.2 A Short Description of Available Interfaces【可用接口的简短说明】
2.9.3 How to Select Interface in Your Applications【如何在您的应用程序中选择界面】
2.10 How to Execute a Program【如何执行程序】
2.10.1 Introduction【简介】
2.10.2 ‘Hard-coded’ Batch Mode【硬编码'批量模式】
2.10.3 Batch Mode with Macro File【批处理模式与宏文件】
2.10.4 Interactive Mode Driven by Command Lines【命令行驱动的交互模式】
2.10.5 General Case【一般情况】
2.11 How to Visualize the Detector and Events【如何可视化探测器和事件】
2.11.1 Introduction【简介】
2.11.2 Visualization Drivers【可视化驱动程序】
2.11.3 How to Incorporate Visualization Drivers into an Executable【如何将可视化驱动程序合并到可执行文件中】
2.11.4 Writing the main() Method to Include Visualization【编写包含可视化的main】
2.11.5 Sample Visualization Sessions【示例可视化会话】
2.11.6 For More Information on GEANT4 Visualization【有关GEANT4可视化的更多信息】
第三章 工具包的基础概念
3.1 Class Categories and Domains【类的功能】
3.1.1 What is a class category?【什么是功能模块?】
3.1.2 Class categories in GEANT4【在 Genat4 中的功能模块】
3.2 Global Usage Classes【全局类】
3.2.1 Signature of GEANT4 classes【Geant4 类的命名】
3.2.2 The HEPRandom module in CLHEP【CLHEP 中的 HEPRandom 模块】
3.2.3 The HEPNumerics module【HEPNumerics 模块】
3.2.4 General management classes【通用管理类】
3.3 System of units【单位系统】
3.3.1 Basic units【基本单位】
3.3.2 Input your data【输入数据】
3.3.3 Output your data【输出数据】
3.3.4 Introduce new units【引入新的单位】
3.3.5 Print the list of units【输出单位列表】
3.4 Run
3.4.1 Basic concept of Run【Run 的基本概念】
3.4.2 GEANT4 as a state machine【Geant4 状态机】
3.4.3 User's hook for state change【用于状态改变时的用户 hook】
3.4.4 Customizing the Run Manager【定制 run Manager】
3.4.5 Managing worker thread【管理工作线程】
3.5 Event【事件】
3.5.1 Representation of an event
3.5.2 Structure of an event【事件的结构】
3.5.3 Mandates of G4EventManager【G4EventManager 的要求】
3.5.4 Stacking mechanism【栈机制】
3.6 Event Generator Interface【事件发生器接口】
3.6.1 Structure of a primary event【初级事件结构】
3.6.2 Interface to a primary generator【初级事件发生器接口】
3.6.3 Event overlap using multiple generators【使用多个事件发生器的事件复合】
3.7 Event Biasing Techniques【事件偏倚技巧】
3.7.1 Scoring, Geometrical Importance Sampling and Weight Roulette【Scoring,几何重要性采样和权重轮盘赌】
3.7.2 Physics Based Biasing【基于物理学的偏置】
3.7.3 3.7.3 Adjoint/Reverse Monte Carlo【伴随/逆向蒙特卡罗】
3.7.4 Generic Biasing【通用偏置】
第四章 探测器定义和响应
第五章 径迹示踪和物理过程
5.1 径迹示踪
5.1.1 基础概念
5.1.2 获取径迹与单步信息
5.1.3 次级粒子的控制
5.1.4 用户行为
5.1.5 冗余信息输出
5.1.6 轨迹与轨迹点
5.2 物理过程
5.2.1 概述
5.2.2 电磁反应
5.2.3 强子互相作用
5.2.4 粒子衰变物理过程
第六章 USER ACTIONS用户操作行为
6.1 User Actions(用户操作)
6.2 Mandatory User Actions and Initializations(强制用户操作和初始化)
6.2.1 G4VUserDetectorConstruction
6.2.2 Physics Lists(物理列表)
6.2.3 User Action Initialization(用户操作初始化)
6.3 Optional User Actions(可选的用户操作)
6.3.1 Usage of User Actions
6.3.2 Killing Tracks in User Actions and Energy Conservation(在用户操作和能量转换中杀死tracks)
6.4 User Information Classes(用户信息类)
6.4.1 G4VUserEventInformation
6.4.2 G4VUserTrackInformation
6.4.3 G4VUserPrimaryVertexInformation and G4VUserPrimaryTrackInformation
6.4.4 G4VUserRegionInformation
6.5 Multiple User Actions(多个用户操作类)
6.5.1 Exceptions(例外情况)
第七章 控制【CONTROL】
7.1 内置命令【Built-in Commands】
7.2 用户接口-定义新命令【User Interface - Defining New Commands】
7.2.1 G4UImessenger
7.2.2 G4UIcommand和它的派生类【G4UIcommand and its derived classes】
7.2.3 一个messenger的例子【An example messenger】
7.2.4 如何控制G4cout/G4cerr的输出【How to control the output of G4cout/G4cerr】
第八章 可视化
第九章 ANALYSIS【分析】
9.1 9.1 Introduction【简介】
9.2 9.2 Analysis Manager Classes分析管理器类
9.2.1 9.2.1 Analysis Manager分析管理器
9.2.2 9.2.2 Files handling文件处理
9.2.3 9.2.3 Histograms
9.2.4 9.2.4 Profiles
9.2.5 9.2.5 Plotting【画图】
9.2.6 9.2.6 Ntuples
9.2.7 9.2.7 Parallel Processing
9.2.8 9.2.8 Coexistence of Several Managers
9.2.9 9.2.9 Supported Features and Limitations
9.3 9.3 Analysis Reader Classes
9.3.1 9.3.1 Analysis Reader
9.3.2 9.3.2 File handling
9.3.3 9.3.3 Histograms and Profiles
9.3.4 9.3.4 Ntuples
9.4 9.4 Accumulables
9.4.1 9.4.1 G4Accumulable
9.4.2 9.4.2 User defined accumulables
9.5 9.5 g4tools
9.5.1 9.5.2 User API
第十章 EXAMPLES【例子】
10.1 Introduction【简介】
10.2 Basic Examples【基本示例】
10.2.1 BasEc ixalpmes Summary【基本示例摘要】
10.2.2 Basic Examples Macros【基本示例宏】
10.2.3 Multi-threading【多线程】
10.2.4 Example B1
10.2.5 Example B2
10.2.6 Example B3
10.2.7 Example B4
10.2.8 Example B5
10.3 Extended Examples【扩展示例】
10.3.1 Extended Example Summary
10.4 Advanced Examples【高级示例】
10.5 Novice Examples【新手示例】
第十一章 附录
第十二章 STATUS OF THIS DOCUMENT【本文件的状态】
参考文献
GEANT4 应用程序开发手 册中文版 BookForAppliDev (10.4 中文版) GEANT4 手册翻译小组 译著 自由软件出版社· 中国
本 手 册 的 范 围 应用程序开发人员用户指南是读者在了解GEANT4 或开发基于GEANT4 的探测器模拟程 序时应该参考的第一本手册。本手册旨在: • 向 GEANT4 面向对象的探测器模拟工具包介绍首次使用的用户 • 提供可用工具的描述以及如何使用它们 • 提供开发和运行真实实验中可能使用的模拟应用所需的实用信息 本手册旨在对工具包进行概述,而不是对其进行详尽的处理。除非对特定工具的描述要 求,否则不包括相关物理讨论。物理参考手册中可以找到关于GEANT4 中物理的详细讨论。有 关 GEANT4 类的设计和功能的详细信息,请参阅工具包开发人员用户指南。 GEANT4 是一款全新的用 C++ 语言编写的探测器仿真工具包。假定读者具有使用 C ++ 的 面向对象编程的基本知识。不需要知道更早的 FORTRAN 版本的 Geant。尽管 GEANT4 是一个 相当复杂的软件系统,但为了开始开发探测器模拟应用程序,只需要了解其中相对较小的一 部分。
目 录 第一章 介绍 1.1 How to use this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 第二章 开始使用 Geant4—从运行简单例子开始 . . . . 2.1 如何定义 main 程序 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.1 一个简单的 main 程序 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.2 G4RunManager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.3 User Initialization and Action Classes【用户初始化和操作类】 . . . . . . 2.1.4 G4UImanager and UI CommandSubmission 命令提交 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.5 G4cout and G4cerr . 2.2 How to Define a Detector Geometry【如何定义探测器几何】 . . . . . . . . . . . 2.2.1 Basic Concepts【基本概念】 . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 Create a Simple Volume【创建一个简单的 Volume】 . . . . . . . . . . . . 2.2.3 Choose a Solid【选择一个实体】 . . . . . . . . . . . . . . . . . . . . . . 2.2.4 Create a Logical Volume【创建一个逻辑 Volume】 . . . . . . . . . . . . . 2.2.5 Place a Volume【放置一个 volume】 . . . . . . . . . . . . . . . . . . . . . 2.2.6 Create a Physical Volume【创建一个物理 volume】 . . . . . . . . . . . . . 2.2.7 Coordinate Systems and Rotations【坐标系和旋转】 . . . . . . . . . . . . 2.3 How to Specify Materials in the Detector【如何在检测器中指定材料】 . . . . . . 2.3.1 General Considerations【一般注意事项】 . . . . . . . . . . . . . . . . . . 2.3.2 Define a Simple Material【定义一个简单的材料】 . . . . . . . . . . . . . 2.3.3 Define a Molecule【定义一个分子】 . . . . . . . . . . . . . . . . . . . . . 2.3.4 Define a Mixture by Fractional Mass【根据质量分数定义混合物】 . . . . 2.3.5 Define a Material from the GEANT4 Material Database【从 G4 材料库中定 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.6 Define a Material from the Base Material【从基材定义材料】 . . . . . . . 2.3.7 Print Material Information【打印材料信息】 . . . . . . . . . . . . . . . . 2.3.8 Access to GEANT4 material database【访问 GEANT4 材料数据库】 . . . 2.4 How to Specify Particles【如何指定粒子】 . . . . . . . . . . . . . . . . . . . . . 义材料】 . . . . . . 1 1 3 3 3 4 6 7 8 8 8 9 9 10 10 10 11 11 11 12 12 13 13 13 14 14 14
. II . 目 录 15 Particle Definition【粒子定义】 . . . . . . . . . . . . . . . . . . . . . . . 2.4.1 17 2.4.2 Range Cuts 范围削减 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.5 How to Specify Physics Processes【如何指定物理过程】 . . . . . . . . . . . . . . 18 2.5.1 Physics Processes【物理过程】 . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.2 Managing Processes【管理进程】 . . . . . . . . . . . . . . . . . . . . . . 19 2.5.3 Specifying Physics Processes【指定物理过程】 . . . . . . . . . . . . . . . 20 2.6 How to Generate a Primary Event【如何生成主事件】 . . . . . . . . . . . . . . . 21 2.6.1 Generating Primary Events【生成主要事件】 . . . . . . . . . . . . . . . . 23 2.6.2 G4VPrimaryGenerator【G4 主发生器】 . . . . . . . . . . . . . . . . . . . 24 2.7 GEANT4 General Particle Source【GEANT4 通用粒子源】 . . . . . . . . . . . . . 24 Introduction【介绍】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7.1 24 2.7.2 Configuration【配置】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.7.3 Macro Commands【宏命令】 . . . . . . . . . . . . . . . . . . . . . . . . . 33 2.7.4 Example Macro File【示例宏文件】 . . . . . . . . . . . . . . . . . . . . . 34 2.8 How to Make an Executable Program【如何制作可执行程序.exe】 . . . . . . . . 35 2.8.1 Using CMake to Build Applications[使用 CMake 构建应用程序] . . . . . . 2.8.2 Using Geant4Make to build Applications【使用 Geant4Make 构建应用程序】 45 48 48 49 2.9 How to Set Up an Interactive Session【如何设置交互式会话】 . . . . . . . . . . . 2.9.1 Introduction【简介】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.9.2 A Short Description of Available Interfaces【可用接口的简短说明】 . . . 2.9.3 How to Select Interface in Your Applications【如何在您的应用程序中选择 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.10 How to Execute a Program【如何执行程序】 . . . . . . . . . . . . . . . . . . . . 2.10.1 Introduction【简介】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.10.2 ‘Hard-coded’Batch Mode【硬编码’ 批量模式】 . . . . . . . . . . . . . 2.10.3 Batch Mode with Macro File【批处理模式与宏文件】 . . . . . . . . . . . 2.10.4 Interactive Mode Driven by Command Lines【命令行驱动的交互模式】 . 2.10.5 General Case【一般情况】 . . . . . . . . . . . . . . . . . . . . . . . . . . 2.11 How to Visualize the Detector and Events【如何可视化探测器和事件】 . . . . . . 2.11.1 Introduction【简介】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.11.2 Visualization Drivers【可视化驱动程序】 . . . . . . . . . . . . . . . . . . 2.11.3 How to Incorporate Visualization Drivers into an Executable【如何将可视 化驱动程序合并到可执行文件中】 . . . . . . . . . . . . . . . . . . . . . 2.11.4 Writing the main() Method to Include Visualization【编写包含可视化的 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.11.5 Sample Visualization Sessions【示例可视化会话】 . . . . . . . . . . . . . 51 52 52 53 53 55 56 59 59 59 60 61 62 界面】 . . . main】 . . . . . . . . . . .
目 录 2.11.6 For More Information on GEANT4 Visualization【有关 GEANT4 可视化的 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 更多信息】 . . . . . III . 62 第三章 工具包的基础概念 3.1 Class Categories and Domains【类的功能】 . . . . . . . . . . . . . . . . . . . . . 3.1.1 What is a class category?【什么是功能模块?】 . . . . . . . . . . . . . . . 3.1.2 Class categories in GEANT4【在 Genat4 中的功能模块】 . . . . . . . . . 3.2 Global Usage Classes【全局类】 . . . . . . . . . . . . . . . . . . . . . . . . . . . Signature of GEANT4 classes【Geant4 类的命名】 . . . . . . . . . . . . . 3.2.1 3.2.2 The HEPRandom module in CLHEP【CLHEP 中的 HEPRandom 模块】 . 3.2.3 The HEPNumerics module【HEPNumerics 模块】 . . . . . . . . . . . . . 3.2.4 General management classes【通用管理类】 . . . . . . . . . . . . . . . . 3.3 System of units【单位系统】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 Basic units【基本单位】 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.2 Input your data【输入数据】 . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Output your data【输出数据】 . . . . . . . . . . . . . . . . . . . . . . . . 3.3.4 Introduce new units【引入新的单位】 . . . . . . . . . . . . . . . . . . . . Print the list of units【输出单位列表】 . . . . . . . . . . . . . . . . . . . . 3.3.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.1 Basic concept of Run【Run 的基本概念】 . . . . . . . . . . . . . . . . . . 3.4.2 GEANT4 as a state machine【Geant4 状态机】 . . . . . . . . . . . . . . . 3.4.3 User’s hook for state change【用于状态改变时的用户 hook】 . . . . . . . 3.4.4 Customizing the Run Manager【定制 run Manager】 . . . . . . . . . . . . 3.4.5 Managing worker thread【管理工作线程】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.5.1 Representation of an event 3.5.2 Structure of an event【事件的结构】 . . . . . . . . . . . . . . . . . . . . . 3.5.3 Mandates of G4EventManager【G4EventManager 的要求】 . . . . . . . . 3.5.4 63 63 63 64 67 68 69 77 79 82 82 83 84 84 85 85 85 90 92 93 97 98 98 98 99 Stacking mechanism【栈机制】 . . . . . . . . . . . . . . . . . . . . . . . 100 3.6 Event Generator Interface【事件发生器接口】 . . . . . . . . . . . . . . . . . . . . 101 Structure of a primary event【初级事件结构】 . . . . . . . . . . . . . . . 101 Interface to a primary generator【初级事件发生器接口】 . . . . . . . . . . 103 3.6.1 3.6.2 3.6.3 Event overlap using multiple generators【使用多个事件发生器的事件复 3.5 Event【事件】 . . 3.4 Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 3.7 Event Biasing Techniques【事件偏倚技巧】 . . . . . . . . . . . . . . . . . . . . . 106 合】 . . . . . . . . 3.7.1 3.7.2 Scoring, Geometrical Importance Sampling and Weight Roulette【Scoring, 几何重要性采样和权重轮盘赌】 . . . . . . . . . . . . . . . . . . . . . . 106 Physics Based Biasing【基于物理学的偏置】 . . . . . . . . . . . . . . . . 121
. IV . 目 录 3.7.3 3.7.3 Adjoint/Reverse Monte Carlo【伴随/逆向蒙特卡罗】 . . . . . . . . . 126 3.7.4 Generic Biasing【通用偏置】 . . . . . . . . . . . . . . . . . . . . . . . . . 136 第四章 探测器定义和响应 152 . . . . . . . . . 5.1 径迹示踪 . . 153 第五章 径迹示踪和物理过程 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 . 5.1.1 基础概念 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 . 5.1.2 获取径迹与单步信息 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 5.1.3 次级粒子的控制 . . . 5.1.4 用户行为 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 . 5.1.5 冗余信息输出 . . . 5.1.6 轨迹与轨迹点 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 . . 5.2.1 概述 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 5.2.2 电磁反应 . . 5.2.3 强子互相作用 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 . 5.2.4 粒子衰变物理过程 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 5.2 物理过程 . . . . . . . . . . . . . . . . 第六章 USER ACTIONS 用户操作行为 197 6.1 User Actions(用户操作) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 6.2 Mandatory User Actions and Initializations(强制用户操作和初始化) . . . . . . 197 6.2.1 G4VUserDetectorConstruction . . . . . . . . . . . . . . . . . . . . . . . . . 197 6.2.2 Physics Lists(物理列表) . . . . . . . . . . . . . . . . . . . . . . . . . . 198 6.2.3 User Action Initialization(用户操作初始化) . . . . . . . . . . . . . . . . 202 6.3 Optional User Actions(可选的用户操作) . . . . . . . . . . . . . . . . . . . . . 203 6.3.1 Usage of User Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 6.3.2 Killing Tracks in User Actions and Energy Conservation(在用户操作和能 量转换中杀死 tracks) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 6.4 User Information Classes(用户信息类) . . . . . . . . . . . . . . . . . . . . . . . 207 6.4.1 G4VUserEventInformation . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 6.4.2 G4VUserTrackInformation . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 6.4.3 G4VUserPrimaryVertexInformation and G4VUserPrimaryTrackInformation 208 6.4.4 G4VUserRegionInformation . . . . . . . . . . . . . . . . . . . . . . . . . . 208 6.5 Multiple User Actions(多个用户操作类) . . . . . . . . . . . . . . . . . . . . . . 209 6.5.1 Exceptions(例外情况) . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
目 录 . V . 第七章 控制【CONTROL】 211 7.1 内置命令【Built-in Commands】 . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 7.2 用户接口-定义新命令【User Interface - Defining New Commands】 . . . . . . . . 211 7.2.1 G4UImessenger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 7.2.2 G4UIcommand 和它的派生类【G4UIcommand and its derived classes】 . 213 7.2.3 一个 messenger 的例子【An example messenger】 . . . . . . . . . . . . . 217 7.2.4 如何控制 G4cout/G4cerr 的输出【How to control the output of G4cout/ . G4cerr】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 第八章 可视化 224 第九章 ANALYSIS【分析】 9.1 9.2 9.3 9.4 9.5 . . 225 9.1 Introduction【简介】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 9.2 Analysis Manager Classes 分析管理器类 . . . . . . . . . . . . . . . . . . . . . 226 9.2.1 9.2.1 Analysis Manager 分析管理器 . . . . . . . . . . . . . . . . . . . . . . 227 9.2.2 Files handling 文件处理 . . . . . . . . . . . . . . . . . . . . . . . . . 228 9.2.2 9.2.3 9.2.3 Histograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 9.2.4 Profiles . . 9.2.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 . 9.2.5 Plotting【画图】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 9.2.5 9.2.6 9.2.6 Ntuples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 9.2.7 Parallel Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 9.2.7 9.2.8 Coexistence of Several Managers 9.2.8 . . . . . . . . . . . . . . . . . . . . 250 9.2.9 9.2.9 Supported Features and Limitations . . . . . . . . . . . . . . . . . . . 251 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 9.3 Analysis Reader Classes 9.3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 9.3.2 9.3.3 . . . . . . . . . . . . . . . . . . . . . . . . . 254 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 9.3.4 9.4 Accumulables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 9.4.1 G4Accumulable . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 9.4.1 9.4.2 User defined accumulables . . . . . . . . . . . . . . . . . . . . . . . . 260 9.4.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 9.5 g4tools . . 9.5.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 9.3.1 Analysis Reader 9.3.2 File handling . 9.3.3 Histograms and Profiles 9.3.4 Ntuples . . . . 9.5.2 User API . . . . . . . . . . . . . . 267 第十章 EXAMPLES【例子】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 10.1 Introduction【简介】 . . 10.2 Basic Examples【基本示例】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 10.2.1 BasEc ixalpmes Summary【基本示例摘要】 . . . . . . . . . . . . . . . . 267 . .
. VI . 目 录 10.2.2 Basic Examples Macros【基本示例宏】 . . . . . . . . . . . . . . . . . . . 269 10.2.3 Multi-threading【多线程】 . . . . . . . . . . . . . . . . . . . . . . . . . . 272 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 10.2.4 Example B1 . 10.2.5 Example B2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 10.2.6 Example B3 . 10.2.7 Example B4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 10.2.8 Example B5 . 10.3 Extended Examples【扩展示例】 . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 10.3.1 Extended Example Summary . . . . . . . . . . . . . . . . . . . . . . . . . . 279 10.4 Advanced Examples【高级示例】 . . . . . . . . . . . . . . . . . . . . . . . . . . 286 10.5 Novice Examples【新手示例】 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 . . . . . . . . . . . . . . . . . . . . 第十一章 附录 第十二章 STATUS OF THIS DOCUMENT【本文件的状态】 参考文献 289 290 291
分享到:
收藏