|
Lines 42-50
Link Here
|
| 42 |
|
42 |
|
| 43 |
#include "FTFP_BERT.hh" |
43 |
#include "FTFP_BERT.hh" |
| 44 |
#include "G4OpticalPhysics.hh" |
44 |
#include "G4OpticalPhysics.hh" |
|
|
45 |
#include "G4ParallelWorldPhysics.hh" |
| 45 |
#include "G4EmStandardPhysics_option4.hh" |
46 |
#include "G4EmStandardPhysics_option4.hh" |
| 46 |
|
47 |
|
| 47 |
#include "DetectorConstruction.hh" |
48 |
#include "DetectorConstruction.hh" |
|
|
49 |
#include "ParallelWorld.hh" |
| 48 |
|
50 |
|
| 49 |
#include "ActionInitialization.hh" |
51 |
#include "ActionInitialization.hh" |
| 50 |
|
52 |
|
|
Lines 70-82
Link Here
|
| 70 |
G4RunManager * runManager = new G4RunManager; |
72 |
G4RunManager * runManager = new G4RunManager; |
| 71 |
#endif |
73 |
#endif |
| 72 |
|
74 |
|
|
|
75 |
G4String parallelWorldName = "ParallelWorld"; |
| 73 |
DetectorConstruction* detector = new DetectorConstruction(); |
76 |
DetectorConstruction* detector = new DetectorConstruction(); |
|
|
77 |
detector->RegisterParallelWorld(new ParallelWorld(parallelWorldName)); |
| 74 |
runManager->SetUserInitialization(detector); |
78 |
runManager->SetUserInitialization(detector); |
| 75 |
|
79 |
|
| 76 |
G4VModularPhysicsList* physicsList = new FTFP_BERT; |
80 |
G4VModularPhysicsList* physicsList = new FTFP_BERT; |
| 77 |
physicsList->ReplacePhysics(new G4EmStandardPhysics_option4()); |
81 |
physicsList->ReplacePhysics(new G4EmStandardPhysics_option4()); |
| 78 |
G4OpticalPhysics* opticalPhysics = new G4OpticalPhysics(); |
82 |
G4OpticalPhysics* opticalPhysics = new G4OpticalPhysics(); |
| 79 |
|
83 |
|
|
|
84 |
physicsList->RegisterPhysics(new G4ParallelWorldPhysics(parallelWorldName)); |
| 80 |
physicsList->RegisterPhysics(opticalPhysics); |
85 |
physicsList->RegisterPhysics(opticalPhysics); |
| 81 |
runManager->SetUserInitialization(physicsList); |
86 |
runManager->SetUserInitialization(physicsList); |
| 82 |
|
87 |
|