37 #include "DetectorConstruction.hh"
38 #include "PhysicsList.hh"
39 #include "ActionInitialization.hh"
41 #ifdef G4MULTITHREADED
52 #include "CommandLineParser.hh"
54 using namespace G4DNAPARSER;
59 void Parse(
int& argc,
char** argv);
63 int main(
int argc,
char** argv)
75 #ifdef G4MULTITHREADED
88 G4cout <<
"===== clustering is started with "
90 <<
" threads =====" <<
G4endl;
156 G4String command =
"/control/execute ";
185 void Parse(
int& argc,
char** argv)
194 "Select geant4 UI or just launch a geant4 terminal session",
"qt");
205 #ifdef G4MULTITHREADED
208 "Launch in MT mode (events computed in parallel,"
209 " NOT RECOMMENDED WITH CHEMISTRY)",
"2");
213 "Select a visualization driver",
"OGL 600x600-0+0");
216 "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)
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.
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="")
virtual void Initialize()
Simple detector construction with a box volume placed in a world.