Main program of the exoticphysics/dmparticle example.
More...
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4MTRunManager.hh"
#include "G4UImanager.hh"
#include "G4UIcommand.hh"
#include "Randomize.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "ActionInitialization.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the exoticphysics/dmparticle example.
Definition in file dmparticle.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file dmparticle.cc.
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);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList