6 #include "G4MTRunManager.hh"
8 #include "G4RunManager.hh"
12 #include "Randomize.hh"
15 #include "G4VisExecutive.hh"
17 #include "G4UImanager.hh"
18 #include "G4UIExecutive.hh"
36 int main(
int argc,
char** argv)
41 G4UIExecutive* ui = 0;
42 if ( argc == 1 ) { ui =
new G4UIExecutive(argc, argv); }
48 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
53 #ifdef G4MULTITHREADED
54 G4MTRunManager* runManager =
new G4MTRunManager;
56 G4RunManager* runManager =
new G4RunManager;
67 G4VModularPhysicsList* physicsList =
new QBBC;
68 physicsList->SetVerboseLevel(1);
70 runManager->SetUserInitialization(physicsList);
84 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
99 G4String command =
"/control/execute ";
100 G4String fileName = argv[1];
101 UImanager->ApplyCommand(command+fileName);
106 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
Definition of the B1DetectorConstruction class.
Detector construction class to define materials and geometry.
Definition of the B1ActionInitialization class.
a top-level class to control all the other user action objects.
int main(int argc, char **argv)
Main program of the B1 example.