00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "G4RunManager.hh"
00019 #include "G4VisExecutive.hh"
00020 #include "G4UImanager.hh"
00021
00022 #include "TUAB_DetectorConstruction.hh"
00023 #include "TUAB_PhysicsList.hh"
00024 #include "TUAB_PrimaryGeneratorAction.hh"
00025
00026 #include "TUAB_RunAction.hh"
00027 #include "TUAB_EventAction.hh"
00028 #include "TUAB_SteppingAction.hh"
00029
00030 #include "globals.hh"
00031
00032
00033 int main (void)
00034 {
00035
00036
00037
00038 G4RunManager* runManager = new G4RunManager() ;
00039
00040
00041 TUAB_DetectorConstruction *theTUAB_DetectorConstruction = new TUAB_DetectorConstruction () ; runManager->SetUserInitialization ( theTUAB_DetectorConstruction ) ;
00042 TUAB_PhysicsList *theTUAB_PhysicsList = new TUAB_PhysicsList () ; runManager->SetUserInitialization ( theTUAB_PhysicsList ) ;
00043 TUAB_PrimaryGeneratorAction *theTUAB_PrimaryGeneratorAction = new TUAB_PrimaryGeneratorAction () ; runManager->SetUserAction ( theTUAB_PrimaryGeneratorAction ) ;
00044
00045
00046 TUAB_RunAction *theTUAB_RunAction = new TUAB_RunAction () ; runManager->SetUserAction ( theTUAB_RunAction ) ;
00047 TUAB_EventAction *theTUAB_EventAction = new TUAB_EventAction ( theTUAB_RunAction ) ; runManager->SetUserAction ( theTUAB_EventAction ) ;
00048 TUAB_SteppingAction *theTUAB_SteppingAction = new TUAB_SteppingAction ( theTUAB_EventAction ) ; runManager->SetUserAction ( theTUAB_SteppingAction ) ;
00049
00050 runManager->Initialize() ;
00051
00052
00053
00054 G4VisManager *visManager = new G4VisExecutive ();
00055 visManager->Initialize ();
00056
00057
00058
00059 G4UImanager* UI = G4UImanager::GetUIpointer() ;
00060 UI->ApplyCommand("/control/execute uab_actions_root.mac") ;
00061
00062
00063
00064 delete visManager ;
00065 delete runManager ;
00066
00067 return (0) ;
00068 }