Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -1,6 +1,9 @@
#---Adding all HepMC examples subdirectories explicitly
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
find_package(Geant4)
include(${Geant4_USE_FILE})
@@ -1,6 +1,9 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(HepMCEx01)
#----------------------------------------------------------------------------
@@ -34,7 +34,7 @@
#include "G4Types.hh"
#include "FTFP_BERT.hh"
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "ExN04DetectorConstruction.hh"
@@ -62,9 +62,9 @@ int main(int argc,char** argv)
G4VSteppingVerbose* verbosity = new ExN04SteppingVerbose;
G4VSteppingVerbose::SetInstance(verbosity);
// Run manager
// Serial only Run manager
//
G4RunManager* runManager = new G4RunManager;
auto* runManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// User Initialization classes (mandatory)
//
@@ -14,6 +14,12 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Novemebr 13th 2020 Ben Morgan (HepMCEx01-V10-06-01)
- Enforce use of Serial RunManager.
November 10th 2020 Ben Morgan (HepMCEx01-V10-06-00)
- Migration to G4RunManagerFactory.
September 4th 2018 I. Hrivnacova (HepMCEx01-V10-04-00)
- Coding guidelines
- Updated CMake: removed gfortran (obsolete)
@@ -1,6 +1,9 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(example_MyPythia)
find_package(Geant4 REQUIRED)
@@ -1,6 +1,9 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(HepMCEx02)
#----------------------------------------------------------------------------
@@ -28,14 +28,14 @@
//
//
//
//
//
// --------------------------------------------------------------
// GEANT 4 - example of HepMC-interface
// --------------------------------------------------------------
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "H02DetectorConstruction.hh"
@@ -55,7 +55,7 @@ int main(int argc, char** argv)
ui = new G4UIExecutive(argc, argv);
}
G4RunManager* runManager= new G4RunManager;
auto* runManager= G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// User Initialization classes (mandatory)
//
@@ -82,14 +82,14 @@ int main(int argc, char** argv)
visManager-> Initialize();
G4cout << G4endl;
//get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
//get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
if (!ui) { // batch mode
visManager-> SetVerboseLevel("quiet");
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager-> ApplyCommand(command+fileName);
UImanager-> ApplyCommand(command+fileName);
} else { // interactive mode : define UI session
ui-> SessionStart();
delete ui;
@@ -14,6 +14,12 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
November 13th 2020 Ben Morgan (HepMCEx02-V10-06-01)
- Enforce use of Serial RunManager.
November 10th 2020 Ben Morgan (HepMCEx02-V10-06-00)
- Migration to G4RunManagerFactory.
September 4th 2018 I. Hrivnacova (HepMCEx02-V10-04-00)
- Coding guidelines
- Updated CMake: removed gfortran (obsolete)
@@ -1,6 +1,9 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(example_MyPythia)
find_package(Geant4 REQUIRED)
@@ -1,6 +1,9 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(MCTruth)
#----------------------------------------------------------------------------
@@ -14,6 +14,12 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
13 November 2020 B. Morgan (mctruthex-V10-06-01)
- Enforce use of Serial RunManager.
10 November 2020 B. Morgan (mctruthex-V10-06-00)
- Migration to G4RunManagerFactory.
4 September 2018 I. Hrivnacova (mctruthex-V10-04-00)
- coding guidelines
@@ -27,7 +27,7 @@
/// \brief Main program of the eventgenerator/HepMC/MCTruth example
//
//
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "FTFP_BERT.hh"
@@ -41,8 +41,8 @@
int main()
{
// Construct the default run manager
G4RunManager* runManager = new G4RunManager;
// Construct a serial run manager
auto* runManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// set mandatory initialization classes
runManager->SetUserInitialization(new DetectorConstruction);