38 #include "DetectorConstruction.hh"
39 #include "PhysicsList.hh"
40 #include "ActionInitialization.hh"
42 #ifdef G4MULTITHREADED
55 #include "CommandLineParser.hh"
68 using namespace G4DNAPARSER;
71 void Parse(
int& argc,
char** argv);
73 int main(
int argc,
char** argv)
85 #ifdef G4MULTITHREADED
96 else if(option ==
"NMAX")
105 G4cout <<
"===== Chem3 is started with "
107 <<
" threads =====" <<
G4endl;
179 G4String command =
"/control/execute ";
190 G4UIQt* UIQt =
static_cast<G4UIQt*
> (UImanager->
GetG4UIWindow());
192 UIQt->AddViewerTabFromFile(
"README",
"README from "+
G4String(argv[0]));
212 void Parse(
int& argc,
char** argv)
221 "Select geant4 UI or just launch a geant4 terminal session",
"qt");
232 #ifdef G4MULTITHREADED
234 "Launch in MT mode (events computed in parallel,"
235 " NOT RECOMMANDED WITH CHEMISTRY)",
240 "Deactivate chemistry");
243 "Select a visualization driver",
"OGL 600x600-0+0");
246 "Deactivate visualization when using GUI");
void Parse(int &argc, char **argv)
virtual const G4String & GetOption()
static CommandLineParser * GetParser()
G4int ApplyCommand(const char *aCommand)
virtual const G4String & GetDefaultOption()
G4UIsession * GetG4UIWindow() const
int Parse(int &argc, char **argv)
G4int G4GetNumberOfCores()
static G4UImanager * GetUIpointer()
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.