Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
+15 -20
View File
@@ -23,18 +23,20 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: exampleB1.cc 75216 2013-10-29 16:08:11Z gcosmo $
//
/// \file exampleB1.cc
/// \brief Main program of the B1 example
#include "B1DetectorConstruction.hh"
#include "B1PrimaryGeneratorAction.hh"
#include "B1RunAction.hh"
#include "B1EventAction.hh"
#include "B1SteppingAction.hh"
#include "B1ActionInitialization.hh"
#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#else
#include "G4RunManager.hh"
#endif
#include "G4UImanager.hh"
#include "QBBC.hh"
@@ -54,11 +56,15 @@ int main(int argc,char** argv)
{
// Choose the Random engine
//
CLHEP::HepRandom::setTheEngine(new CLHEP::RanecuEngine);
G4Random::setTheEngine(new CLHEP::RanecuEngine);
// Construct the default run manager
//
G4RunManager * runManager = new G4RunManager;
#ifdef G4MULTITHREADED
G4MTRunManager* runManager = new G4MTRunManager;
#else
G4RunManager* runManager = new G4RunManager;
#endif
// Set mandatory initialization classes
//
@@ -70,20 +76,9 @@ int main(int argc,char** argv)
physicsList->SetVerboseLevel(1);
runManager->SetUserInitialization(physicsList);
// Primary generator action
runManager->SetUserAction(new B1PrimaryGeneratorAction());
// User action initialization
runManager->SetUserInitialization(new B1ActionInitialization());
// Set user action classes
//
// Stepping action
runManager->SetUserAction(new B1SteppingAction());
// Event action
runManager->SetUserAction(new B1EventAction());
// Run action
runManager->SetUserAction(new B1RunAction());
// Initialize G4 kernel
//
runManager->Initialize();