Import Geant4 11.4.0 source tree
This commit is contained in:
@@ -1,84 +1,5 @@
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup the project
|
||||
#---Adding all polarisation examples subdirectories explicitly
|
||||
|
||||
cmake_minimum_required(VERSION 3.16...3.27)
|
||||
project(${common_prefix}common)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Find Geant4 package, activating all available UI and Vis drivers by default
|
||||
# You can set WITH_GEANT4_UIVIS to OFF via the command line or ccmake/cmake-gui
|
||||
# to build a batch mode only executable
|
||||
#
|
||||
option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" ON)
|
||||
if(WITH_GEANT4_UIVIS)
|
||||
find_package(Geant4 REQUIRED ui_all vis_all)
|
||||
else()
|
||||
find_package(Geant4 REQUIRED)
|
||||
endif()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Option to build examples in addition to test
|
||||
#
|
||||
option(COMMON_EXAMPLES "Activate building example executables" ON)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup Geant4 include directories and compile definitions
|
||||
#
|
||||
include(${Geant4_USE_FILE})
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Locate sources and headers for this project
|
||||
#
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include
|
||||
${Geant4_INCLUDE_DIR})
|
||||
file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
|
||||
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the library
|
||||
#
|
||||
add_library(${common_prefix}common ${sources} ${headers})
|
||||
target_link_libraries(${common_prefix}common ${Geant4_LIBRARIES} )
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the test executable, and link it to the Geant4 libraries and common library
|
||||
#
|
||||
add_executable(${common_prefix}testCommon testCommon.cc )
|
||||
target_link_libraries(${common_prefix}testCommon ${common_prefix}common ${Geant4_LIBRARIES})
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Optionally, add the example executables, and link it to the Geant4 libraries and common library
|
||||
#
|
||||
if(COMMON_EXAMPLES)
|
||||
add_executable(exampleCommon exampleCommon.cc )
|
||||
target_link_libraries(exampleCommon ${common_prefix}common ${Geant4_LIBRARIES})
|
||||
add_executable(exampleCommonNoVis exampleCommonNoVis.cc )
|
||||
target_link_libraries(exampleCommonNoVis ${common_prefix}common ${Geant4_LIBRARIES})
|
||||
endif(COMMON_EXAMPLES)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Copy all scripts to the build directory, i.e. the directory in which we
|
||||
# build detectorConstruction. This is so that we can run the executable directly because it
|
||||
# relies on these scripts being in the current working directory.
|
||||
#
|
||||
set(detectorConstruction_SCRIPTS
|
||||
init.mac init_vis.mac run.mac vis.mac
|
||||
)
|
||||
|
||||
foreach(_script ${detectorConstruction_SCRIPTS})
|
||||
configure_file(
|
||||
${PROJECT_SOURCE_DIR}/${_script}
|
||||
${PROJECT_BINARY_DIR}/${_script}
|
||||
COPYONLY
|
||||
)
|
||||
endforeach()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
|
||||
# and the library to 'lib' directory under CMAKE_INSTALL_PREFIX
|
||||
#
|
||||
install(TARGETS ${common_prefix}testCommon DESTINATION bin)
|
||||
if (COMMON_EXAMPLES)
|
||||
install(TARGETS exampleCommon DESTINATION bin)
|
||||
install(TARGETS exampleCommonNoVis DESTINATION bin)
|
||||
endif(COMMON_EXAMPLES)
|
||||
install(TARGETS ${common_prefix}common DESTINATION lib)
|
||||
add_subdirectory(exCommon)
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for common repository examples module.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
name := common
|
||||
|
||||
ifndef G4INSTALL
|
||||
G4INSTALL = ../../..
|
||||
endif
|
||||
|
||||
include $(G4INSTALL)/config/architecture.gmk
|
||||
|
||||
CPPFLAGS += -I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/global/HEPRandom/include \
|
||||
-I$(G4BASE)/global/HEPNumerics/include \
|
||||
-I$(G4BASE)/global/HEPGeometry/include \
|
||||
-I$(G4BASE)/geometry/management/include \
|
||||
-I$(G4BASE)/track/include \
|
||||
-I$(G4BASE)/tracking/include \
|
||||
-I$(G4BASE)/processes/management/include \
|
||||
-I$(G4BASE)/processes/cuts/include \
|
||||
-I$(G4BASE)/processes/electromagnetic/utils/include \
|
||||
-I$(G4BASE)/processes/electromagnetic/pii/include \
|
||||
-I$(G4BASE)/particles/management/include \
|
||||
-I$(G4BASE)/particles/bosons/include \
|
||||
-I$(G4BASE)/particles/leptons/include \
|
||||
-I$(G4BASE)/particles/hadrons/barions/include \
|
||||
-I$(G4BASE)/particles/hadrons/mesons/include \
|
||||
-I$(G4BASE)/particles/hadrons/ions/include \
|
||||
-I$(G4BASE)/intercoms/include \
|
||||
-I$(G4BASE)/materials/include \
|
||||
-I$(G4BASE)/event/include \
|
||||
-I$(G4BASE)/run/include
|
||||
CPPFLAGS += -I$(G4INCLUDE)
|
||||
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
@@ -5,112 +5,6 @@ which **must** added in reverse chronological order (newest at the top). It must
|
||||
be used as a substitute for writing good git commit messages!
|
||||
|
||||
|
||||
## 2023-11-15 I. Hrivnacova (excommon-V11-01-02)
|
||||
- Updated vis.mac macros:
|
||||
- Changed "/vis/open XYZ [600x600-0+0]" to "/vis/open" to allow run-time choices
|
||||
and simplified comments.
|
||||
|
||||
## 2023-11-14 I. Hrivnacova (excommon-V11-01-01)
|
||||
- Fixes for Doxygen:
|
||||
Move class description comments after namespace
|
||||
|
||||
## 2023-11-09 I. Hrivnacova (excommon-V11-01-00)
|
||||
- Coding guidelines - document macros in README files
|
||||
|
||||
## 2022-11-09 I. Hrivnacova (excommon-V11-00-02)
|
||||
- Fixed file descriptions in the top directory
|
||||
|
||||
## 2022-11-07 I. Hrivnacova (excommon-V11-00-01)
|
||||
New coding guidelines, added tests:
|
||||
- Added exampleCommon.cc and exampleCommonNoVis.cc
|
||||
- Added namespace Common
|
||||
- Override keywords
|
||||
- Data members initialization in .hh
|
||||
- Updated README files
|
||||
- Removed trailing whitespaces
|
||||
|
||||
## 2021-12-10 Ben Morgan (excommon-V11-00-00)
|
||||
- Change to new Markdown History format
|
||||
|
||||
---
|
||||
|
||||
# History entries prior to 11.0
|
||||
|
||||
24/05/21 B. Morgan (excommon-V10-07-00)
|
||||
- Bump required CMake version range to 3.12...3.20, matching core Geant4
|
||||
|
||||
03/11/20 B. Morgan (excommon-V10-06-00)
|
||||
- Support same CMake version range as core Geant4
|
||||
|
||||
29/09/17 I. Hrivnacova (excommon-V10-03-00,01)
|
||||
- Removed generic class names prefix (ExG4) and introduced a meaningful one
|
||||
when appropriate
|
||||
- Removed event and run action classes which are now obsolete
|
||||
- Replaced explicit messengers with use of G4GenericMessenger
|
||||
- C++11 (nullptr, auto)
|
||||
|
||||
20/07/16 I. Hrivnacova (excommon-V10-02-01)
|
||||
- Coding guidelines (redundant empty lines)
|
||||
|
||||
04/07/16 I. Hrivnacova (excommon-V10-02-00)
|
||||
- Fix for Doxygen documentation
|
||||
|
||||
09/06/15 I. Hrivnacova (excommon-V10-01-00)
|
||||
- Added a client-specific prefix to common library and test
|
||||
to avoid name clashes when building all extended examples at once
|
||||
|
||||
06/11/14 I. Hrivnacova (excommon-V10-00-06)
|
||||
- Fixed CMakeLists.txt for removal of analysis directory
|
||||
|
||||
05/11/14 I. Hrivnacova (excommon-V10-00-05)
|
||||
- Restoring back GNUmakefile (lost with previous update)
|
||||
|
||||
05/11/14 I. Hrivnacova (excommon-V10-00-04)
|
||||
- Moved analysis subdirectory in extended/analysis/AnaEx01/hbook,
|
||||
as it is not used anywhere else
|
||||
|
||||
05/11/14 I. Hrivnacova (excommon-V10-00-03)
|
||||
- Removed sub-directories with user classes and scripts (now obsolete)
|
||||
|
||||
04/11/14 I. Hrivnacova (excommon-V10-00-02)
|
||||
- Added GNUmakefile in top directory
|
||||
|
||||
04/11/14 I. Hrivnacova (excommon-V10-00-01)
|
||||
- Modifications to facilitate use of common directory via svn:externals:
|
||||
merging user classes in the top directoy (include and src),
|
||||
added testCommon.cc for all classes altogether and
|
||||
added building common library
|
||||
|
||||
28/05/14 I. Hrivnacova (excommon-V10-00-00)
|
||||
- Removed fPrintModulo from ExG4EventAction01
|
||||
and fSetPrintModuloCmd from ExG4EventAction01Messenger,
|
||||
now obsolete.
|
||||
- Fixed long lines, separators in userActions classes
|
||||
|
||||
28/02/13 I. Hrivnacova (excommon-V09-06-00)
|
||||
- When building materials with NistManager
|
||||
do not set fromIsotopes argument (which was set to false),
|
||||
as since 9.6 all materials have to be built from isotopes.
|
||||
Thanks to V. Ivantchenko for pointing at this.
|
||||
|
||||
26/09/2012 I. Hrivnacova (excommon-V09-05-02)
|
||||
- Added/updated CMakeLists.txt files:
|
||||
adding copying macros, install target, comment lines
|
||||
and HBOOK external package in analysis
|
||||
- Added explicit includes of G4SystemOfUnits.hh and G4PhysicalConstants.hh
|
||||
- Replaced tabulators with space characters
|
||||
- Updated script for generating CMakeLists.txt files
|
||||
|
||||
19/07/2012 I. Hrivnacova (excommon-V09-05-01)
|
||||
- Fix in the scripts (copying files from shared with an extension)
|
||||
|
||||
05/06/2012 I. Hrivnacova (excommon-V09-05-00)
|
||||
- Updated scripts for copying shared files; the shared files are now
|
||||
defined in the SharedFilesList.txt file
|
||||
|
||||
23/11/2011 I. Hrivnacova (excommon-V09-04-01)
|
||||
- Addded physicsList directory with a physics list with genatino
|
||||
and charged geantino
|
||||
|
||||
15/11/2011 I. Hrivnacova (excommon-V09-04-00)
|
||||
- First version of the common classes for the extended examples.
|
||||
## 2025-07-28 I. Hrivnacova (common-V11-03-00)
|
||||
- Introduced 'common' category to avoid having the 'common'
|
||||
example directly in 'extended' category
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
|
||||
=========================================================
|
||||
|
||||
Common Classes for Extended Examples
|
||||
-------------------------------------
|
||||
|
||||
This example includes a set of classes independent on each other which
|
||||
can be reused in "feature" examples demonstrating just a particular feature
|
||||
or users applications.
|
||||
|
||||
It provides the following sets of classes:
|
||||
|
||||
- Detector construction classes
|
||||
- two simple detector construction classes with a messenger
|
||||
|
||||
- Physics list classes
|
||||
- GeantinoPhysicsList - physics list with geantino and chargedgeantino only
|
||||
|
||||
- Primary generator classes
|
||||
- two simple primary generator classes (with G4ParticleGun and
|
||||
G4ParticleGeneralSource)
|
||||
|
||||
These classes can be tested with the following programs:
|
||||
- testCommon.cc - only instantiates all classes
|
||||
- exampleCommonNoVis.cc - Geant4 application without visualization, that can be run
|
||||
both interactively or in batch (with the init.mac or run.mac macro)
|
||||
- exampleCommonNoVis.cc - Geant4 application with visualization, that can be run
|
||||
both interactively or in batch (with the init_vis.mac or run.mac macro)
|
||||
|
||||
Building examples programs can be disabled with the CMake option: -DEXAMPLES_COMMON=OFF.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
\page Examples_common Category "common"
|
||||
|
||||
This directory provides a set of classes independent on each other which
|
||||
can be reused in "feature" examples demonstrating just a particular feature
|
||||
or users applications.
|
||||
|
||||
- \ref ExampleexCommon
|
||||
|
||||
All these classes are provided within one example including several test programs.
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
**************************************************************
|
||||
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
|
||||
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
|
||||
Copyright : Geant4 Collaboration
|
||||
References : NIM A 506 (2003), 250-303
|
||||
: IEEE-TNS 53 (2006), 270-278
|
||||
@@ -26,7 +26,6 @@ You have successfully registered the following graphics systems.
|
||||
Registered graphics systems are:
|
||||
ASCIITree (ATree)
|
||||
DAWNFILE (DAWNFILE)
|
||||
G4HepRepFile (HepRepFile)
|
||||
RayTracer (RT)
|
||||
VRML2FILE (VRML2FILE)
|
||||
gMocrenFile (gMocrenFile)
|
||||
@@ -39,13 +38,12 @@ Registered graphics systems are:
|
||||
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
|
||||
RayTracerX (RTX)
|
||||
RayTracerQt (RTQt)
|
||||
Qt3D (Qt3D)
|
||||
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
|
||||
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
|
||||
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
|
||||
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
|
||||
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
|
||||
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
|
||||
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
|
||||
You may choose a graphics system (driver) with a parameter of
|
||||
the command "/vis/open" or "/vis/sceneHandler/create",
|
||||
or you may omit the driver parameter and choose at run time:
|
||||
@@ -118,7 +116,7 @@ Index : 0 used in the geometry : Yes
|
||||
|
||||
Start closing geometry.
|
||||
--------------------------------------------------------------------------------
|
||||
G4GeometryManager::ReportVoxelStats -- Voxel Statistics
|
||||
G4VoxelisationHelper::ReportVoxelStats -- Voxel Statistics
|
||||
|
||||
Total memory consumed for geometry optimisation: 0 kByte
|
||||
Total CPU time elapsed for geometry optimisation: 0 seconds
|
||||
@@ -128,13 +126,13 @@ G4GeometryManager::ReportVoxelStats -- Voxel Statistics
|
||||
Run terminated.
|
||||
Run Summary
|
||||
Number of events processed : 10
|
||||
User=0.000000s Real=0.000177s Sys=0.000000s
|
||||
User=0.000000s Real=0.000215s Sys=0.000000s
|
||||
Graphics systems deleted.
|
||||
Visualization Manager deleting...
|
||||
G4 kernel has come to Quit state.
|
||||
Deleting G4Run (id:0)
|
||||
UserDetectorConstruction deleted 0x1e38090
|
||||
UserPhysicsList deleted 0x2098e70
|
||||
UserDetectorConstruction deleted 0xdbbdd0
|
||||
UserPhysicsList deleted 0x101d180
|
||||
UserActionInitialization deleted 0
|
||||
UserWorkerInitialization deleted 0
|
||||
UserWorkerThreadInitialization deleted 0
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup the project
|
||||
cmake_minimum_required(VERSION 3.16...3.27)
|
||||
project(${common_prefix}common)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Find Geant4 package, activating all available UI and Vis drivers by default
|
||||
# You can set WITH_GEANT4_UIVIS to OFF via the command line or ccmake/cmake-gui
|
||||
# to build a batch mode only executable
|
||||
#
|
||||
option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" ON)
|
||||
if(WITH_GEANT4_UIVIS)
|
||||
find_package(Geant4 REQUIRED ui_all vis_all)
|
||||
else()
|
||||
find_package(Geant4 REQUIRED)
|
||||
endif()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Option to build examples in addition to test
|
||||
#
|
||||
option(COMMON_EXAMPLES "Activate building example executables" ON)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup Geant4 include directories and compile definitions
|
||||
#
|
||||
include(${Geant4_USE_FILE})
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Locate sources and headers for this project
|
||||
#
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include
|
||||
${Geant4_INCLUDE_DIR})
|
||||
file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
|
||||
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the library
|
||||
#
|
||||
add_library(${common_prefix}common ${sources} ${headers})
|
||||
target_link_libraries(${common_prefix}common ${Geant4_LIBRARIES} )
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the test executable, and link it to the Geant4 libraries and common library
|
||||
#
|
||||
add_executable(${common_prefix}testCommon testCommon.cc )
|
||||
target_link_libraries(${common_prefix}testCommon ${common_prefix}common ${Geant4_LIBRARIES})
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Optionally, add the example executables, and link it to the Geant4 libraries and common library
|
||||
#
|
||||
if(COMMON_EXAMPLES)
|
||||
add_executable(exCommon exCommon.cc )
|
||||
target_link_libraries(exCommon ${common_prefix}common ${Geant4_LIBRARIES})
|
||||
add_executable(exCommonNoVis exCommonNoVis.cc )
|
||||
target_link_libraries(exCommonNoVis ${common_prefix}common ${Geant4_LIBRARIES})
|
||||
endif(COMMON_EXAMPLES)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Copy all scripts to the build directory, i.e. the directory in which we
|
||||
# build detectorConstruction. This is so that we can run the executable directly because it
|
||||
# relies on these scripts being in the current working directory.
|
||||
#
|
||||
set(detectorConstruction_SCRIPTS
|
||||
init.mac init_vis.mac run.mac vis.mac
|
||||
)
|
||||
|
||||
foreach(_script ${detectorConstruction_SCRIPTS})
|
||||
configure_file(
|
||||
${PROJECT_SOURCE_DIR}/${_script}
|
||||
${PROJECT_BINARY_DIR}/${_script}
|
||||
COPYONLY
|
||||
)
|
||||
endforeach()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
|
||||
# and the library to 'lib' directory under CMAKE_INSTALL_PREFIX
|
||||
#
|
||||
install(TARGETS ${common_prefix}testCommon DESTINATION bin)
|
||||
if (COMMON_EXAMPLES)
|
||||
install(TARGETS exCommon DESTINATION bin)
|
||||
install(TARGETS exCommonNoVis DESTINATION bin)
|
||||
endif(COMMON_EXAMPLES)
|
||||
install(TARGETS ${common_prefix}common DESTINATION lib)
|
||||
@@ -0,0 +1,120 @@
|
||||
# Example common History
|
||||
|
||||
See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
|
||||
which **must** added in reverse chronological order (newest at the top). It must **not**
|
||||
be used as a substitute for writing good git commit messages!
|
||||
|
||||
|
||||
## 2025-07-28 I. Hrivnacova (common-V11-03-00)
|
||||
- Moved the example as 'exCommon' in the new 'common' directory and renamed the executables
|
||||
from exampleCommon* in exCommon
|
||||
|
||||
## 2023-11-15 I. Hrivnacova (excommon-V11-01-02)
|
||||
- Updated vis.mac macros:
|
||||
- Changed "/vis/open XYZ [600x600-0+0]" to "/vis/open" to allow run-time choices
|
||||
and simplified comments.
|
||||
|
||||
## 2023-11-14 I. Hrivnacova (excommon-V11-01-01)
|
||||
- Fixes for Doxygen:
|
||||
Move class description comments after namespace
|
||||
|
||||
## 2023-11-09 I. Hrivnacova (excommon-V11-01-00)
|
||||
- Coding guidelines - document macros in README files
|
||||
|
||||
## 2022-11-09 I. Hrivnacova (excommon-V11-00-02)
|
||||
- Fixed file descriptions in the top directory
|
||||
|
||||
## 2022-11-07 I. Hrivnacova (excommon-V11-00-01)
|
||||
New coding guidelines, added tests:
|
||||
- Added exampleCommon.cc and exampleCommonNoVis.cc
|
||||
- Added namespace Common
|
||||
- Override keywords
|
||||
- Data members initialization in .hh
|
||||
- Updated README files
|
||||
- Removed trailing whitespaces
|
||||
|
||||
## 2021-12-10 Ben Morgan (excommon-V11-00-00)
|
||||
- Change to new Markdown History format
|
||||
|
||||
---
|
||||
|
||||
# History entries prior to 11.0
|
||||
|
||||
24/05/21 B. Morgan (excommon-V10-07-00)
|
||||
- Bump required CMake version range to 3.12...3.20, matching core Geant4
|
||||
|
||||
03/11/20 B. Morgan (excommon-V10-06-00)
|
||||
- Support same CMake version range as core Geant4
|
||||
|
||||
29/09/17 I. Hrivnacova (excommon-V10-03-00,01)
|
||||
- Removed generic class names prefix (ExG4) and introduced a meaningful one
|
||||
when appropriate
|
||||
- Removed event and run action classes which are now obsolete
|
||||
- Replaced explicit messengers with use of G4GenericMessenger
|
||||
- C++11 (nullptr, auto)
|
||||
|
||||
20/07/16 I. Hrivnacova (excommon-V10-02-01)
|
||||
- Coding guidelines (redundant empty lines)
|
||||
|
||||
04/07/16 I. Hrivnacova (excommon-V10-02-00)
|
||||
- Fix for Doxygen documentation
|
||||
|
||||
09/06/15 I. Hrivnacova (excommon-V10-01-00)
|
||||
- Added a client-specific prefix to common library and test
|
||||
to avoid name clashes when building all extended examples at once
|
||||
|
||||
06/11/14 I. Hrivnacova (excommon-V10-00-06)
|
||||
- Fixed CMakeLists.txt for removal of analysis directory
|
||||
|
||||
05/11/14 I. Hrivnacova (excommon-V10-00-05)
|
||||
- Restoring back GNUmakefile (lost with previous update)
|
||||
|
||||
05/11/14 I. Hrivnacova (excommon-V10-00-04)
|
||||
- Moved analysis subdirectory in extended/analysis/AnaEx01/hbook,
|
||||
as it is not used anywhere else
|
||||
|
||||
05/11/14 I. Hrivnacova (excommon-V10-00-03)
|
||||
- Removed sub-directories with user classes and scripts (now obsolete)
|
||||
|
||||
04/11/14 I. Hrivnacova (excommon-V10-00-02)
|
||||
- Added GNUmakefile in top directory
|
||||
|
||||
04/11/14 I. Hrivnacova (excommon-V10-00-01)
|
||||
- Modifications to facilitate use of common directory via svn:externals:
|
||||
merging user classes in the top directoy (include and src),
|
||||
added testCommon.cc for all classes altogether and
|
||||
added building common library
|
||||
|
||||
28/05/14 I. Hrivnacova (excommon-V10-00-00)
|
||||
- Removed fPrintModulo from ExG4EventAction01
|
||||
and fSetPrintModuloCmd from ExG4EventAction01Messenger,
|
||||
now obsolete.
|
||||
- Fixed long lines, separators in userActions classes
|
||||
|
||||
28/02/13 I. Hrivnacova (excommon-V09-06-00)
|
||||
- When building materials with NistManager
|
||||
do not set fromIsotopes argument (which was set to false),
|
||||
as since 9.6 all materials have to be built from isotopes.
|
||||
Thanks to V. Ivantchenko for pointing at this.
|
||||
|
||||
26/09/2012 I. Hrivnacova (excommon-V09-05-02)
|
||||
- Added/updated CMakeLists.txt files:
|
||||
adding copying macros, install target, comment lines
|
||||
and HBOOK external package in analysis
|
||||
- Added explicit includes of G4SystemOfUnits.hh and G4PhysicalConstants.hh
|
||||
- Replaced tabulators with space characters
|
||||
- Updated script for generating CMakeLists.txt files
|
||||
|
||||
19/07/2012 I. Hrivnacova (excommon-V09-05-01)
|
||||
- Fix in the scripts (copying files from shared with an extension)
|
||||
|
||||
05/06/2012 I. Hrivnacova (excommon-V09-05-00)
|
||||
- Updated scripts for copying shared files; the shared files are now
|
||||
defined in the SharedFilesList.txt file
|
||||
|
||||
23/11/2011 I. Hrivnacova (excommon-V09-04-01)
|
||||
- Addded physicsList directory with a physics list with genatino
|
||||
and charged geantino
|
||||
|
||||
15/11/2011 I. Hrivnacova (excommon-V09-04-00)
|
||||
- First version of the common classes for the extended examples.
|
||||
@@ -1,8 +1,4 @@
|
||||
|
||||
///\file "common/.README.txt"
|
||||
///\brief Common classes README page
|
||||
|
||||
/*! \page Examples_common Category "common"
|
||||
\page ExampleexCommon Example exCommon
|
||||
|
||||
This example includes a set of classes independent on each other which
|
||||
can be reused in "feature" examples demonstrating just a particular feature
|
||||
@@ -28,6 +24,3 @@
|
||||
both interactively or in batch (with the init_vis.mac or run.mac macro)
|
||||
|
||||
Building examples programs can be disabled with the CMake option: -DEXAMPLES_COMMON=OFF.
|
||||
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
|
||||
############################################
|
||||
!!! WARNING - FPE detection is activated !!!
|
||||
############################################
|
||||
|
||||
|
||||
################################
|
||||
!!! G4Backtrace is activated !!!
|
||||
################################
|
||||
|
||||
|
||||
**************************************************************
|
||||
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
|
||||
Copyright : Geant4 Collaboration
|
||||
References : NIM A 506 (2003), 250-303
|
||||
: IEEE-TNS 53 (2006), 270-278
|
||||
: NIM A 835 (2016), 186-225
|
||||
WWW : http://geant4.org/
|
||||
**************************************************************
|
||||
|
||||
Visualization Manager instantiating with verbosity "warnings (3)"...
|
||||
Visualization Manager initialising...
|
||||
Registering graphics systems...
|
||||
|
||||
You have successfully registered the following graphics systems.
|
||||
Registered graphics systems are:
|
||||
ASCIITree (ATree)
|
||||
DAWNFILE (DAWNFILE)
|
||||
G4HepRepFile (HepRepFile)
|
||||
RayTracer (RT)
|
||||
VRML2FILE (VRML2FILE)
|
||||
gMocrenFile (gMocrenFile)
|
||||
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE)
|
||||
OpenGLImmediateQt (OGLIQt, OGLI)
|
||||
OpenGLStoredQt (OGLSQt, OGLS)
|
||||
OpenGLImmediateXm (OGLIXm, OGLIQt_FALLBACK)
|
||||
OpenGLStoredXm (OGLSXm, OGLSQt_FALLBACK)
|
||||
OpenGLImmediateX (OGLIX, OGLIQt_FALLBACK, OGLIXm_FALLBACK)
|
||||
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
|
||||
RayTracerX (RTX)
|
||||
RayTracerQt (RTQt)
|
||||
Qt3D (Qt3D)
|
||||
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
|
||||
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
|
||||
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
|
||||
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
|
||||
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
|
||||
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
|
||||
You may choose a graphics system (driver) with a parameter of
|
||||
the command "/vis/open" or "/vis/sceneHandler/create",
|
||||
or you may omit the driver parameter and choose at run time:
|
||||
- by argument in the construction of G4VisExecutive
|
||||
- by environment variable "G4VIS_DEFAULT_DRIVER"
|
||||
- by entry in "~/.g4session"
|
||||
- by build flags.
|
||||
- Note: This feature is not allowed in batch mode.
|
||||
For further information see "examples/basic/B1/exampleB1.cc"
|
||||
and "vis.mac".
|
||||
|
||||
Registering model factories...
|
||||
|
||||
You have successfully registered the following model factories.
|
||||
Registered model factories:
|
||||
generic
|
||||
drawByAttribute
|
||||
drawByCharge
|
||||
drawByOriginVolume
|
||||
drawByParticleID
|
||||
drawByEncounteredVolume
|
||||
|
||||
Registered models:
|
||||
None
|
||||
|
||||
Registered filter factories:
|
||||
attributeFilter
|
||||
chargeFilter
|
||||
originVolumeFilter
|
||||
particleFilter
|
||||
encounteredVolumeFilter
|
||||
|
||||
Registered filters:
|
||||
None
|
||||
|
||||
You have successfully registered the following user vis actions.
|
||||
Run Duration User Vis Actions: none
|
||||
End of Event User Vis Actions: none
|
||||
End of Run User Vis Actions: none
|
||||
|
||||
Some /vis commands (optionally) take a string to specify colour.
|
||||
"/vis/list" to see available colours.
|
||||
/run/verbose 2
|
||||
#
|
||||
/run/beamOn 10
|
||||
|
||||
Region <DefaultRegionForTheWorld> -- -- appears in <World> world volume
|
||||
This region is in the mass world.
|
||||
Root logical volume(s) : World
|
||||
Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0]
|
||||
Materials : G4_AIR
|
||||
Production cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 1 mm
|
||||
|
||||
Region <DefaultRegionForParallelWorld> -- -- is not associated to any world.
|
||||
Root logical volume(s) :
|
||||
Pointers : G4VUserRegionInformation[0], G4UserLimits[0], G4FastSimulationManager[0], G4UserSteppingAction[0]
|
||||
Materials :
|
||||
Production cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 1 mm
|
||||
|
||||
========= Table of registered couples ============================
|
||||
|
||||
Index : 0 used in the geometry : Yes
|
||||
Material : G4_AIR
|
||||
Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 1 mm
|
||||
Energy thresholds : gamma -1 MeV e- -1 MeV e+ -1 MeV proton -1 MeV
|
||||
Region(s) which use this couple :
|
||||
DefaultRegionForTheWorld
|
||||
|
||||
==================================================================
|
||||
|
||||
Start closing geometry.
|
||||
--------------------------------------------------------------------------------
|
||||
G4GeometryManager::ReportVoxelStats -- Voxel Statistics
|
||||
|
||||
Total memory consumed for geometry optimisation: 0 kByte
|
||||
Total CPU time elapsed for geometry optimisation: 0 seconds
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
### Run 0 starts.
|
||||
Run terminated.
|
||||
Run Summary
|
||||
Number of events processed : 10
|
||||
User=0.000000s Real=0.000177s Sys=0.000000s
|
||||
Graphics systems deleted.
|
||||
Visualization Manager deleting...
|
||||
G4 kernel has come to Quit state.
|
||||
Deleting G4Run (id:0)
|
||||
UserDetectorConstruction deleted 0x1e38090
|
||||
UserPhysicsList deleted 0x2098e70
|
||||
UserActionInitialization deleted 0
|
||||
UserWorkerInitialization deleted 0
|
||||
UserWorkerThreadInitialization deleted 0
|
||||
UserRunAction deleted.
|
||||
UserPrimaryGenerator deleted.
|
||||
RunManager is deleting RunManagerKernel.
|
||||
G4SDManager deleted.
|
||||
EventManager deleted.
|
||||
Units table cleared.
|
||||
TransportationManager deleted.
|
||||
Total navigation history collections cleaned: 6
|
||||
G4RNGHelper object is deleted.
|
||||
================== Deleting memory pools ===================
|
||||
Pool ID '20G4NavigationLevelRep', size : 0.00769 MB
|
||||
Pool ID '24G4ReferenceCountedHandleIvE', size : 0.000961 MB
|
||||
Pool ID '7G4Event', size : 0.000961 MB
|
||||
Pool ID '15G4PrimaryVertex', size : 0.000961 MB
|
||||
Pool ID '17G4PrimaryParticle', size : 0.000961 MB
|
||||
Pool ID '17G4DynamicParticle', size : 0.000961 MB
|
||||
Pool ID '7G4Track', size : 0.000961 MB
|
||||
Pool ID '18G4TouchableHistory', size : 0.000961 MB
|
||||
Pool ID '15G4CountedObjectIvE', size : 0.000961 MB
|
||||
Number of memory pools allocated: 9 of which, static: 0
|
||||
Dynamic pools deleted: 9 / Total memory freed: 0.015 MB
|
||||
============================================================
|
||||
G4Allocator objects are deleted.
|
||||
UImanager deleted.
|
||||
StateManager deleted.
|
||||
RunManagerKernel is deleted. Good bye :)
|
||||
RunManager is deleted.
|
||||
+2
-3
@@ -23,9 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/exampleCommon.cc
|
||||
/// \brief Main program of the Common example
|
||||
/// \file exCommon.cc
|
||||
/// \brief Main program of the common/exCommon example
|
||||
|
||||
#include "DetectorConstruction.hh"
|
||||
#include "GeantinoPhysicsList.hh"
|
||||
+2
-3
@@ -23,9 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/exampleCommonNoVis.cc
|
||||
/// \brief Main program of the Common example without visualization
|
||||
/// \file exCommonNoVis.cc
|
||||
/// \brief Main program of the common/exCommon example
|
||||
|
||||
#include "DetectorConstruction.hh"
|
||||
#include "GeantinoPhysicsList.hh"
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/include/DetectorConstruction.hh
|
||||
/// \file DetectorConstruction.hh
|
||||
/// \brief Definition of the Common::DetectorConstruction class
|
||||
|
||||
#ifndef DetectorConstruction_h
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/include/DetectorConstruction0.hh
|
||||
/// \file DetectorConstruction0.hh
|
||||
/// \brief Definition of the Common::DetectorConstruction0 class
|
||||
|
||||
#ifndef DetectorConstruction0_h
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/include/GeantinoPhysicsList.hh
|
||||
/// \file GeantinoPhysicsList.hh
|
||||
/// \brief Definition of the Common::GeantinoPhysicsList class
|
||||
|
||||
#ifndef GeantinoPhysicsList_h
|
||||
+2
-4
@@ -23,10 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/include/GpsPrimaryGeneratorAction.hh
|
||||
/// \file GpsPrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the Common::GpsPrimaryGeneratorAction class
|
||||
//
|
||||
|
||||
#ifndef GpsPrimaryGeneratorAction_h
|
||||
#define GpsPrimaryGeneratorAction_h 1
|
||||
@@ -40,7 +38,7 @@ class G4Event;
|
||||
namespace Common
|
||||
{
|
||||
|
||||
/// \brief The primary generator class with general particle source
|
||||
/// The primary generator class with general particle source
|
||||
///
|
||||
/// \author I. Hrivnacova; IPN Orsay
|
||||
|
||||
+2
-3
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/include/GunPrimaryGeneratorAction.hh
|
||||
/// \file GunPrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the Common::GunPrimaryGeneratorAction class
|
||||
|
||||
#ifndef GunPrimaryGeneratorAction_h
|
||||
@@ -42,7 +41,7 @@ class G4Event;
|
||||
namespace Common
|
||||
{
|
||||
|
||||
/// \brief The primary generator class with particle gun
|
||||
/// The primary generator class with particle gun
|
||||
///
|
||||
/// \author I. Hrivnacova; IPN Orsay
|
||||
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/src/DetectorConstruction.cc
|
||||
/// \file DetectorConstruction.cc
|
||||
/// \brief Implementation of the Common::DetectorConstruction class
|
||||
|
||||
#include "DetectorConstruction.hh"
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/src/DetectorConstruction0.cc
|
||||
/// \file DetectorConstruction0.cc
|
||||
/// \brief Implementation of the Common::DetectorConstruction0 class
|
||||
|
||||
#include "DetectorConstruction0.hh"
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/src/GeantinoPhysicsList.cc
|
||||
/// \file GeantinoPhysicsList.cc
|
||||
/// \brief Implementation of the Common::GeantinoPhysicsList class
|
||||
|
||||
#include "GeantinoPhysicsList.hh"
|
||||
+2
-3
@@ -23,9 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/src/GpsPrimaryGeneratorAction.cc
|
||||
/// \brief Implementation of the Common::GpsPrimaryGeneratorActionclass
|
||||
/// \file GpsPrimaryGeneratorAction.cc
|
||||
/// \brief Implementation of the Common::GpsPrimaryGeneratorAction class
|
||||
|
||||
#include "GpsPrimaryGeneratorAction.hh"
|
||||
|
||||
+1
-2
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
/// \file common/src/GunPrimaryGeneratorAction.cc
|
||||
/// \file GunPrimaryGeneratorAction.cc
|
||||
/// \brief Implementation of the Common::GunPrimaryGeneratorAction class
|
||||
|
||||
#include "GunPrimaryGeneratorAction.hh"
|
||||
+2
-4
@@ -23,10 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
/// \file common/testCommon.cc
|
||||
/// \brief Test program for the common classes
|
||||
/// \file testCommon.cc
|
||||
/// \brief Main program of the common/exCommon example
|
||||
|
||||
#include "DetectorConstruction.hh"
|
||||
#include "DetectorConstruction0.hh"
|
||||
Reference in New Issue
Block a user