Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -1,9 +1,6 @@
#----------------------------------------------------------------------------
# Setup the project
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()
cmake_minimum_required(VERSION 3.12...3.20)
project(RE06)
#----------------------------------------------------------------------------
@@ -16,6 +16,9 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Feb. 10, 2021 M. Asai (exampleRE06-V10-07-00)
- Migration to new SteppingVerbose.
Nov. 11, 2020 M. Asai (exampleRE06-V10-06-02)
- Migration to G4RunManagerFactory.
@@ -48,7 +48,6 @@
#include "RE06RunAction.hh"
#include "RE06SteppingVerbose.hh"
#include "RE06ActionInitialization.hh"
#include "RE06WorkerInitialization.hh"
int main(int argc,char** argv)
{
@@ -59,17 +58,12 @@ int main(int argc,char** argv)
}
// Construct the stepping verbose class
//
auto verbosity = new RE06SteppingVerbose;
G4VSteppingVerbose::SetInstance(verbosity);
// Construct the run manager
//
auto runManager = G4RunManagerFactory::CreateRunManager();
if(runManager->GetRunManagerType() == G4RunManager::masterRM)
{
runManager->SetNumberOfThreads(4);
runManager->SetUserInitialization(new RE06WorkerInitialization);
}
// Set mandatory initialization classes
//
@@ -112,14 +106,15 @@ int main(int argc,char** argv)
UImanager->ApplyCommand(command+fileName);
}
// Job termination
// Free the store:
// user actions, physics_list and detector_description are
// owned and deleted by the run manager, so they should not
// be deleted in the main() program !
// Job termination
// Free the store:
// user actions, physics_list and detector_description are
// owned and deleted by the run manager, so they should not
// be deleted in the main() program !
delete visManager;
delete runManager;
delete verbosity;
return 0;
}
File diff suppressed because it is too large Load Diff
@@ -45,6 +45,9 @@ class RE06SteppingVerbose : public G4VSteppingVerbose
RE06SteppingVerbose();
virtual ~RE06SteppingVerbose();
virtual G4VSteppingVerbose* Clone()
{ return new RE06SteppingVerbose; }
void InitializeTimers();
void Report();
@@ -1,48 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
/// \file include/RE06WorkerInitialization.hh
/// \brief Definition of the RE06WorkerInitialization class
//
#ifndef RE06WorkerInitialization_H
#define RE06WorkerInitialization_H 1
#include "globals.hh"
#include "G4UserWorkerInitialization.hh"
class RE06WorkerInitialization : public G4UserWorkerInitialization
{
public:
RE06WorkerInitialization();
virtual ~RE06WorkerInitialization();
virtual void WorkerInitialize() const;
};
#endif
@@ -1,55 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
/// \file src/RE06WorkerInitialization.cc
/// \brief Implementation of the RE06WorkerInitialization class
//
#include "RE06WorkerInitialization.hh"
#include "RE06SteppingVerbose.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
RE06WorkerInitialization::RE06WorkerInitialization()
{;}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
RE06WorkerInitialization::~RE06WorkerInitialization()
{;}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void RE06WorkerInitialization::WorkerInitialize() const
{
G4VSteppingVerbose* verbosity = new RE06SteppingVerbose;
G4VSteppingVerbose::SetInstance(verbosity);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......