Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -0,0 +1,38 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
set(name Brachy)
project(${name})
#----------------------------------------------------------------------------
# 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
#
include(${Geant4_USE_FILE})
#----------------------------------------------------------------------------
# Locate sources and headers for this project
# NB: headers are included so they will show up in IDEs
#
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${Geant4_INCLUDE_DIR})
# Setup include directory for this project
file(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
#----------------------------------------------------------------------------
# Add the executable, and link it to the Geant4 libraries
#
add_executable(${name} EXCLUDE_FROM_ALL ${name}.cc ${sources})
target_link_libraries(${name} ${Geant4_LIBRARIES})
+10 -4
View File
@@ -9,19 +9,25 @@ $Id: History,v 1.35 2010-11-29 10:56:53 cirrone Exp $
Category History file
---------------------
12.10.2012 - L. Pandola; tag brachy-V09-05-01
Added a CMakeLists.txt file
11.10.2012 - G. Cosmo; tag brachy-V09-05-00
Explicit inclusion of units and constants headers.
16.09.2011 - S. Guatelli; tag brachy-V09-04-01
14.09.2011 - S. Guatelli; G4 Analysis module substitutes the analysis
done with PI-AIDA. macro.C added.
Done with PI-AIDA. macro.C added.
02.09.2011 - S. Guatelli; scoring mesh introduced.
Sensitive detector and ReadOutGeometry components deleted.
29.11.2010 - G.A.P. Cirrone; tag brachy-V09-03-05
Compilation warnigs removed
Compilation warnigs removed.
26.11.2010 - G.A.P. Cirrone & S. Guatelli; tag brachy-V09-03-04
General code review
General code review.
25.11.2010 -- J.Allison; tag brachy-V09-03-03
Cleaned up use of G4UIExecutive.
@@ -30,7 +36,7 @@ $Id: History,v 1.35 2010-11-29 10:56:53 cirrone Exp $
Fixed compilation error for a missing obsolete include file
03.06.2010 -- Joseph Perl; tag brachy-V09-03-01
Updated vis usage
Updated vis usage.
01.06.2010 -- G.A.P. Cirrone; tag brachy-V09-03-00
G4UIExecutiveand minor revisions
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyDetectorConstructionI.hh,v 1.5 2006-06-29 15:47:13 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// ****************************************
// * *
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyDetectorConstructionIr.hh,v 1.5 2006-06-29 15:47:16 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// ****************************************
// * *
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyDetectorConstructionLeipzig.hh,v 1.5 2006-06-29 15:47:19 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
// ************************************************
@@ -30,8 +30,7 @@
// * *
// *****************************************
//
// $Id: BrachyDetectorMessenger.hh,v 1.7 2006-06-29 15:47:22 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
#ifndef BrachyDetectorMessenger_h
@@ -25,8 +25,7 @@
//
// Code developed by: Susanna Guatelli
//
// $Id: BrachyFactory.hh,v 1.6 2006-06-29 15:47:30 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// **********************************
// * *
@@ -34,8 +34,7 @@
// S.Guatelli
//
//
// $Id: BrachyFactoryI.hh,v 1.7 2006-06-29 15:47:33 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
// --------------------------------------------------------------
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyFactoryIr.hh,v 1.6 2006-06-29 15:47:36 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// **********************************
// * *
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyFactoryLeipzig.hh,v 1.6 2006-06-29 15:47:39 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// **********************************
// * *
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyMaterial.hh,v 1.7 2006-06-29 15:47:42 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// **********************************
// * *
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyPhysicsList.hh,v 1.9 2006-11-15 10:02:17 guatelli Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code review: MGP, 5 November 2006 (still to be completed)
//
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyPrimaryGeneratorAction.hh,v 1.12 2006-06-29 15:47:54 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// ********************************************
// * *
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyPrimaryGeneratorActionI.hh,v 1.6 2006-06-29 15:47:57 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
//
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyPrimaryGeneratorActionIr.hh,v 1.7 2006-06-29 15:47:59 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// *************************************************
// * *
@@ -30,8 +30,7 @@
// * *
// ***********************************************
//
// $Id: BrachyPrimaryGeneratorMessenger.hh,v 1.2 2006-06-29 15:48:02 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
#ifndef BrachyPrimaryGeneratorMessenger_h
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: BrachyRunAction.hh,v 1.11 2006-06-29 15:48:04 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
//
@@ -49,7 +49,7 @@ public:
public:
// store a quantity into a file
void DumpQuantityToFile(G4String & psName, G4String & fileName, G4String & option);
void DumpQuantityToFile(const G4String & psName, const G4String & fileName, const G4String & option);
};
#endif
@@ -37,6 +37,7 @@
// * *
// ****************************************
//
#include "G4SystemOfUnits.hh"
#include "G4CSGSolid.hh"
#include "G4MaterialPropertyVector.hh"
#include "G4SDManager.hh"
@@ -36,10 +36,10 @@
// * *
// ****************************************
//
// $Id: BrachyDetectorConstructionI.cc,v 1.9 2006-06-29 15:48:11 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
#include "G4SystemOfUnits.hh"
#include "BrachyDetectorConstructionI.hh"
#include "G4CSGSolid.hh"
#include "G4Sphere.hh"
@@ -37,10 +37,10 @@
// * *
// ****************************************
//
// $Id: BrachyDetectorConstructionIr.cc,v 1.10 2006-06-29 15:48:13 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
#include "G4SystemOfUnits.hh"
#include "BrachyDetectorConstructionIr.hh"
#include "G4Sphere.hh"
#include "G4RunManager.hh"
@@ -38,11 +38,11 @@
// *******************************************
//
//
// $Id: BrachyDetectorConstructionLeipzig.cc,v 1.10 2006-06-29 15:48:16 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
#include "G4SystemOfUnits.hh"
#include "BrachyDetectorConstructionLeipzig.hh"
#include "G4CSGSolid.hh"
#include "G4Sphere.hh"
@@ -34,8 +34,7 @@
// *********************************
//
//
// $Id: BrachyDetectorMessenger.cc,v 1.12 2006-06-29 15:48:18 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
@@ -34,8 +34,7 @@
// * *
// *******************************
//
// $Id: BrachyFactory.cc,v 1.7 2006-06-29 15:48:23 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Factory of brachytherapic sources
//
@@ -32,8 +32,7 @@
// * *
// *******************************
//
// $Id: BrachyFactoryI.cc,v 1.6 2006-06-29 15:48:26 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "BrachyFactoryI.hh"
#include "BrachyPrimaryGeneratorActionI.hh"
@@ -32,8 +32,7 @@
// * *
// *******************************
//
// $Id: BrachyFactoryIr.cc,v 1.6 2006-06-29 15:48:29 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
#include "BrachyFactoryIr.hh"
@@ -32,8 +32,7 @@
// * *
// *******************************
//
// $Id: BrachyFactoryLeipzig.cc,v 1.6 2006-06-29 15:48:31 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
@@ -32,15 +32,16 @@
// * *
// *******************************
//
// $Id: BrachyMaterial.cc,v 1.7 2006-06-29 15:48:33 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
#include "Randomize.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "G4MaterialTable.hh"
#include "G4MaterialPropertiesTable.hh"
#include "G4MaterialPropertyVector.hh"
#include "globals.hh"
#include "G4MaterialTable.hh"
#include "Randomize.hh"
#include "G4RunManager.hh"
#include "G4Element.hh"
#include "G4ElementTable.hh"
@@ -35,11 +35,11 @@
// * *
// **********************************
//
// $Id: BrachyPhysicsList.cc,v 1.15 2010-11-24 15:56:19 cirrone Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "BrachyPhysicsList.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProductionCutsTable.hh"
#include "G4ProcessManager.hh"
@@ -37,8 +37,7 @@
// * *
// ********************************************
//
// $Id: BrachyPrimaryGeneratorAction.cc,v 1.19 2009-02-23 17:34:26 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "globals.hh"
#include "BrachyPrimaryGeneratorAction.hh"
@@ -37,16 +37,15 @@
// * *
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionI.cc,v 1.10 2006-06-29 15:48:48 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "BrachyPrimaryGeneratorActionI.hh"
#include "globals.hh"
#include "G4ParticleTable.hh"
#include "Randomize.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleTable.hh"
#include "G4Event.hh"
#include "G4ParticleGun.hh"
//#include "G4IonTable.hh"
#include "G4UImanager.hh"
#include "G4RunManager.hh"
@@ -37,16 +37,15 @@
// * *
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionIr.cc,v 1.11 2006-06-29 15:48:51 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "BrachyPrimaryGeneratorActionIr.hh"
#include "globals.hh"
#include "G4ParticleTable.hh"
#include "Randomize.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleTable.hh"
#include "G4Event.hh"
#include "G4ParticleGun.hh"
//#include "G4IonTable.hh"
#include "G4UImanager.hh"
#include "G4RunManager.hh"
@@ -34,8 +34,7 @@
// *****************************************
//
//
// $Id: BrachyPrimaryGeneratorMessenger.cc,v 1.3 2006-06-29 15:48:54 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
@@ -38,8 +38,7 @@
// * *
// *******************************
//
// $Id: BrachyRunAction.cc,v 1.18 2006-06-29 15:48:57 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "BrachyRunAction.hh"
@@ -31,16 +31,17 @@
Original code from geant4/examples/extended/runAndEvent/RE03, by M. Asai
*/
#include <map>
#include <fstream>
#include "BrachyUserScoreWriter.hh"
#include "G4SystemOfUnits.hh"
#include "BrachyAnalysis.hh"
#include "G4MultiFunctionalDetector.hh"
#include "G4SDParticleFilter.hh"
#include "G4VPrimitiveScorer.hh"
#include "G4VScoringMesh.hh"
#include <map>
#include <fstream>
// The default output is
// voxelX, voxelY, voxelZ, edep
// The BrachyUserScoreWriter allows to change the format of the output file.
@@ -56,7 +57,7 @@ BrachyUserScoreWriter::BrachyUserScoreWriter(): G4VScoreWriter()
BrachyUserScoreWriter::~BrachyUserScoreWriter()
{;}
void BrachyUserScoreWriter::DumpQuantityToFile(G4String & psName, G4String & fileName, G4String & option)
void BrachyUserScoreWriter::DumpQuantityToFile(const G4String & psName, const G4String & fileName, const G4String & option)
{
if(verboseLevel > 0) {
G4cout << "BrachyUserScorer-defined DumpQuantityToFile() method is invoked."