33 #include "ExTGDetectorConstruction.hh" 34 #include "ExTGDetectorConstructionWithSD.hh" 35 #include "ExTGDetectorConstructionWithCpp.hh" 36 #include "ExTGDetectorConstructionWithCuts.hh" 37 #include "G4GenericPhysicsList.hh" 38 #include "ExTGPrimaryGeneratorAction.hh" 39 #include "ExTGActionInitialization.hh" 41 #ifdef G4MULTITHREADED 42 #include "G4MTRunManager.hh" 44 #include "G4RunManager.hh" 47 #include "G4UImanager.hh" 50 #include "G4VisExecutive.hh" 54 #include "G4UIExecutive.hh" 59 int main(
int argc,
char** argv)
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
65 runManager->SetNumberOfThreads(1);
67 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new ExTGDetectorConstruction);
75 std::vector<G4String>* MyConstr =
new std::vector<G4String>;
76 MyConstr->push_back(
"G4EmStandardPhysics");
77 G4VModularPhysicsList* phys =
new G4GenericPhysicsList(MyConstr);
78 runManager->SetUserInitialization(phys);
84 runManager->SetUserInitialization(
new ExTGActionInitialization);
95 G4UImanager * UImanager = G4UImanager::GetUIpointer();
98 G4VisManager* visManager =
new G4VisExecutive;
99 visManager->Initialize();
104 G4String command =
"/control/execute ";
106 UImanager->ApplyCommand(command+fileName);
111 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
113 UImanager->ApplyCommand(
"/control/execute run.mac");
int main(int argc, char **argv)