Skip to content
Snippets Groups Projects
Commit cd7daa4e authored by Yessica Dominguez's avatar Yessica Dominguez
Browse files

Upload New File

parent bced06ac
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include "G4RunManager.hh"
#include "G4MTRunManager.hh"
#include "G4UImanager.hh"
#include "QGSP_BERT.hh"
#include "G4UImanager.hh"
#include "construction.hh"
#include "physics.hh"
#include "action.hh"
int main(int argc, char** argv)
{
G4UImanager* UImanager = G4UImanager::GetUIpointer();
#ifdef G4MULTITHREADED
G4MTRunManager* runManager = new G4MTRunManager;
#else
G4RunManager* runManager = new G4RunManager;
#endif
runManager->SetUserInitialization(new MyDetectorConstruction());
runManager->SetUserInitialization(new MyPhysicsList());
runManager->SetUserInitialization(new MyActionInitialization());
G4VModularPhysicsList* physics = new QGSP_BERT();
physics->RegisterPhysics(new G4DecayPhysics());
runManager->SetUserInitialization(physics);
runManager->Initialize();
if (argc > 1)
{
G4String command = "/control/execute ";
G4String fileName = argv[1];
G4UImanager::GetUIpointer()->ApplyCommand(command + fileName);
}
G4String command = "/control/execute input.in";
UImanager->ApplyCommand(command);
delete runManager;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment