#include "eRositaDetectorConstruction.hh"
#include "eRositaPhysicsList.hh"
#include "eRositaPrimaryGeneratorAction.hh"
#include "eRositaRunAction.hh"
#include "eRositaEventAction.hh"
#include "eRositaSteppingAction.hh"
#include "eRositaSteppingVerbose.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 46 of file eRosita.cc.
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");