Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • EMPhysicsListUpdate
  • LHCBGAUSS-1356
  • LHCBGAUSS-1518.HighMass
  • LHCBGAUSS-2023
  • Sim08
  • Sim09
  • Sim10
  • cmake-modernization
  • cmake-modernization-10.7.3
  • fix/testem3
  • fix_G4RichTbSimHTest_warnings
  • gcorti-v96r4p4-release
  • kholoimov_trajectory_study
  • lhcbgauss-739
  • lzma_fix_for_g4_tests
  • marcocle/adapt-to-new-cmake-gl-policy
  • marcocle/add-copyright
  • master
  • master_mt
  • mveltri-CaloTest-UseGammaGeneralProcess
  • mveltri-g4_standalone_tests_update
  • mveltri-inhibit-optical-photons-by-volume
  • mveltri-option2-with-gammaConversion5D
  • mveltri-use-gammageneralprocess-by-default
  • mveltri_g4hepem_integration
  • opt2_physlist_switch
  • patch-Bc-ionisation
  • proposed_g4tests_repackage
  • release-v10r7p3t2
  • richTorch
  • sim09_g4tests_repackage
  • sim10-patches
  • switch_master_to_g4v10r3p1
  • test_10.6_beta
  • test_emopt4_plist
  • torchSim11
  • update-to-g4-11.1.1
  • update-to-g4-11.2.1
  • update-to-g4-11.3.0
  • update_v107r3_lhcbg4pkgs_incl
  • v10.4.1_patch_phys_lists
  • v103r3-release
  • v104r1-release
  • v104r1p1-release
  • v104r2-mt
  • v104r2-release
  • v104r2_physics_list_change_test
  • v104r2p1-release
  • v104r3-release
  • v104r3p1-release
  • v104r3p2-release
  • v104r3p2-release-mt
  • v104r3p3-release
  • v105r0-release
  • v105r0b-test
  • v106r1-release
  • v106r2-release
  • v106r2p1-release
  • v106r2p2-release
  • v106r2p3-release
  • v106r2p4-release
  • v106r2p5-release
  • v96r4p5-release
  • v96r4p6-release
  • v96r4p7-release
  • valassi_v10r6patches
  • vecgeom_test
  • veltri-backport-fix-for-G4GammaGeneralProcess
  • veltri-master-patch-5958
  • vsvintoz_trajectory_dump
  • gr4r10Test1
  • v103r3
  • v104r1
  • v104r1p1
  • v104r2
  • v104r2p1
  • v104r3
  • v104r3p1
  • v104r3p2
  • v104r3p3
  • v105r0
  • v106r1
  • v106r2
  • v106r2p1
  • v106r2p2
  • v106r2p3
  • v106r2p4
  • v106r2p5
  • v106r2p6
  • v10r6p2t6
  • v10r6p2t7
  • v10r7p3t0
  • v10r7p3t1
  • v10r7p3t2
  • v81r0p1
  • v82r0
  • v82r1
  • v83r0
  • v83r0p1
  • v83r1
  • v83r1p1
  • v83r1p2
  • v83r2
  • v90r2
  • v91r2
  • v91r2p1
  • v91r2p2
  • v91r2p3
  • v91r2p4
  • v91r3
  • v92r2
  • v92r2p1
  • v92r2p2
  • v92r3
  • v92r3p1
  • v92r3p2
  • v92r4
  • v92r4p1
  • v93r5
  • v94r1
  • v94r2
  • v94r2p1
  • v94r2p2
  • v94r2p3
  • v94r2p4
  • v94r2p5
  • v94r2p6
  • v95r2
  • v95r2p1
  • v95r2p2
  • v95r2p3
  • v95r2p4
  • v95r2p4g1
  • v95r2p5
  • v95r2p5g1
  • v95r2p5g2
  • v95r2p5g3
  • v95r2p5g4
  • v95r2p6
  • v95r2p7
  • v95r2p7g1
  • v95r2p7g2
  • v95r2p7g3
  • v95r2p7g4
  • v95r2p8
  • v95r2p8g1
  • v95r2p8g2
  • v96r4
  • v96r4p0g1
  • v96r4p1
  • v96r4p2
  • v96r4p3
  • v96r4p4
  • v96r4p5
  • v96r4p6
  • v96r4p7
156 results

Target

Select target project
  • mimazure/Geant4
  • valassi/Geant4
  • kzarebsk/Geant4
  • jonrob/Geant4
  • watson/Geant4
  • lhcb/Geant4
6 results
Select Git revision
  • AV_Sim09mc88
  • AV_master
  • AV_master-mc88
  • EMPhysicsListUpdate
  • LHCBGAUSS-1356
  • Sim08
  • Sim09
  • Sim10
  • fix/testem3
  • fix_G4RichTbSimHTest_warnings
  • gcorti-v96r4p4-release
  • lhcbgauss-739
  • master
  • proposed_g4tests_repackage
  • sim09_g4tests_repackage
  • switch_master_to_g4v10r3p1
  • v10.4.1_patch_phys_lists
  • v103r3-release
  • v104r1-release
  • v104r1p1-release
  • v96r4p5-release
  • v96r4p6-release
  • v96r4p7-release
  • vecgeom_test
  • gr4r10Test1
  • v103r3
  • v104r1
  • v104r1p1
  • v81r0p1
  • v82r0
  • v82r1
  • v83r0
  • v83r0p1
  • v83r1
  • v83r1p1
  • v83r1p2
  • v83r2
  • v90r2
  • v91r2
  • v91r2p1
  • v91r2p2
  • v91r2p3
  • v91r2p4
  • v91r3
  • v92r2
  • v92r2p1
  • v92r2p2
  • v92r3
  • v92r3p1
  • v92r3p2
  • v92r4
  • v92r4p1
  • v93r5
  • v94r1
  • v94r2
  • v94r2p1
  • v94r2p2
  • v94r2p3
  • v94r2p4
  • v94r2p5
  • v94r2p6
  • v95r2
  • v95r2p1
  • v95r2p2
  • v95r2p3
  • v95r2p4
  • v95r2p4g1
  • v95r2p5
  • v95r2p5g1
  • v95r2p5g2
  • v95r2p5g3
  • v95r2p5g4
  • v95r2p6
  • v95r2p7
  • v95r2p7g1
  • v95r2p7g2
  • v95r2p7g3
  • v95r2p7g4
  • v95r2p8
  • v95r2p8g1
  • v95r2p8g2
  • v96r4
  • v96r4p0g1
  • v96r4p1
  • v96r4p2
  • v96r4p3
  • v96r4p4
  • v96r4p5
  • v96r4p6
  • v96r4p7
90 results
Show changes
Commits on Source (339)
Showing
with 529 additions and 629 deletions
# Codeowners for Geant4 (GitHub Version)
# Maps directories to Working Group Coordinators
# Software Management
/CMakeLists.txt @drbenmorgan
/cmake/ @drbenmorgan @gunterfolger
/config/ @gcosmo
/ReleaseNotes/ @gcosmo
/source/global/ @gcosmo @drbenmorgan @gunterfolger
# Run, Event, and Detector Response
/source/run/ @makotoasai @jrmadsen
/source/event/ @makotoasai @jrmadsen
/source/digits_hits/ @makotoasai @jrmadsen
/source/processes/scoring @makotoasai @jrmadsen
# Tracking
/source/tracking/ @ts-kek @amakoG4AI @makotoasai
# Particles and Track
# TBA: Hisaya Kurashige
/source/track/ @makotoasai
/source/particles/ @makotoasai
# Geometry and Transport
/source/geometry/ @gcosmo @jonapost
/source/processes/transportation/ @gcosmo @jonapost
# Generic Processes and Materials
/source/materials/ @marcverderi @civanch
/source/parameterisations/ @marcverderi
/source/processes/biasing/ @marcverderi @civanch
/source/processes/parameterisation/ @marcverderi @civanch
# Electromagnetic Standard Physics
/source/processes/electromagnetic/highenergy/ @civanch @dsawkey
/source/processes/electromagnetic/muons/ @civanch @dsawkey
/source/processes/electromagnetic/polarisation/ @civanch @dsawkey
/source/processes/electromagnetic/standard/ @civanch @dsawkey
/source/processes/electromagnetic/xrays/ @civanch @dsawkey
/source/processes/optical/ @civanch @dsawkey
# Low Energy Electromagnetic Physics
/source/processes/electromagnetic/dna/ @sincerti @pandola
/source/processes/electromagnetic/lowenergy/ @sincerti @pandola
/source/processes/electromagnetic/pii/ @sincerti @pandola
# Hadronic Physics
# TBA: Dennis Wright
/source/processes/hadronic/ @AlbertoRibon
# Persistency
/source/persistency/ @gcosmo @WitekPokorski
/source/analysis/ @ihrivnac
# User and Category Interfaces
# TBA: Hajime Yoshida
/source/intercoms/ @koichi-murakami @makotoasai
/source/interfaces/ @koichi-murakami @laurent-garnier
/environments/ @koichi-murakami
# Visualization
/source/graphics_reps/ @laurent-garnier @jiperl @johna1941
/source/visualization/ @laurent-garnier @jiperl @johna1941
# Physics Lists
/source/physics_lists/ @gunterfolger @hanswenzel
# Novice+Extended Examples (Individual Examples assigned to Responsibles)
/examples/basic/ @ihrivnac @ashoward
/examples/novice/ @ihrivnac @ashoward
/examples/extended/ @ihrivnac @ashoward
# Advanced Examples (Can be extended with responsibles per example)
/examples/advanced/ @guatelli @romanofrancesco
# Testing
/tests/ @gunterfolger @whokion
# 1. Specific Geant4 ignores
#======================================================================
# i. Subprojects that may be cloned for testing
#======================================================================
benchmarks/
verification/
#======================================================================
# ii. Formatting
#======================================================================
# ignore any hidden clang-format files
*/.clang-format
/format-original.txt
/format-modified.txt
#!/GitUtilities/geant4-clang-format
# 2. System temporaries
#======================================================================
# i. Linux
#======================================================================
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
#======================================================================
# ii. macOS
#======================================================================
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
#======================================================================
# iii. Windows
#======================================================================
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
3. Text Editor/IDE
#======================================================================
1. Eclipse
#======================================================================
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# CDT- autotools
.autotools
# Java annotation processor (APT)
.factorypath
# PDT-specific (PHP Development Tools)
.buildpath
# sbteclipse plugin
.target
# Tern plugin
.tern-project
# TeXlipse plugin
.texlipse
# STS (Spring Tool Suite)
.springBeans
# Code Recommenders
.recommenders/
# Annotation Processing
.apt_generated/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
# VSCode
.vscode
# QtCreator
CMakeLists.txt.user
#======================================================================
# ii. Emacs
#======================================================================
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# Org-mode
.org-id-locations
*_archive
# flymake-mode
*_flymake.*
# eshell files
/eshell/history
/eshell/lastdir
# elpa packages
/elpa/
# reftex files
*.rel
# AUCTeX auto folder
/auto/
# cask packages
.cask/
dist/
# Flycheck
flycheck_*.el
# server auth directory
/server/
# projectiles files
.projectile
# directory configuration
.dir-locals.el
#======================================================================
# iii. KDevelop
#======================================================================
*.kdev4
.kdev4/
#======================================================================
# iv. Kate
#======================================================================
.*.kate-swp
.swp.*
#======================================================================
# v. Vim
#======================================================================
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
# Session
Session.vim
# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~
#======================================================================
# vi. VisualStudio/Code
#======================================================================
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
#======================================================================
# vii. Xcode
#======================================================================
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
#=====================================================================
# CLion
#=====================================================================
cmake-build*
# 4. Development/Build Generated
#======================================================================
# i. CMake
#======================================================================
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
#======================================================================
# ii. C/C++
#======================================================================
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# 5. Experiment specific
#======================================================================
# i. LHCb
#======================================================================
build.*/
InstallArea/
.clang-format
Makefile
toolchain.cmake
ReleaseNotes
\ No newline at end of file
#-----------------------------------------------------------------------
# - Top Level CMakeLists.txt for Geant4 Build
#-----------------------------------------------------------------------
# - Enforce an out-of-source builds before anything else
#
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(STATUS "Geant4 requires an out-of-source build.")
message(STATUS "Please remove these files from ${CMAKE_BINARY_DIR} first:")
message(STATUS "CMakeCache.txt")
message(STATUS "CMakeFiles")
message(STATUS "Once these files are removed, create a separate directory")
message(STATUS "and run CMake from there")
message(FATAL_ERROR "in-source build detected")
endif()
#-----------------------------------------------------------------------
# - Define CMake requirements and override make rules as needed
#
cmake_minimum_required(VERSION 3.8...3.18 FATAL_ERROR)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
# - Make overrides for default flags, so they appear in interfaces
# set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
# ${CMAKE_SOURCE_DIR}/cmake/Modules/G4MakeRules_cxx.cmake)
#-----------------------------------------------------------------------
# - Project definition and basic configuration
# Version handled manually as project(... VERSION ...) is not used
# in tests/examples which are subprojects. All calls must use
# the same form.
project(Geant4)
set(${PROJECT_NAME}_VERSION_MAJOR 10)
set(${PROJECT_NAME}_VERSION_MINOR 7)
set(${PROJECT_NAME}_VERSION_PATCH 3)
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}")
# - Prepend our own CMake Modules to the search path
# NB: if our custom modules include others that we don't supply, those in
# the base path will be used, so watch for incompatibilities!!
#
set(CMAKE_MODULE_PATH
${PROJECT_SOURCE_DIR}/cmake/Modules
${CMAKE_MODULE_PATH})
# FIXME: code copied from cmake/Modules/Geant4MakeRules_cxx.cmake waiting for proper refactoring
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang|Intel")
# available models, default first
set(_TLSMODELS initial-exec local-exec global-dynamic local-dynamic)
foreach(_s ${_TLSMODELS})
set(${_s}_TLSMODEL_FLAGS "-ftls-model=${_s}")
endforeach()
list(APPEND _TLSMODELS auto)
set(auto_TLSMODEL_FLAGS "")
set(TLSMODEL_IS_AVAILABLE ${_TLSMODELS})
# FIXME: this is not the right way of enabling threads
# (see https://cmake.org/cmake/help/latest/module/FindThreads.html)
set(GEANT4_MULTITHREADED_CXX_FLAGS "-pthread")
endif()
#-----------------------------------------------------------------------
# - Include CMake category main module
# Factored into category for convenience in tagging
#
include(G4CMakeMain)
# Special settings to support legacy LHCb CMake projects
if(GAUDI_LEGACY_CMAKE_SUPPORT)
set(PROJECT_VERSION ${${PROJECT_NAME}_VERSION})
include(${legacy_cmake_config_support})
# This is to match Geant4 install layout
install(FILES
${PROJECT_BINARY_DIR}/.metadata.cmake
${PROJECT_SOURCE_DIR}/source/lhcb/Geant4.xenv
DESTINATION ${GEANT4_CMAKE_DIR}
COMPONENT Development
)
endif()
Contributing to Geant4
=====
To contribute patches to Geant4, users can submit Pull Requests (PR) such that:
- A single PR refers to a single particular topic (fix or suggested enhancement);
PRs including uncorrelated changes in codes in different areas or modules will
not be considered.
A PR will be examined by a responsible and eventually extracted for a patch in
the development repository of Geant4, to be included in a future release or
patch.
For simple bug-fixes, it is anyhow recommended to use the official
Bugzilla problem reporting system.
- Problem reports: `Bugzilla problem reporting system <https://bugzilla-geant4.kek.jp>`_.
- User Forum: `Geant4 Forum <https://geant4-forum.web.cern.ch>`_.
- Documentation: `User Documentation <https://cern.ch/geant4/support/user_documentation>`_.
The Geant4 Collaboration
#============================================================================
# Created : 2001-10-12
# Maintainer : Gloria CORTI
#============================================================================
package G4FR
version v4r4
# Structure, i.e. directories to process.
#============================================================================
branches cmt doc G4FR
# Used packages.
#============================================================================
use G4vis_management v* Geant4
# Settings for DAWN and DAVID
#============================================================================
set DAWN_HOME $(LCG_external)/dawn/3_88a
set DAVID_HOME $(LCG_external)/david/1_36a
# Configuration for DAWN & DAVID configuration, could be reconfigured later
#============================================================================
set DAWN_BSD_UNIX_DOMAIN "1" \
WIN32 ""
set DAWN_GUI_ALWAYS "1"
# Definition of the DAWN/DAVID viewer, could be redefined later
#============================================================================
set G4DAWNFILE_VIEWER "dawn"\
WIN32 "NONE"
# Library
#============================================================================
library G4FR $(G4LibraryFlags) \
../FukuiRenderer/src/*.cc
# Macros for building and using the DAWN/DAVID driver
#============================================================================
macro_append G4FR_pp_cppflags " -DG4VIS_BUILD_DAWN_DRIVER " \
target-winxp ' /D"G4VIS_BUILD_DAWN_DRIVER" '
macro_append G4FR_pp_cppflags " -DG4VIS_BUILD_DAWNFILE_DRIVER " \
target-winxp ' /D"G4VIS_BUILD_DAWNFILE_DRIVER" '
macro_append G4FR_pp_cppflags " -DG4VIS_USE_DAWN " \
target-winxp ' /D"G4VIS_USE_DAWN" '
macro_append G4FR_pp_cppflags " -DG4VIS_USE_DAWNFILE " \
target-winxp ' /D"G4VIS_USE_DAWNFILE" '
# Apply the G4 mandatory patterns
#============================================================================
apply_pattern G4AllCMTpatterns
# Private macro to copy the Fukui Renderer source
#===========================================================================
private
apply_pattern G4_copy_vis_source
end_private
apply_pattern disable_package_on platform=target-winxp
v4r4
!-----------------------------------------------------------------------------
! Package : Geant4/G4FR
! Responsible : Gloria CORTI
! Purpose : Build of Fukui Renderer
!-----------------------------------------------------------------------------
!========================== G4FR v4r4 2011-04-12 =============================
! 2011-04-12 - Gloria Corti
- Introduce use of pattern to switch off building this package on winxp
!========================== G4FR v4r3 2009-11-03 =============================
! 2009-06-10 - Hubert DEGAUDENZI
- Adapt to new new the external sources are imported.
!========================== G4FR v4r2 2008-09-30 =============================
! 2008-09-30 - Gloria CORTI
- requirements - Take DAWN and DAVID from the $LCG_external area (latest
versions) rather then obsolete $SITEROOT/sw/contrib
!========================== G4FR v4r1 2004-08-10 ========================
! 2004-08-10 - Florence RANJARD
- requirements - replace $SWROOT with $SITEROOT/sw
!========================== G4FR v4r0 2003-11-03 ========================
! 2003-11-03 - Florence RANJARD
- requirements - add G4FR branch to store include files
!=============================================================================
package G4GDML
version v1r0
branches cmt doc G4GDML
# =============================================================================
# ============ dependencies ===================================================
# =============================================================================
use G4geometry v* Geant4
use G4run v* Geant4
use XercesC v* LCG_Interfaces
# =============================================================================
# ============ library ========================================================
# =============================================================================
library G4GDML $(G4LibraryFlags) \
../src/*.cc
# =============================================================================
# ============ macros for using OpenGL driver =================================
# =============================================================================
# =============================================================================
apply_pattern G4AllCMTpatterns
apply_pattern disable_package_on platform=target-darwin
apply_pattern disable_package_on platform=target-winxp
private
# script and pattern to copy from $G4SRC/persistency/gdml
apply_pattern G4_copy_gdml_source
end_private
v1r0
!-----------------------------------------------------------------------------
! Package : Geant4/G4GDML
! Responsible :
! Purpose : Package holding the GDML code
!-----------------------------------------------------------------------------
! ======================= G4GDML v1r0 2012-07-18 ========================
! 2012-07-18 - Nigel Watson
- Make private copy source in requirements.
! 2012-07-17 - Nigel Watson
- Updated requirements for use with copy_gdml_source scripts.
! 2012-07-12 - Gloria Corti
- Introduce requirement file with correct dependencies
!=============================================================================
#============================================================================
# Created : 2008-02-20
# Maintainer : Gloria CORTI
#============================================================================
package G4LHCblists
version v3r0
# Structure, i.e. directories to process.
#============================================================================
branches cmt doc G4LHCblists src
# Dependencies
#============================================================================
use G4physics_lists v* Geant4
include_dirs $(G4LHCblists_root)/G4LHCblists
# Library
#============================================================================
library G4LHCblists $(G4LibraryFlags) ../src/*.cc
# Patterns
#============================================================================
apply_pattern G4AllCMTpatterns
v3r0
!-----------------------------------------------------------------------------
! Package : Geant4/G4LHCblists
! Responsible : Gloria CORTI
! Purpose : Private LHCb physics lists
!-----------------------------------------------------------------------------
!======================== G4LHCblists v3r0 2013-09-16 ========================
! 2013-09-16 - Gloria Corti
- Remove obsolete header of physics list that was left over
. HadronPhysicsQGSP_BERT_HP.hh
!======================== G4LHCblists v2r2 2011-10-03 ========================
! 2011-10-03 - Gloria Corti
- Add new list with suggestion from Matt Reid for improvement of Multiple
scattering. It has the same options as the LHCb list.
. G4EmStandardPhysics_LHCbTest.{hh,cc}
!======================== G4LHCblists v2r1 2011-09-19 ========================
! 2011-09-18 - Gloria Corti
- Add options in contructor to apply or not the cuts, as to have the
possibility to have a physics list with old EM behaviour and new MS and to
apply simple MS to e+/- as provided by A.Dotti to address CMS calorimeter
issues with this physics list
!======================== G4LHCblists v2r0 2011-07-13 ========================
! 2011-07-13 - Gloria Corti
- Fix renaming in G4EmStandardPhysics_option1NoApplyCuts.cc
! 2011-07-12 - Gloria Corti
- Remove old physics list, that are obsolete.
- Introduce new physics lists for LHCb Em physics set up by V.Ivanchenko
(G4EmStandardPhysics_option1LHCb.{hh,cc}) with Wentzel model for all
particles types.
- Introduce modified version of option1 that does not apply cuts to reproduce
behaviour as in G4 9.2. (G4EmStandardPhysics_option1NoApplyCuts.{hh,cc})
!============================= G4LHCblists ===================================
! 2005-11-09 - Gloria CORTI
- New package to hold private LHCb physics lists. It has the QGSP_BERT_HP
list provided by H-P Wellish for low energy neutron studies
!=============================================================================
\ No newline at end of file
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmStandardPhysics_option1NoApplyCuts.cc,v 1.22 2010-12-19 18:11:05 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//---------------------------------------------------------------------------
//
// ClassName: G4EmStandardPhysics_option1NoApplyCuts
//
// Author: V.Ivanchenko 09.11.2005
//
// Modified:
// 19.12.2005 V.Ivanchenko StepFunction for electrons (1.0, 1.0*mm)
// 21.06.2006 V.Ivanchenko use recent msc with step limitation off
// 23.06.2006 V.Ivanchenko set dRoverRange = 0.8 for e- and e+
// 13.11.2006 V.Ivanchenko use G4hMultipleScattering
// 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
// 13.02.2007 V.Ivanchenko set skin=0.0
// 15.05.2007 V.Ivanchenko rename to _option1
// 21.04.2008 V.Ivanchenko add long-lived D and B mesons
// 19.11.2010 V.Ivanchenko added WentzelVI model for muons;
// 12.07.2011 G.Corti disable ApplyCuts option to reproduce 9.2 and rename
// _option1NoApplyCuts
//
//----------------------------------------------------------------------------
//
#include "G4EmStandardPhysics_option1NoApplyCuts.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4LossTableManager.hh"
#include "G4EmProcessOptions.hh"
#include "G4ComptonScattering.hh"
#include "G4GammaConversion.hh"
#include "G4PhotoElectricEffect.hh"
#include "G4eMultipleScattering.hh"
#include "G4MuMultipleScattering.hh"
#include "G4hMultipleScattering.hh"
#include "G4CoulombScattering.hh"
#include "G4WentzelVIModel.hh"
#include "G4eIonisation.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
#include "G4MuIonisation.hh"
#include "G4MuBremsstrahlung.hh"
#include "G4MuPairProduction.hh"
#include "G4hBremsstrahlung.hh"
#include "G4hPairProduction.hh"
#include "G4hIonisation.hh"
#include "G4ionIonisation.hh"
#include "G4alphaIonisation.hh"
#include "G4Gamma.hh"
#include "G4Electron.hh"
#include "G4Positron.hh"
#include "G4MuonPlus.hh"
#include "G4MuonMinus.hh"
#include "G4PionPlus.hh"
#include "G4PionMinus.hh"
#include "G4KaonPlus.hh"
#include "G4KaonMinus.hh"
#include "G4Proton.hh"
#include "G4AntiProton.hh"
#include "G4Deuteron.hh"
#include "G4Triton.hh"
#include "G4He3.hh"
#include "G4Alpha.hh"
#include "G4GenericIon.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4EmStandardPhysics_option1NoApplyCuts::G4EmStandardPhysics_option1NoApplyCuts(G4int ver)
: G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
{
G4LossTableManager::Instance();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4EmStandardPhysics_option1NoApplyCuts::G4EmStandardPhysics_option1NoApplyCuts(G4int ver, const G4String&)
: G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
{
G4LossTableManager::Instance();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4EmStandardPhysics_option1NoApplyCuts::~G4EmStandardPhysics_option1NoApplyCuts()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void G4EmStandardPhysics_option1NoApplyCuts::ConstructParticle()
{
// gamma
G4Gamma::Gamma();
// leptons
G4Electron::Electron();
G4Positron::Positron();
G4MuonPlus::MuonPlus();
G4MuonMinus::MuonMinus();
// mesons
G4PionPlus::PionPlusDefinition();
G4PionMinus::PionMinusDefinition();
G4KaonPlus::KaonPlusDefinition();
G4KaonMinus::KaonMinusDefinition();
// barions
G4Proton::Proton();
G4AntiProton::AntiProton();
// ions
G4Deuteron::Deuteron();
G4Triton::Triton();
G4He3::He3();
G4Alpha::Alpha();
G4GenericIon::GenericIonDefinition();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void G4EmStandardPhysics_option1NoApplyCuts::ConstructProcess()
{
// Add standard EM Processes
theParticleIterator->reset();
while( (*theParticleIterator)() ){
G4ParticleDefinition* particle = theParticleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
G4String particleName = particle->GetParticleName();
if(verbose > 1)
G4cout << "### " << GetPhysicsName() << " instantiates for "
<< particleName << G4endl;
if (particleName == "gamma") {
pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
pmanager->AddDiscreteProcess(new G4ComptonScattering);
pmanager->AddDiscreteProcess(new G4GammaConversion);
} else if (particleName == "e-") {
G4eIonisation* eioni = new G4eIonisation();
eioni->SetStepFunction(0.8, 1.0*mm);
G4eMultipleScattering* msc = new G4eMultipleScattering;
msc->SetStepLimitType(fMinimal);
pmanager->AddProcess(msc, -1, 1, 1);
pmanager->AddProcess(eioni, -1, 2, 2);
pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
} else if (particleName == "e+") {
G4eIonisation* eioni = new G4eIonisation();
eioni->SetStepFunction(0.8, 1.0*mm);
G4eMultipleScattering* msc = new G4eMultipleScattering;
msc->SetStepLimitType(fMinimal);
pmanager->AddProcess(msc, -1, 1, 1);
pmanager->AddProcess(eioni, -1, 2, 2);
pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
} else if (particleName == "mu+" ||
particleName == "mu-" ) {
G4MuMultipleScattering* msc = new G4MuMultipleScattering();
msc->AddEmModel(0, new G4WentzelVIModel());
pmanager->AddProcess(msc, -1, 1, 1);
pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
pmanager->AddDiscreteProcess(new G4CoulombScattering());
} else if (particleName == "alpha" ||
particleName == "He3") {
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
} else if (particleName == "GenericIon") {
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
} else if (particleName == "pi+" ||
particleName == "pi-" ||
particleName == "kaon+" ||
particleName == "kaon-" ||
particleName == "proton" ) {
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
} else if (particleName == "B+" ||
particleName == "B-" ||
particleName == "D+" ||
particleName == "D-" ||
particleName == "Ds+" ||
particleName == "Ds-" ||
particleName == "anti_He3" ||
particleName == "anti_alpha" ||
particleName == "anti_deuteron" ||
particleName == "anti_lambda_c+" ||
particleName == "anti_omega-" ||
particleName == "anti_proton" ||
particleName == "anti_sigma_c+" ||
particleName == "anti_sigma_c++" ||
particleName == "anti_sigma+" ||
particleName == "anti_sigma-" ||
particleName == "anti_triton" ||
particleName == "anti_xi_c+" ||
particleName == "anti_xi-" ||
particleName == "deuteron" ||
particleName == "lambda_c+" ||
particleName == "omega-" ||
particleName == "sigma_c+" ||
particleName == "sigma_c++" ||
particleName == "sigma+" ||
particleName == "sigma-" ||
particleName == "tau+" ||
particleName == "tau-" ||
particleName == "triton" ||
particleName == "xi_c+" ||
particleName == "xi-" ) {
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
}
}
G4EmProcessOptions opt;
opt.SetVerbose(verbose);
opt.SetPolarAngleLimit(0.2);
//opt.SetApplyCuts(true);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
package G4OpenGL
version v4r4
branches cmt doc G4OpenGL
# =============================================================================
# ============ dependencies ===================================================
# =============================================================================
use G4vis_management v* Geant4
use G4UIcommon v* Geant4
use G4externals v* Geant4
# =============================================================================
# ============ library ========================================================
# =============================================================================
library G4OpenGL $(G4LibraryFlags) \
../OpenGL/src/*.cc
# =============================================================================
# ============ macros for using OpenGL driver =================================
# =============================================================================
macro_append G4OpenGL_pp_cppflags " -DG4VIS_USE_OPENGL " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_USE_OPENGLX " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_USE_OPENGLXM " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_USE_OPENGLXAW " \
target-winxp ""
# =============================================================================
# ============= general OpenGL/Mesa setting ===================================
# =============================================================================
set OGLHOME "/afs/cern.ch/sw/contrib/Mesa/3.2/$(CMTCONFIG)"\
target-winxp ""
macro OGLLIBS "-L${OGLHOME}/lib -lGLU -lGL " \
target-winxp ""
set XKEYSYMDB "/usr/lib/X11/XKeysymDB" \
target-winxp ""
path_remove LD_LIBRARY_PATH "Mesa" \
target-winxp ""
path_append LD_LIBRARY_PATH "${OGLHOME}/lib" \
target-winxp ""
# =============================================================================
# ============= mandatory patterns ======== ===================================
# =============================================================================
apply_pattern G4AllCMTpatterns
macro_append G4OpenGL_linkopts " $(OGLLIBS) $(X_linkopts) -lXpm -lXmu -lSM -lICE " \
target-winxp ""
# =============================================================================
# ============ the end ========================================================
# ===========================================================================
private
apply_pattern G4_copy_vis_source
macro G4OpenGL_pp_cppflags " -I${OGLHOME}/include $(X11include) " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_BUILD_OPENGL_DRIVER " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_BUILD_OPENGLX_DRIVER " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_BUILD_OPENGLXM_DRIVER " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4VIS_BUILD_OPENGLXAW_DRIVER " \
target-winxp ""
macro_append G4OpenGL_pp_cppflags " -DG4INTY_BUILD_XT "\
target-winxp ""
macro_append G4OpenGL_shlibflags " $(OGLLIBS) -lXm -lXpm -lXmu $(X_linkopts) " \
target-winxp ""
end_private
apply_pattern disable_package_on platform=target-darwin
apply_pattern disable_package_on platform=target-winxp
v4r4
!-----------------------------------------------------------------------------
! Package : Geant4/G4OpenGL
! Responsible : Gloria CORTI
! Purpose :
!-----------------------------------------------------------------------------
!======================== G4OpenGL v4r4 2011-06-17 ===========================
! 2011-06-17 - Gloria Corti
- Use new G4external package needed for resolving class G4OpenGL2PSAction at
link time
!======================== G4OpenGL v4r3 2011-04-12 ===========================
! 2011-04-12 - Gloria Corti
- Introduce use of pattern to switch off building this package on darwin and
winxp
!======================== G4OpenGL v4r2 2009-11-02 ===========================
! 2009-11-02 - Gloria CORTI
- Remove Xaw from linkopts and shlibflags that do not exist on slc5 build
machine and do not seem to be necessary
! 2009-06-10 - Hubert DEGAUDENZI
- Adapt to new new the external sources are imported.
!======================== G4OpenGL v4r1 2007-06-05 ===========================
! 2007-06-05 - Marco Clemencic
- requirements: fixed a typo in the value of XKEYSYMDB
!========================== G4OpenGL v4r0 2003-11-03 =========================
! 2003-11-03 - Florence RANJARD
- requirements - add G4OpenGL branch to store include files
!=============================================================================
package G4RayTracer
version v5r1p1
branches cmt doc G4RayTracer
# =============================================================================
# ============ dependencies ===================================================
# =============================================================================
use G4vis_management v* Geant4
# =============================================================================
# ============ library ========================================================
# =============================================================================
library G4RayTracer $(G4LibraryFlags) \
../RayTracer/src/*.cc
# =============================================================================
# ============ apply mandatory patterns =======================================
# =============================================================================
apply_pattern G4AllCMTpatterns
# =============================================================================
# ============ the end ========================================================
# ===========================================================================
private
macro G4RayTracer_pp_cppflags "" WIN32 ' /D"G4VIS_ALLOC_EXPORT"'
apply_pattern G4_copy_vis_source
v5r1p1