Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -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(RE05)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
@@ -16,6 +16,9 @@ track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
02-10-21 M. Asai (exampleRE05-V10-07-00)
|
||||
- Migration to the new SteppingVerbose.
|
||||
|
||||
11-11-20 M. Asai (exampleRE05-V10-06-00)
|
||||
- Migration to G4RunManagerFactory.
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include "G4Types.hh"
|
||||
|
||||
#include "G4RunManagerFactory.hh"
|
||||
#include "RE05WorkerInitialization.hh"
|
||||
#include "RE05SteppingVerbose.hh"
|
||||
|
||||
#include "G4UImanager.hh"
|
||||
@@ -56,14 +55,11 @@ int main(int argc,char** argv)
|
||||
ui = new G4UIExecutive(argc, argv);
|
||||
}
|
||||
|
||||
// Setting the application-sepcific SteppingVerbose
|
||||
auto verbosity = new RE05SteppingVerbose;
|
||||
G4VSteppingVerbose::SetInstance(verbosity);
|
||||
|
||||
// Creating the run manager
|
||||
auto runManager = G4RunManagerFactory::CreateRunManager();
|
||||
if(runManager->GetRunManagerType() == G4RunManager::masterRM)
|
||||
{
|
||||
runManager->SetNumberOfThreads(4);
|
||||
runManager->SetUserInitialization(new RE05WorkerInitialization);
|
||||
}
|
||||
|
||||
G4String parallelWorldName = "ReadoutWorld";
|
||||
// User Initialization classes (mandatory)
|
||||
@@ -108,6 +104,7 @@ int main(int argc,char** argv)
|
||||
// be deleted in the main() program !
|
||||
delete visManager;
|
||||
delete runManager;
|
||||
delete verbosity;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -49,7 +49,10 @@ class RE05SteppingVerbose : public G4SteppingVerbose
|
||||
public:
|
||||
|
||||
RE05SteppingVerbose();
|
||||
~RE05SteppingVerbose();
|
||||
virtual ~RE05SteppingVerbose();
|
||||
|
||||
virtual G4VSteppingVerbose* Clone()
|
||||
{ return new RE05SteppingVerbose; }
|
||||
|
||||
void StepInfo();
|
||||
void TrackingStarted();
|
||||
|
||||
@@ -1,47 +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 RE05/include/RE05WorkerInitialization.hh
|
||||
/// \brief Definition of the RE05WorkerInitialization class
|
||||
//
|
||||
|
||||
#ifndef RE05WorkerInitialization_H
|
||||
#define RE05WorkerInitialization_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UserWorkerInitialization.hh"
|
||||
|
||||
class RE05WorkerInitialization : public G4UserWorkerInitialization
|
||||
{
|
||||
public:
|
||||
RE05WorkerInitialization();
|
||||
virtual ~RE05WorkerInitialization();
|
||||
|
||||
public:
|
||||
virtual void WorkerInitialize() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,53 +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 RE05/src/RE05WorkerInitialization.cc
|
||||
/// \brief Implementation of the RE05WorkerInitialization class
|
||||
//
|
||||
|
||||
#include "RE05WorkerInitialization.hh"
|
||||
#include "RE05SteppingVerbose.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
RE05WorkerInitialization::RE05WorkerInitialization()
|
||||
: G4UserWorkerInitialization()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
RE05WorkerInitialization::~RE05WorkerInitialization()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void RE05WorkerInitialization::WorkerInitialize() const
|
||||
{
|
||||
G4VSteppingVerbose* verbosity = new RE05SteppingVerbose;
|
||||
G4VSteppingVerbose::SetInstance(verbosity);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
Reference in New Issue
Block a user