35 #include "G4RunManager.hh" 36 #include "G4MTRunManager.hh" 37 #include "G4UImanager.hh" 38 #include "G4UIcommand.hh" 39 #include "Randomize.hh" 43 #include "ActionInitialization.hh" 45 #include "G4VisExecutive.hh" 46 #include "G4UIExecutive.hh" 50 int main(
int argc,
char** argv)
53 G4UIExecutive* ui =
nullptr;
55 ui =
new G4UIExecutive(argc, argv);
59 CLHEP::HepRandom::setTheEngine(
new CLHEP::Ranlux64Engine);
61 G4UImanager* UI = G4UImanager::GetUIpointer();
67 UI->ApplyCommand(
"/control/verbose 1");
68 UI->ApplyCommand(
"/testex/phys/setLDMPhotonMass " + s +
" GeV");
72 UI->ApplyCommand(
"/testex/phys/setLDMHiMass " + s +
" GeV");
76 #ifdef G4MULTITHREADED 77 G4MTRunManager* runManager =
new G4MTRunManager;
78 G4int nThreads = std::min(G4Threading::G4GetNumberOfCores(),2);
79 runManager->SetNumberOfThreads(nThreads);
80 G4cout <<
"===== dmparticle is started with " 81 << runManager->GetNumberOfThreads() <<
" threads =====" << G4endl;
83 G4RunManager* runManager =
new G4RunManager();
88 runManager->SetUserInitialization( phys );
89 runManager->SetUserInitialization( det);
92 runManager->SetUserInitialization(
new ActionInitialization(det));
94 G4VisManager* visManager =
new G4VisExecutive;
95 visManager->Initialize();
99 G4String command =
"/control/execute ";
101 UI->ApplyCommand(command+fileName);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList