37 #include "DetectorConstruction.hh"
38 #include "PhysicsList.hh"
39 #include "ActionInitialization.hh"
41 #ifdef G4MULTITHREADED
52 #include "CommandLineParser.hh"
57 void Parse(
int& argc,
char** argv);
59 int main(
int argc,
char** argv)
71 #ifdef G4MULTITHREADED
84 G4cout <<
"===== clustering is started with "
86 <<
" threads =====" <<
G4endl;
152 G4String command =
"/control/execute ";
188 "Select geant4 UI or just launch a geant4 terminal session",
"qt");
199 #ifdef G4MULTITHREADED
202 "Launch in MT mode (events computed in parallel,"
203 " NOT RECOMMENDED WITH CHEMISTRY)",
"2");
207 "Select a visualization driver",
"OGL 600x600-0+0");
210 "Deactivate visualization when using GUI");
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int Parse(int &argc, char **argv)
void SetNumberOfThreads(G4int n)
void AddCommand(const G4String &marker, Command::Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="")
Command * GetCommandIfActive(const G4String &marker)
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
static CommandLineParser * GetParser()
static void DeleteInstance()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
G4int G4GetNumberOfCores()
G4int GetNumberOfThreads() const
CommandLineParser * parser(0)
static G4int ConvertToInt(const char *st)
Action initialization class.
void Parse(int &argc, char **argv)
virtual void Initialize()
Detector construction class to demonstrate various ways of placement.
virtual const G4String & GetOption()
G4int ApplyCommand(const char *aCommand)
int main(int argc, char **argv)