#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"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 51 of file eRosita.cc.
55 G4VSteppingVerbose* verbosity =
new eRositaSteppingVerbose;
56 G4VSteppingVerbose::SetInstance(verbosity);
60 G4RunManager* runManager =
new G4RunManager;
64 eRositaDetectorConstruction* detector =
new eRositaDetectorConstruction;
65 runManager->SetUserInitialization(detector);
67 G4VUserPhysicsList* physics =
new eRositaPhysicsList;
68 runManager->SetUserInitialization(physics);
72 G4VUserPrimaryGeneratorAction* genAction =
new eRositaPrimaryGeneratorAction(detector);
73 runManager->SetUserAction(genAction);
75 G4UserRunAction* runAction =
new eRositaRunAction;
76 runManager->SetUserAction(runAction);
78 G4UserEventAction* eventAction =
new eRositaEventAction;
79 runManager->SetUserAction(eventAction);
81 G4UserSteppingAction* steppingAction =
new eRositaSteppingAction;
82 runManager->SetUserAction(steppingAction);
86 runManager->Initialize();
90 G4UImanager * UImanager = G4UImanager::GetUIpointer();
94 G4String command =
"/control/execute ";
96 UImanager->ApplyCommand(command+fileName);
102 G4VisManager* visManager =
new G4VisExecutive;
103 visManager->Initialize();
107 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
108 UImanager->ApplyCommand(
"/control/execute vis.mac");