30 #include "eRositaDetectorConstruction.hh" 31 #include "eRositaPhysicsList.hh" 32 #include "eRositaPrimaryGeneratorAction.hh" 33 #include "eRositaRunAction.hh" 34 #include "eRositaEventAction.hh" 35 #include "eRositaSteppingAction.hh" 36 #include "eRositaSteppingVerbose.hh" 38 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 41 #include "G4VisExecutive.hh" 43 #include "G4UIExecutive.hh" 46 int main(
int argc,
char** argv)
50 G4VSteppingVerbose* verbosity =
new eRositaSteppingVerbose;
51 G4VSteppingVerbose::SetInstance(verbosity);
55 G4RunManager* runManager =
new G4RunManager;
59 eRositaDetectorConstruction* detector =
new eRositaDetectorConstruction;
60 runManager->SetUserInitialization(detector);
62 G4VUserPhysicsList* physics =
new eRositaPhysicsList;
63 runManager->SetUserInitialization(physics);
67 G4VUserPrimaryGeneratorAction* genAction =
new eRositaPrimaryGeneratorAction();
68 runManager->SetUserAction(genAction);
70 G4UserRunAction* runAction =
new eRositaRunAction;
71 runManager->SetUserAction(runAction);
73 G4UserEventAction* eventAction =
new eRositaEventAction;
74 runManager->SetUserAction(eventAction);
76 G4UserSteppingAction* steppingAction =
new eRositaSteppingAction;
77 runManager->SetUserAction(steppingAction);
81 runManager->Initialize();
85 G4UImanager * UImanager = G4UImanager::GetUIpointer();
89 G4String command =
"/control/execute ";
91 UImanager->ApplyCommand(command+fileName);
97 G4VisManager* visManager =
new G4VisExecutive;
98 visManager->Initialize();
100 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
101 UImanager->ApplyCommand(
"/control/execute vis.mac");
int main(int argc, char **argv)