Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup the project
|
||||
#
|
||||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
|
||||
project(N01)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# 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()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup Geant4 include directories and compile definitions
|
||||
# Setup include directory for this project
|
||||
#
|
||||
include(${Geant4_USE_FILE})
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Locate sources and headers for this project
|
||||
# NB: headers are included so they will show up in IDEs
|
||||
#
|
||||
file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
|
||||
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the executable, and link it to the Geant4 libraries
|
||||
#
|
||||
add_executable(exampleN01 exampleN01.cc ${sources} ${headers})
|
||||
target_link_libraries(exampleN01 ${Geant4_LIBRARIES})
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Copy all scripts to the build directory, i.e. the directory in which we
|
||||
# build N01. This is so that we can run the executable directly because it
|
||||
# relies on these scripts being in the current working directory.
|
||||
#
|
||||
set(EXAMPLEN01_SCRIPTS
|
||||
exampleN01.err
|
||||
exampleN01.in
|
||||
exampleN01.out
|
||||
)
|
||||
|
||||
foreach(_script ${EXAMPLEN01_SCRIPTS})
|
||||
configure_file(
|
||||
${PROJECT_SOURCE_DIR}/${_script}
|
||||
${PROJECT_BINARY_DIR}/${_script}
|
||||
COPYONLY
|
||||
)
|
||||
endforeach()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# For internal Geant4 use - but has no effect if you build this
|
||||
# example standalone
|
||||
#
|
||||
add_custom_target(N01 DEPENDS exampleN01)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
|
||||
#
|
||||
install(TARGETS exampleN01 DESTINATION bin)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:05:40 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.1 1999-01-07 16:05:40 gunter Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.12 2006/06/16 10:24:40 gcosmo Exp $
|
||||
$Id: History,v 1.12 2006-06-16 10:24:40 gcosmo Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -14,7 +14,11 @@ track of all tags.
|
||||
----------------------------------------------------------
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
|
||||
29 November 2011 Ben Morgan (exampleN01-V09-04-00)
|
||||
- CMakeLists.txt edited to add standard UI/Vis activation and copying of scripts
|
||||
to build directory, plus comments and neatification.
|
||||
|
||||
16 June 2006 Gabriele Cosmo (exampleN01-V08-00-00)
|
||||
- Use coherent allocation scheme for user-classes and
|
||||
initialisation in main().
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: README,v 1.3 2002/07/02 18:35:01 asaim Exp $
|
||||
$Id: README,v 1.3 2002-07-02 18:35:01 asaim Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: exampleN01.cc,v 1.6 2006/06/29 17:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02-patch-01 $
|
||||
// $Id: exampleN01.cc,v 1.6 2006-06-29 17:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
############################################
|
||||
|
||||
*************************************************************
|
||||
Geant4 version Name: geant4-09-04-ref-00 (17-December-2010)
|
||||
Geant4 version Name: geant4-09-05-ref-00 (2-December-2011)
|
||||
Copyright : Geant4 Collaboration
|
||||
Reference : NIM A 506 (2003), 250-303
|
||||
WWW : http://cern.ch/geant4
|
||||
@@ -15,21 +15,21 @@
|
||||
|
||||
Index : 0 used in the geometry : Yes recalculation needed : No
|
||||
Material : ArgonGas
|
||||
Range cuts : gamma 0 fm e- 0 fm e+ 0 fm proton 0 fm
|
||||
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
|
||||
|
||||
Index : 1 used in the geometry : Yes recalculation needed : No
|
||||
Material : Aluminum
|
||||
Range cuts : gamma 0 fm e- 0 fm e+ 0 fm proton 0 fm
|
||||
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
|
||||
|
||||
Index : 2 used in the geometry : Yes recalculation needed : No
|
||||
Material : Lead
|
||||
Range cuts : gamma 0 fm e- 0 fm e+ 0 fm proton 0 fm
|
||||
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
|
||||
@@ -40,6 +40,7 @@ Start Run processing.
|
||||
=====================================
|
||||
G4EventManager::ProcessOneEvent()
|
||||
=====================================
|
||||
G4PrimaryTransformer::PrimaryVertex (-2000(mm),0(mm),0(mm),0(nsec))
|
||||
1 primaries are passed from G4EventTransformer.
|
||||
!!!!!!! Now start processing an event !!!!!!!
|
||||
|
||||
@@ -98,6 +99,7 @@ Terminate current event processing.
|
||||
=====================================
|
||||
G4EventManager::ProcessOneEvent()
|
||||
=====================================
|
||||
G4PrimaryTransformer::PrimaryVertex (-2000(mm),0(mm),0(mm),0(nsec))
|
||||
1 primaries are passed from G4EventTransformer.
|
||||
!!!!!!! Now start processing an event !!!!!!!
|
||||
|
||||
@@ -109,7 +111,7 @@ Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolu
|
||||
0 -2e+03 0 0 1e+03 0 0 0 expHall initStep
|
||||
1 -1.6e+03 40.1 0 1e+03 0 403 403 tracker Transportation
|
||||
2 -421 158 0 1e+03 0 1.18e+03 1.59e+03 expHall Transportation
|
||||
3 0 200 0 1e+03 0 423 2.01e+03 caloBlock Transportation
|
||||
3 5.68e-14 200 0 1e+03 0 423 2.01e+03 caloBlock Transportation
|
||||
4 90 209 0 1e+03 0 90.4 2.1e+03 caloLayer Transportation
|
||||
5 110 211 0 1e+03 0 20.1 2.12e+03 caloBlock Transportation
|
||||
6 190 219 0 1e+03 0 80.4 2.2e+03 caloLayer Transportation
|
||||
@@ -156,6 +158,7 @@ Terminate current event processing.
|
||||
=====================================
|
||||
G4EventManager::ProcessOneEvent()
|
||||
=====================================
|
||||
G4PrimaryTransformer::PrimaryVertex (-2000(mm),0(mm),0(mm),0(nsec))
|
||||
1 primaries are passed from G4EventTransformer.
|
||||
!!!!!!! Now start processing an event !!!!!!!
|
||||
|
||||
@@ -167,7 +170,7 @@ Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolu
|
||||
0 -2e+03 0 0 1e+03 0 0 0 expHall initStep
|
||||
1 -1.6e+03 0 40 1e+03 0 402 402 tracker Transportation
|
||||
2 -400 0 160 1e+03 0 1.21e+03 1.61e+03 expHall Transportation
|
||||
3 0 0 200 1e+03 0 402 2.01e+03 caloBlock Transportation
|
||||
3 5.68e-14 0 200 1e+03 0 402 2.01e+03 caloBlock Transportation
|
||||
4 90 0 209 1e+03 0 90.4 2.1e+03 caloLayer Transportation
|
||||
5 110 0 211 1e+03 0 20.1 2.12e+03 caloBlock Transportation
|
||||
6 190 0 219 1e+03 0 80.4 2.2e+03 caloLayer Transportation
|
||||
@@ -214,7 +217,7 @@ Terminate current event processing.
|
||||
Run terminated.
|
||||
Run Summary
|
||||
Number of events processed : 3
|
||||
User=0.01s Real=0s Sys=0s
|
||||
User=0.01s Real=0.01s Sys=0s
|
||||
G4 kernel has come to Quit state.
|
||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Maximum number of tracks in the urgent stack : 1
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN01DetectorConstruction.hh,v 1.6 2006/06/29 17:47:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: ExN01DetectorConstruction.hh,v 1.6 2006-06-29 17:47:13 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
|
||||
#ifndef ExN01DetectorConstruction_H
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN01PhysicsList.hh,v 1.6 2006/06/29 17:47:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: ExN01PhysicsList.hh,v 1.6 2006-06-29 17:47:15 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN01PrimaryGeneratorAction.hh,v 1.5 2006/06/29 17:47:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: ExN01PrimaryGeneratorAction.hh,v 1.5 2006-06-29 17:47:17 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
|
||||
#ifndef ExN01PrimaryGeneratorAction_h
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN01DetectorConstruction.cc,v 1.9 2006/06/29 17:47:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: ExN01DetectorConstruction.cc,v 1.9 2006-06-29 17:47:19 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
|
||||
#include "ExN01DetectorConstruction.hh"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN01PhysicsList.cc,v 1.6 2006/06/29 17:47:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: ExN01PhysicsList.cc,v 1.6 2006-06-29 17:47:21 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN01PrimaryGeneratorAction.cc,v 1.6 2006/06/29 17:47:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: ExN01PrimaryGeneratorAction.cc,v 1.6 2006-06-29 17:47:23 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
|
||||
#include "ExN01PrimaryGeneratorAction.hh"
|
||||
|
||||
Reference in New Issue
Block a user