Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -23,21 +23,23 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: exampleB2a.cc 75214 2013-10-29 16:04:42Z gcosmo $
|
||||
//
|
||||
/// \file exampleB2a.cc
|
||||
/// \brief Main program of the B2a example
|
||||
|
||||
#include "B2aDetectorConstruction.hh"
|
||||
#include "B2PrimaryGeneratorAction.hh"
|
||||
#include "B2RunAction.hh"
|
||||
#include "B2EventAction.hh"
|
||||
|
||||
#include "G4StepLimiterBuilder.hh"
|
||||
#include "B2ActionInitialization.hh"
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
#include "G4MTRunManager.hh"
|
||||
#else
|
||||
#include "G4RunManager.hh"
|
||||
#endif
|
||||
|
||||
#include "G4UImanager.hh"
|
||||
#include "FTFP_BERT.hh"
|
||||
#include "G4StepLimiterPhysics.hh"
|
||||
|
||||
#include "Randomize.hh"
|
||||
|
||||
@@ -55,25 +57,25 @@ 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
|
||||
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
G4MTRunManager * runManager = new G4MTRunManager;
|
||||
#else
|
||||
G4RunManager * runManager = new G4RunManager;
|
||||
#endif
|
||||
|
||||
// Set mandatory initialization classes
|
||||
|
||||
runManager->SetUserInitialization(new B2aDetectorConstruction());
|
||||
|
||||
G4VModularPhysicsList* physicsList = new FTFP_BERT;
|
||||
physicsList->RegisterPhysics(new G4StepLimiterBuilder());
|
||||
physicsList->RegisterPhysics(new G4StepLimiterPhysics());
|
||||
runManager->SetUserInitialization(physicsList);
|
||||
|
||||
// Set user action classes
|
||||
|
||||
runManager->SetUserAction(new B2PrimaryGeneratorAction());
|
||||
runManager->SetUserAction(new B2RunAction());
|
||||
runManager->SetUserAction(new B2EventAction());
|
||||
runManager->SetUserInitialization(new B2ActionInitialization());
|
||||
|
||||
// Initialize G4 kernel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user