40 #include "DetectorConstruction.hh"
41 #include "PhysicsList.hh"
42 #include "ActionInitialization.hh"
44 #ifdef G4MULTITHREADED
57 #include "CommandLineParser.hh"
61 using namespace G4DNAPARSER;
64 void Parse(
int& argc,
char** argv);
68 int main(
int argc,
char** argv)
77 G4Random::setTheEngine(&defaultEngine);
88 #ifdef G4MULTITHREADED
101 G4cout <<
"===== PDB4DNA is started with "
103 <<
" threads =====" <<
G4endl;
169 G4String command =
"/control/execute ";
180 G4UIQt* UIQt =
static_cast<G4UIQt*
> (UImanager->
GetG4UIWindow());
182 UIQt->AddViewerTabFromFile(
"README",
"README from "+
G4String(argv[0]));
198 void Parse(
int& argc,
char** argv)
207 "Select geant4 UI or just launch a geant4 terminal session",
212 "Give a mac file to execute",
221 #ifdef G4MULTITHREADED
223 "Launch in MT mode (events computed in parallel)",
229 "Select a visualization driver",
234 "Deactivate visualization when using GUI");
void Parse(int &argc, char **argv)
virtual const G4String & GetOption()
void SetNumberOfThreads(G4int n)
static CommandLineParser * GetParser()
G4int ApplyCommand(const char *aCommand)
G4UIsession * GetG4UIWindow() const
int Parse(int &argc, char **argv)
G4int G4GetNumberOfCores()
static G4UImanager * GetUIpointer()
G4int GetNumberOfThreads() const
static G4int ConvertToInt(const char *st)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Action initialization class.
static void setTheEngine(HepRandomEngine *theNewEngine)
CommandLineParser * parser(0)
int main(int argc, char **argv)
Command * GetCommandIfActive(const G4String &marker)
static void DeleteInstance()
G4GLOB_DLL std::ostream G4cout
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
void AddCommand(const G4String &marker, Command::Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="")
Simple detector construction with a box volume placed in a world.