Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
+9 -10
View File
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: exampleB4b.cc 94808 2015-12-10 08:22:26Z gcosmo $
// $Id: exampleB4b.cc 100946 2016-11-03 11:28:08Z gcosmo $
//
/// \file exampleB4b.cc
/// \brief Main program of the B4b example
@@ -89,7 +89,7 @@ int main(int argc,char** argv)
// Detect interactive mode (if no macro provided) and define UI session
//
G4UIExecutive* ui = 0;
G4UIExecutive* ui = nullptr;
if ( ! macro.size() ) {
ui = new G4UIExecutive(argc, argv, session);
}
@@ -101,34 +101,33 @@ int main(int argc,char** argv)
// Construct the default run manager
//
#ifdef G4MULTITHREADED
G4MTRunManager * runManager = new G4MTRunManager;
auto runManager = new G4MTRunManager;
if ( nThreads > 0 ) {
runManager->SetNumberOfThreads(nThreads);
}
#else
G4RunManager * runManager = new G4RunManager;
auto runManager = new G4RunManager;
#endif
// Set mandatory initialization classes
//
B4DetectorConstruction* detConstruction = new B4DetectorConstruction();
auto detConstruction = new B4DetectorConstruction();
runManager->SetUserInitialization(detConstruction);
G4VModularPhysicsList* physicsList = new FTFP_BERT;
auto physicsList = new FTFP_BERT;
runManager->SetUserInitialization(physicsList);
B4bActionInitialization* actionInitialization
= new B4bActionInitialization(detConstruction);
auto actionInitialization = new B4bActionInitialization(detConstruction);
runManager->SetUserInitialization(actionInitialization);
// Initialize visualization
G4VisManager* visManager = new G4VisExecutive;
auto visManager = new G4VisExecutive;
// G4VisExecutive can take a verbosity argument - see /vis/verbose guidance.
// G4VisManager* visManager = new G4VisExecutive("Quiet");
visManager->Initialize();
// Get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
auto UImanager = G4UImanager::GetUIpointer();
// Process macro or start UI session
//