论文标题

GDCP:geant4中灵活检测器设置的自定义软件包

GDCP: A custom package for flexible detector setups in Geant4

论文作者

Kandemir, Mustafa

论文摘要

GEANT4检测器构建模式(GDCP)是一个C ++软件包,其中包含一组实用程序类,供开发人员在Geant4应用程序的检测器构造阶段使用。这项研究的主要目的是提供一个界面,该界面可帮助用户开发高度灵活,易于理解且可维护的检测器构造法规。该软件包还包含几个辅助类别的助手类,可促进闪烁探测器中光学组件的实现。最后,已经提供了高级GEANT应用程序来演示包装的实用程序。程序摘要程序标题:GDCP CPC库链接到程序文件:许可规定:GNU通用公共许可证3编程语言:C ++外部例程/库:GEANT4问题的性质:Geant4提供了一个抽象类,G4VuserDetectorConstruction,用于整个检测器构建。这对于简单的检测器设置就足够了,但是实施单个类来构建复杂的检测器会导致代码中的复杂性。为了解决此问题,建议将实现分为更多方法或类别;但是,尚未发布标准解决方案,它完全留给用户的能力。解决方案方法:为了解决此问题,我建议在检测器构造阶段应用“建筑商设计模式”。为此,已引入并提供了开发人员的构建器设计模式的元素。关键字:G4VuserDetectorConstruction,构建器设计模式,检测器构造,组件构建器,光光子,闪烁体

Geant4 Detector Construction Pattern (GDCP) is a C++ package containing a set of utility classes for developers to utilize during the detector construction phase of a Geant4 application. The main objective of this study is to provide an interface that helps users develop a highly flexible, understandable, and maintainable detector construction code. The package also contains a couple of helper classes facilitating the implementation of optical components in scintillation detectors. Finally, an advanced Geant application has been provided to demonstrate the package's utility. Program summary Program title: GDCP CPC Library link to program files: Licensing provisions: GNU General Public License 3 Programming language: C++ External routines/libraries: Geant4 Nature of problem: Geant4 provides an abstract class, G4VUserDetectorConstruction, that is used for the whole detector construction. This is sufficient for a simple detector setup but implementing a single class for building a complex detector leads to complexity in the code. To solve this issue it is recommended to split the implementation into more methods or classes; however, there is no standard solution published yet and it is entirely left to the users' ability. Solution method: To address this issue, I propose to apply the "Builder design pattern" in the detector construction phase. For this, the elements of the Builder design pattern have been introduced and made available for developers. Keywords: G4VUserDetectorConstruction, Builder design pattern, Detector construction, Component builder, Optical photon, Scintillator

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源