Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -30,21 +30,16 @@
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4Types.hh"
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
#include "G4MTRunManager.hh"
|
||||
#else
|
||||
#include "G4RunManager.hh"
|
||||
#endif
|
||||
|
||||
#include "G4RunManagerFactory.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4SteppingVerbose.hh"
|
||||
#include "Randomize.hh"
|
||||
|
||||
#include "DetectorConstruction.hh"
|
||||
#include "PhysicsList.hh"
|
||||
#include "ActionInitialization.hh"
|
||||
#include "SteppingVerbose.hh"
|
||||
|
||||
#include "G4UIExecutive.hh"
|
||||
#include "G4VisExecutive.hh"
|
||||
@@ -61,18 +56,17 @@ int main(int argc,char** argv) {
|
||||
|
||||
//choose the Random engine
|
||||
G4Random::setTheEngine(new CLHEP::RanecuEngine);
|
||||
|
||||
// Construct the default run manager
|
||||
#ifdef G4MULTITHREADED
|
||||
G4MTRunManager* runManager = new G4MTRunManager;
|
||||
G4int nThreads = G4Threading::G4GetNumberOfCores();
|
||||
if (argc==3) nThreads = G4UIcommand::ConvertToInt(argv[2]);
|
||||
runManager->SetNumberOfThreads(nThreads);
|
||||
#else
|
||||
//my Verbose output class
|
||||
G4VSteppingVerbose::SetInstance(new SteppingVerbose);
|
||||
G4RunManager* runManager = new G4RunManager;
|
||||
#endif
|
||||
|
||||
//use G4SteppingVerboseWithUnits
|
||||
G4int precision = 4;
|
||||
G4SteppingVerbose::UseBestUnit(precision);
|
||||
|
||||
//construct the run manager
|
||||
auto runManager = G4RunManagerFactory::CreateRunManager();
|
||||
if (argc==3) {
|
||||
G4int nThreads = G4UIcommand::ConvertToInt(argv[2]);
|
||||
runManager->SetNumberOfThreads(nThreads);
|
||||
}
|
||||
|
||||
//set mandatory initialization classes
|
||||
DetectorConstruction* det= new DetectorConstruction;
|
||||
@@ -84,20 +78,13 @@ int main(int argc,char** argv) {
|
||||
|
||||
// Replaced HP environmental variables with C++ calls
|
||||
G4ParticleHPManager::GetInstance()->SetSkipMissingIsotopes( false );
|
||||
G4ParticleHPManager::GetInstance()->SetDoNotAdjustFinalState( false );
|
||||
G4ParticleHPManager::GetInstance()->SetUseOnlyPhotoEvaporation( false );
|
||||
G4ParticleHPManager::GetInstance()->SetDoNotAdjustFinalState( true );
|
||||
G4ParticleHPManager::GetInstance()->SetUseOnlyPhotoEvaporation( true );
|
||||
G4ParticleHPManager::GetInstance()->SetNeglectDoppler( false );
|
||||
G4ParticleHPManager::GetInstance()->SetProduceFissionFragments( false );
|
||||
G4ParticleHPManager::GetInstance()->SetUseWendtFissionModel( false );
|
||||
G4ParticleHPManager::GetInstance()->SetUseNRESP71Model( false );
|
||||
//G4ParticleHPManager::GetInstance()->SetSkipMissingIsotopes( true );
|
||||
//G4ParticleHPManager::GetInstance()->SetDoNotAdjustFinalState( true );
|
||||
//G4ParticleHPManager::GetInstance()->SetUseOnlyPhotoEvaporation( true );
|
||||
//G4ParticleHPManager::GetInstance()->SetNeglectDoppler( true );
|
||||
//G4ParticleHPManager::GetInstance()->SetProduceFissionFragments( true );
|
||||
//G4ParticleHPManager::GetInstance()->SetUseWendtFissionModel( true );
|
||||
//G4ParticleHPManager::GetInstance()->SetUseNRESP71Model( true );
|
||||
|
||||
|
||||
//initialize visualization
|
||||
G4VisManager* visManager = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user