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,64 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(radioprotection)
#----------------------------------------------------------------------------
# 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
#
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 executable, and link it to the Geant4 libraries
#
add_executable(remsim remsim.cc ${sources} ${headers})
target_link_libraries(remsim ${Geant4_LIBRARIES} )
#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
# build radioprotection. This is so that we can run the executable directly because it
# relies on these scripts being in the current working directory.
#
set(radioprotection_SCRIPTS
interactive.mac moon.mac physics.mac vehicle1.mac vehicle2.mac vis.mac
)
foreach(_script ${radioprotection_SCRIPTS})
configure_file(
${PROJECT_SOURCE_DIR}/${_script}
${PROJECT_BINARY_DIR}/${_script}
COPYONLY
)
endforeach()
#----------------------------------------------------------------------------
# Add program to the project targets
# (this avoids the need of typing the program name after make)
#
add_custom_target(radioprotection DEPENDS remsim)
#----------------------------------------------------------------------------
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
#
install(TARGETS remsim DESTINATION bin)
+12
View File
@@ -9,6 +9,18 @@ $Id: History,v 1.28 2010-11-18 16:23:42 allison Exp $
Category History file
---------------------
28.11.2012 G. Cosmo, tag radioprotection-V09-05-03
Fixed cases of variable shadowing.
25.10.2012 L. Pandola, tag radioprotection-V09-05-02
Replace CMakeLists.txt to deal with UI/VIS
12.10.2012 G. Cosmo, tag radioprotection-V09-05-01
Explicit inclusion of units and constants headers.
08.12.2011 P. Mato. tag radioprotection-V09-05-00
Added CMakeLists.txt file
31.10.2011 L. Pandola. Migrated G4Exceptions to the new scheme
tag radioprotection-V09-04-02
@@ -29,7 +29,7 @@
// * *
// **********************************
//
// $Id: RemSimAstronautDecorator.hh,v 1.8 2006-06-29 16:22:06 gunter Exp $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
@@ -30,8 +30,7 @@
// * *
// ***************************
//
// $Id: RemSimDecorator.hh,v 1.10 2006-06-29 16:22:10 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
//
@@ -29,8 +29,7 @@
// * *
// **************************************
//
// $Id: RemSimDetectorConstruction.hh,v 1.13 2006-06-29 16:22:12 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
//
@@ -30,8 +30,7 @@
// * *
// *****************************************
//
// $Id: RemSimDetectorMessenger.hh,v 1.9 2006-06-29 16:22:37 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
#ifndef RemSimDetectorMessenger_h
@@ -30,8 +30,7 @@
// * *
// **********************************
//
// $Id: RemSimEventAction.hh,v 1.5 2006-06-29 16:22:43 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author : Susanna Guatelli, guatelli@ge.infn.it
//
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: RemSimMaterial.hh,v 1.6 2006-06-29 16:22:51 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// **********************************
// * *
@@ -30,21 +30,22 @@
// * *
// **************************************
//
// $Id: RemSimMoonHabitat.hh,v 1.6 2006-06-29 16:22:53 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
//
#ifndef RemSimMoonHabitat_h
#define RemSimMoonHabitat_h 1
class RemSimVGeometryComponent;
class G4VPhysicalVolume;
class G4Box;
class G4LogicalVolume;
class G4Material;
class RemSimMaterial;
class G4VisAttributes;
#include "RemSimVGeometryComponent.hh"
class RemSimMoonHabitat: public RemSimVGeometryComponent
{
public:
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimMuonStandard.hh,v 1.3 2006-06-29 16:22:55 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimPhysicsList.hh,v 1.6 2006-06-29 16:23:01 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author: Susanna Guatelli, susanna@uow.edu.au
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimPhysicsListMessenger.hh,v 1.4 2006-06-29 16:23:03 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author: Susanna Guatelli, guatelli@ge.infn.it
@@ -30,8 +30,7 @@
// * *
// ************************************************
//
// $Id: RemSimPrimaryGeneratorMessenger.hh,v 1.10 2006-06-29 16:23:09 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//Code developed by: S.Guatelli, guatelli@ge.infn.it
//
@@ -32,8 +32,7 @@
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
//
// $Id: RemSimRoofDecorator.hh,v 1.6 2006-06-29 16:23:13 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#ifndef RemSimRoofDecorator_h
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: RemSimRunAction.hh,v 1.10 2006-06-29 16:23:15 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimShelterSPEDecorator.hh,v 1.5 2006-06-29 16:23:19 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimShieldingDecorator.hh,v 1.7 2006-06-29 16:23:21 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: RemSimSteppingAction.hh,v 1.4 2006-06-29 16:23:23 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author: Susanna Guatelli (guatelli@ge.infn.it)
//
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: RemSimSteppingActionMessenger.hh,v 1.3 2006-06-29 16:23:25 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author: Susanna Guatelli, guatelli@ge.infn.it
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimVGeometryComponent.hh,v 1.8 2006-06-29 16:23:27 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimVehicle1.hh,v 1.8 2006-06-29 16:23:29 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
+1 -2
View File
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: remsim.cc,v 1.16 2010-11-18 16:23:18 allison Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
#include "G4RunManager.hh"
#include "G4UImanager.hh"
@@ -29,12 +29,13 @@
// * *
// **********************************
//
// $Id: RemSimAstronautDecorator.cc,v 1.7 2006-06-29 16:23:33 gunter Exp $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "RemSimAstronautDecorator.hh"
@@ -30,8 +30,7 @@
// * *
// ***************************
//
// $Id: RemSimDecorator.cc,v 1.6 2006-06-29 16:23:37 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
//
@@ -30,21 +30,21 @@
// * *
// **************************************
//
// $Id: RemSimDetectorConstruction.cc,v 1.17 2006-06-29 16:23:39 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, susanna@uow.edu.au
//
#include "RemSimDetectorConstruction.hh"
#include "RemSimMaterial.hh"
#include "RemSimDetectorMessenger.hh"
#include "globals.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "G4Box.hh"
#include "G4Tubs.hh"
#include "G4LogicalVolume.hh"
#include "G4ThreeVector.hh"
#include "G4PVPlacement.hh"
#include "globals.hh"
#include "G4RunManager.hh"
#include "G4Colour.hh"
#include "RemSimVGeometryComponent.hh"
@@ -34,8 +34,7 @@
// *********************************
//
//
// $Id: RemSimDetectorMessenger.cc,v 1.13 2006-06-29 16:23:41 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
@@ -30,8 +30,7 @@
// **********************************
//
//
// $Id: RemSimEventAction.cc,v 1.11 2010-06-07 05:19:47 perl Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author : Susanna Guatelli, guatelli@ge.infn.it
//
@@ -32,18 +32,19 @@
// * *
// *******************************
//
// $Id: RemSimMaterial.cc,v 1.7 2006-06-29 16:23:53 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "RemSimMaterial.hh"
#include "globals.hh"
#include "G4SystemOfUnits.hh"
#include "G4MaterialPropertiesTable.hh"
#include "G4MaterialPropertyVector.hh"
#include "globals.hh"
#include "G4MaterialTable.hh"
#include "G4RunManager.hh"
#include "G4Element.hh"
#include "G4ElementTable.hh"
#include "RemSimMaterial.hh"
RemSimMaterial::RemSimMaterial():
matPb(0), matAir(0), matH2O(0), Al(0), nylon(0), mylar(0),
@@ -129,7 +130,7 @@ void RemSimMaterial::DefineMaterials()
// Air material
G4double airDensity = 1.290*mg/cm3;
G4Material* matAir = new G4Material("Air",airDensity,2);
matAir = new G4Material("Air",airDensity,2);
matAir -> AddElement(elN,0.7);
matAir -> AddElement(elO,0.3);
@@ -30,15 +30,15 @@
// * *
// **************************************
//
// $Id: RemSimMoonHabitat.cc,v 1.7 2006-06-29 16:23:55 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author:Susanna Guatelli, guatelli@ge.infn.it
//
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4Material.hh"
#include "RemSimMoonHabitat.hh"
#include "RemSimMaterial.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "G4Box.hh"
#include "G4Trd.hh"
#include "G4LogicalVolume.hh"
@@ -49,6 +49,7 @@
#include "RemSimDecorator.hh"
#include "RemSimAstronautDecorator.hh"
#include "G4SubtractionSolid.hh"
RemSimMoonHabitat::RemSimMoonHabitat()
{
pMaterial = new RemSimMaterial();
@@ -23,15 +23,15 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimPhysicsList.cc,v 1.10 2006-06-29 16:24:03 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author: Susanna Guatelli, susanna@uow.edu.au
#include "RemSimPhysicsList.hh"
#include "RemSimPhysicsListMessenger.hh"
#include "G4ParticleDefinition.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleDefinition.hh"
#include "G4PhysListFactory.hh"
#include "G4VPhysicsConstructor.hh"
@@ -54,6 +54,7 @@
#include "HadronPhysicsQGSP_BIC_HP.hh"
#include "G4RadioactiveDecayPhysics.hh"
#include "HadronPhysicsQGSP_BIC.hh"
// The electromagnetic physics and the decay are
// registered by default. The user has to execute the
// macro physics.mac to activate the hadronic component of the physics.
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimPhysicsListMessenger.cc,v 1.4 2006-06-29 16:24:05 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Author: Susanna Guatelli, guatelli@ge.infn.it
@@ -26,16 +26,19 @@
//
// $Id: RemSimPrimaryGeneratorAction.cc,v 1.17 2006-06-29 16:24:09 gunter Exp $// Author: Susanna Guatelli, guatelli@ge.infn.it
#include <fstream>
#include <cmath>
#include "RemSimPrimaryGeneratorAction.hh"
#include "RemSimPrimaryGeneratorMessenger.hh"
#include "G4SystemOfUnits.hh"
#include "G4Event.hh"
#include "G4ParticleGun.hh"
#include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh"
#include "Randomize.hh"
#include <fstream>
#include "G4DataVector.hh"
#include "RemSimPrimaryGeneratorMessenger.hh"
#include <math.h>
RemSimPrimaryGeneratorAction::RemSimPrimaryGeneratorAction()
{
@@ -165,9 +168,9 @@ void RemSimPrimaryGeneratorAction::ReadProbability(G4String fileName)
{
if (k%nColumns != 0)
{
G4double energy = a *MeV;
energies -> push_back(energy);
// G4cout << "energy: " << energy << G4endl;
G4double ene = a *MeV;
energies -> push_back(ene);
// G4cout << "energy: " << ene << G4endl;
k++;
}
else if (k%nColumns == 0)
@@ -33,8 +33,7 @@
// *****************************************
//
//
// $Id: RemSimPrimaryGeneratorMessenger.cc,v 1.11 2006-06-29 16:24:11 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
@@ -32,15 +32,17 @@
// Code developed by: S.Guatelli, susanna@uow.edu.au
//
//
// $Id: RemSimRoofDecorator.cc,v 1.7 2006-06-29 16:24:15 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "RemSimRoofDecorator.hh"
#include "RemSimDecorator.hh"
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "G4Trd.hh"
#include "G4LogicalVolume.hh"
#include "G4VPhysicalVolume.hh"
@@ -48,7 +50,6 @@
#include "G4VisAttributes.hh"
#include "G4RunManager.hh"
RemSimRoofDecorator::RemSimRoofDecorator(RemSimVGeometryComponent* comp)
: RemSimDecorator(comp)
{
@@ -31,8 +31,7 @@
// *******************************
//
// Code developed by: S.Guatelli, susanna@uow.edu.au
// $Id: RemSimRunAction.cc,v 1.14 2006-06-29 16:24:17 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
#include "RemSimRunAction.hh"
@@ -23,26 +23,25 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimShelterSPEDecorator.cc,v 1.3 2006-06-29 16:24:21 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, susanna@uow.edu.au
//
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "RemSimShelterSPEDecorator.hh"
#include "RemSimDecorator.hh"
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4VPhysicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4VisAttributes.hh"
#include "G4RunManager.hh"
RemSimShelterSPEDecorator::RemSimShelterSPEDecorator(RemSimVGeometryComponent* comp)
: RemSimDecorator(comp)
{
@@ -23,17 +23,18 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimShieldingDecorator.cc,v 1.6 2006-06-29 16:24:23 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, susanna@uow.edu.au
//
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "RemSimShieldingDecorator.hh"
#include "RemSimDecorator.hh"
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4VPhysicalVolume.hh"
@@ -24,25 +24,26 @@
// ********************************************************************
//
//
// $Id: RemSimSteppingAction.cc,v 1.10 2006-06-29 16:24:25 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
// Author: Susanna Guatelli (susanna@uow.edu.au)
//
#include "RemSimSteppingAction.hh"
#include "RemSimPrimaryGeneratorAction.hh"
#include "RemSimSteppingActionMessenger.hh"
#include "RemSimAnalysis.hh"
#include "G4ios.hh"
#include "G4SystemOfUnits.hh"
#include "G4SteppingManager.hh"
#include "G4Step.hh"
#include "G4Track.hh"
#include "G4StepPoint.hh"
#include "G4ParticleDefinition.hh"
#include "G4VPhysicalVolume.hh"
#include "RemSimSteppingAction.hh"
#include "RemSimPrimaryGeneratorAction.hh"
#include "G4TrackStatus.hh"
#include "RemSimSteppingActionMessenger.hh"
#include "RemSimAnalysis.hh"
RemSimSteppingAction::RemSimSteppingAction(RemSimPrimaryGeneratorAction* primary):
primaryAction(primary)
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimVGeometryComponent.cc,v 1.4 2006-06-29 16:24:29 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
@@ -23,13 +23,14 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RemSimVehicle1.cc,v 1.9 2006-06-29 16:24:31 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// Code developed by: S.Guatelli, guatelli@ge.infn.it
//
#include "RemSimVGeometryComponent.hh"
#include "RemSimMaterial.hh"
#include "G4SystemOfUnits.hh"
#include "G4Material.hh"
#include "RemSimVehicle1.hh"
#include "G4Box.hh"